How do I enable the xyz axis cursor thing when I am in edit mode and moving around the points?

You know what I am talking about, right? I am following along a video on YouTube and when he clicked on a point, an xyz axis thing popped up on it and it is not doing the same for me. Help?


How to create an array with incremented values in Java?

I accepted the input from the user and stored it in the variable "n". But, when I try to execute this code, I get java.lang.NullPointerException.  public class JavaApplication58 {      public static void main(String[] args) {         int a[] = null;         Scanner sc = new Scanner(System.in);         int n = sc.nextInt();         for (int i = 1; i < n; i++) {             a[i - 1] = i;         }         for (int i = 0; i < a.length; i++) {             System.out.println("" + a[i]);         }     } }


How to calculate rank from multiple parameters to get best/trustworthy peer

How to calculate rank from multiple parameters ?  Parameters are bandwidth, delay, success ratio, these parameters values are used to determine the trustworthiness of a peer while accessing a service from a peer?.  My aim is to get the best peer, by using any ranking method ... which method can I use?


How can I kill minerd malware on an AWS EC2 instance? (compromised server)

I found malware on my ec2 instance which was continuously mining bitcoin and using my instance processing power. I successfully identified the process, but was unable to remove and kill it.  I ran this command  watch "ps aux | sort -nrk 3,3 | head -n 5"  It shows the top five process running on my instance, from which I found there is a process name 'bashd' which was consuming 30% of cpu.  The process is   bashd -a cryptonight -o stratum+tcp://get.bi-chi.com:3333 -u 47EAoaBc5TWDZKVaAYvQ7Y4ZfoJMFathAR882gabJ43wHEfxEp81vfJ3J3j6FQGJxJNQTAwvmJYS2Ei8dbkKcwfPFst8FhG -p x   I killed this process by using the kill -9 process_id command. After 5 seconds, the process started again.


Practical uses for the "internal" keyword in C#

Could you please explain what the practical usage is for the internal keyword in C#?  I know that the internal modifier limits access to the current assembly, but when and in which circumstance should I use it?


Was Robb Stark's wife or her mother complicit in the "red wedding"?

In the book, not the HBO series; Robb's mother (Catelyn) complains to Robb's wife (Jeyne Westerling) that she's not pregnant and Jeyne says that she's trying. Then Lord Tywin Lanister - who has helped plan the Red Wedding - says with all certainty, "Robb's wife will bear him no children."  In the book Jeyne does not attend the Red Wedding and AFAIK she was a Lady from a family who Robb defeats. There was something about her mother being a little sly or secretive.  Did anyone come across any information about what became of Jeyne and what her reaction to the Red Wedding was, or what her mother was up to?


Suppose a differentiable, convex function $F(x)$ exists. Then $b = a - \gamma\nabla F(a)$ implies that $F(b) \leq F(a)$ given $\gamma$ is chosen properly. The goal is to find the optimal $\gamma$ at each step. In my book, in order to do this, one should minimize  $G(\gamma)=$ $F(x-\gamma\nabla F(x))$ for $\gamma$. It also says that it should be minimized via a line search. Why can't this function be minimized by simple calculus?  I am unsure what it means to perform a line search on this function. I am also unsure why we want to minimize this function to find the optimal step size.


Time is called as a measurement of difference between two or more incidents. So if we stop happening incidents can't we stop the TIME? Eventhough it's impractical, I mean if we reduce the temperature of earth to absolute zero.... isn't it stop the motion of matter and stop the time? When we start increasing temperature again isn't the time starts from where we stopped?


Is there anywhere a scheduled air service between two airports without connections to the wider world?

Mostly, if an airport, however minor, has scheduled service, it will be to another airport with more services and so one can connect through to any airport in the world. E.g. one can fly from  to  to LHR to anywhere else.  But is there a pair or set of airports where this doesn't hold, creating an "island" of unconnected air transport?  (Fixed wing or I guess helicopter).


Charged pion decay and spin conservation

Charged pions $\pi^\pm$ decay via an intermediate $W$ to (e.g.) a lepton-neutrino pair.   The pions being scalar (spin-0) particles and the intermediate $W$ having spin 1, how is spin conserved in this interaction?


Possibility of recovering files from a dd zero-filled hard disk

I have "zero filled" (complete wiped) an external hard disk using dd, and from what I have heard: people said you should at least "zero fill" 3 times to be sure that the data are really wiped and no one can recover anything.  So I decided to scan the disk once again after I've zero filled the disk. I was expecting the disk to still have some random binary left. It turned out that it has only a few sequential bytes in the very beginning. This is probably the file structure type and other headers stuff. Other than that, it's all zeros and nothing else.  So if we have to recover any file from a zero filled disk, ...how? From what I've heard, even you zero fill the disk, you should still have some data left. ...or could dd really completely annihilate all data?


Do you always need a comma before 'and' when there are two independent clauses?

I thought the answer was yes. Threads on this site in indicate the answer is yes....but then I frequently see constructions like this on news sites from writers I'd assume would be implementing language's best practices. Here is an example I came across while reading in article in CNN this morning:  "The country is notoriously difficult to get information on and its sanctions-hit economy is said to operate on a number of different levels, including a black market, with the government not even releasing official trade statistics."  I've seen this on many, many occasions. Either my understanding of independent clauses isn't correct or there's some rule I'm not aware of. While browsing for an answer in existing threads, I saw the concept of connecting clauses brought up a few times. Some respondents said that you don't need a comma before 'and' if the next complete idea is hinged on the same verb as the preceding one? Or something like that. I didn't entirely understand but wonder if this is an example of that.  Thanks you for your time.


How do I batch rename files in windows 10?

I have a folder full of files and they all look like this: frame_number_delay-number.gif I would like to delete the frame_ and the _delay part. Help please!


On November 11, my American girlfriend flew over to the UK to visit me. She was detained and questioned, and refused entry under the belief she would not leave within those six months. This was due to her having no return flight booked, as we were going to wait until we were together in the UK to book a return flight for either herself, or both of us back to the USA once we decided what exact dates I would be able to travel. Lesson learned. A hard lesson, but we learned!  Anyway, they said although she'll flag up in the future, it won't be a straight ban from entering and she could even try to come back the next day if she so pleased, although it would be unwise if her circumstances had not changed.  Fast forward to December 18. She got herself a job in the States to prove she intends to leave at the end of her stay, and has since applied for a UK Standard Visitor Visa. She posted her documents off to New York earlier today.  Will they send her a letter back refusing to issue her a visa since, as an American citizen, she does not even need one? She wanted to get one to be safe as I told her not to fly to the UK even with return flights booked if she doesn't have a visa, as she risks being denied once again after a long flight. It's hard to get this information on the Internet, and some stories I read said that they were sent a letter back from the UK Embassy denying their visa simply because they don't need one in the first place - even after that person was denied entry.  We're in a bit of a pickle granted, so any help would be greatly appreciated.   Cheers.


How to enable mouse wheel scroll of tabs in gedit?

In gedit, one used to be able to use the mouse wheel to scroll through all the tabs opened. Now the function is gone. (mouse wheel working very fine, scroll through tabs still working on earlier versions). Any one knows how to enable, restore or install this very convenient feature?


Allow me to accept an answer immediately

I hate the new popup "you can accept an answer in 10 minutes". Can you please remove it and let me accept an answer immediately?  I can unaccept it later if a better one appears.


In this year's Christmas special The Husbands of River Song, why did River      take so long to realise that the man accompanying her was in fact the Doctor?   For most of the episode, I assumed      she'd forgotten all about him or had her memories removed or something, as she was so dull-headedly missing all the glaring hints he was dropping.   But this doesn't appear to be the case, as      she eventually does realise, without any immediate prompting.   So how come this didn't happen earlier? The last thing River seems to be is stupid!  And the other side of the coin: how come it did happen when it did? Did all the pieces of the puzzle finally slide together in her head, or was there some specific prompt at that moment which I missed?


How can I use web browser controls for non-browser game GUI?

I'm looking for a way to get a modern browser's level of customization and rendering quality in my c# monogame to avoid using roundabout/limited/buggy GUI toolkits and to get better fonts without having to use pre-generated bitmap spritesheets (unicode support).  Is there a way to, for example, render a behind-the-scenes browser page instance onto a texture and overlay it above everything to act as GUI, along with all or just basic events (click, key press, hover, drag'n'drop)?  I've already tried using WinForms, but it's slow and most importantly, doesn't offer easy addition of custom controls which I'd very much like to use in my game. Otherwise I'd have to reimplement the whole thing in c#, but I'd rather not reinvent any wheels. For example, long lists, spreadsheets, flow controls with titles and descriptions for every item is a typical job for css, but not for WinForms.  And for the font part I'd like to get all the effects, which WinForms doesn't provide, and using the xna content pipeline, they have to be pre-baked in the bitmap font, which makes it insane to try to do dynamic font effects.  I understand that such great functionality might come at a great processing cost, but I think it's really gonna be worth the precision and font quality.


How can I disable the "Open File Security Warning" when I want to run downloaded executable files?

I would like to disable the "Open File Security Warning" that says "Do you want to run this file?" whenever I double click on an .exe I download. I have Windows 7 Home Premium, so I don't have the group policies editor. I have tried setting a registry value: HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Associations, value DefaultFileTypeRisk to 6152, but this did no good. This is the only entry under Associations, incidentally, and it was empty before I added this.  Is there a way to disable this message on my system (other than unblocking each .exe file)?


Will a decreasing probability ever resolve favorably?

Let's say I start off with a 50/50 chance at winning the lottery. But I lose.  Now my chance is only half as good, or 25%. I lose again.  Now the chance is 12.5%. Same result.  If this continues all the way down to very low numbers, will I EVER in an infinite amount of time win the lottery?  What if every time I received a ticket, I had a million times less chance of winning than I had before?


Running a script created in Notepad (Windows) on Ubuntu

I created a Notepad file on Windows and copied it to Ubuntu. The file contains some iptables rules. After making the file executable using chmod +x and executing it, it didn't work.  However, when I created a Ubuntu () file and copied the same contents from the Notepad file, made it executable and ran it, it worked.  What should I do to make the Notepad file run on Ubuntu?


Uk visit family visa refused from france

This is my 2nd time they refused my visa.  1st application was refused just because i didnt had enough income  But now  my income is much better than before since i joined my new job  And They didnt ask for the sponsor paper last time from my uncle who im going to visit in uk so i thought i do not need it  Now they are saying i didnt provide sponsorship  Will i get the visa if i reapply with sponsorship  Need help please?


Using a power series to show $\log(2) = \sum_{k = 1}^{\infty} \frac{1}{k \cdot 2^{k}}$

I want to show   $$\log(2) = \sum_{k = 1}^{\infty} \frac{1}{k \cdot 2^{k}}.$$  So, I start with the geometric series:  $$\frac{1}{1 - x} = \sum_{n = 0}^{\infty} x^{n} $$  Then take the integral to get   $$\log(1 - x) = -\sum_{n = 1}^{\infty} \frac{x^{n}}{n}.$$  Then plug in $x = -1$ to get   $$\log(2) = -\sum_{n = 1}^{\infty} \frac{(-1)^{n}}{n} = \sum_{n = 1}^{\infty} \frac{(-1)^{n + 1}}{n},$$  but this isn't equal to the original equality. Why not? How can I do the problem?


Show that $1\otimes (1,1,\ldots)\neq 0$ in $\mathbb{Q} \otimes_{\mathbb{Z}} \prod_{n=2}^{\infty} (\mathbb{Z}/n \mathbb{Z})$.   Here's what I tried:  If $1\otimes (1,1,\ldots)= 0$, then $1\otimes (1,1,\ldots)= (-1)\otimes (1,1,\ldots)=1\otimes (-1,-1,\ldots)$, but $1\neq -1$ in $\mathbb{Z}/n\mathbb{Z}$ for all $n$.  I am not sure that this is valid...


I have an object with a number of private properties. It has an empty constructor, and a constructor that accepts an instantiated version of itself. I need to assign this new instance to a deep copy of the old instance. Can this be done? Example:  public class Foo {     private Property p;      public Foo()     {         p = new Property("this and that");     }         public Foo(Foo f)     {         this.Object = f.DeepCopy;   // What would this statement be?     } }   Halp.


Retain New Lines from User Input for Split Parsing

I work with with messages (HL7) which are, in part, delimited by 'new lines', among many other characters. I'm attempting to use the split method to parse apart sections of these messages by the new line "\n" character. I'm aware that split is regex enabled, and currently am attempting to parse using:  String[] segList = raw.split("\\r?\\n");   ... where raw is my message String. However, when I run my code, this split method fails to parse anything and returns a single element array. I started learning Java a few days ago and fear I'm missing something obvious. Perhaps it has something to do with the way I'm accepting user input:  String response = JOptionPane.showInputDialog(null,prompt,"Message 1",JOptionPane.QUESTION_MESSAGE);   Lastly, here's a very minimized example of a user's typical input for this type of message. (I've used a numbered list for fear of messing up formatting. Please ignore the list numbers. I'm attempting to recreate what the message looks like with new lines...)   MSH||data|data||20150506080000|data|data PID|data|||||data|data| OBR|datadata


How can my iphone app detect its own version number?

I'm writing an iPhone app.  It's already been published, but I would like to add a feature where its version number is displayed.  I'd rather not have to do this manually with each version I release...   Is there a way in objective-C to find out what the version is of my app?


jQuery not triggering .click function from a jQuery generated HTML tags

I have a button on my document, upon clicking will generate certain html tags.  Reply //on button click         The problem is when i click the generated button nothing happens, not even alert function.       Am i doing something wrong? i am new to jQuery. Any help is appreciated.


Why am I getting multiple IPs in Hostname -I

I am trying to get the local ip of the system using hostname -I. However, it is showing three IP addresses, instead of one. So, I would like to know what does more than one IP address signify?  Also, I would like to understand how did my system could end up with multiple IP addresses.


PHP / MySQL search with foreign languages

I have some texts in a mysql database, that are in several languages, including portuguese and russian, and have a lot of special characters, like á, à, ç, ã. Is there a way for me to create a search function, that is able to search using the following wildcards:  smil? - finds: smile, but not smiling - the '?' represents one character. It can be used in the begining or in the end of the search term; smil* - finds: simle, smiling, etc - the '*' represents any number of characters. It can be used in the begining or in the end of the search term; real |AND| madrid - returns the records that contain both words; real |OR| madrid - returns the records that contain at least one of the words; real |NOT| madrid - returns the records that contain only real, but not madrid; "real madrid" - returns the records that contain the exact expression;  I would also like to use multiple situations, like:  rea? |AND| madr* |AND| "manchester united"   One other problem is with the special characters. re* should also return reál, real, reãl...  And another situation is, if I search for test, it should find: tést, têst, etc...  Is this possible to accomplish? Can someone point me on the right direction?  Thank you so much!


How does Susskind get this fourth equation?

I'm studying Friedman and Susskind's Special Relativity and Classical Field Theory. In Lecture 6, they derive $$m{dU_\mu\over d\tau}=eF_{\mu\nu}U^\nu,\tag{6.33}$$ but only when $\mu=1, 2, 3$. ($F_{\mu\nu}$ stands for $\partial_\mu A_\nu-\partial_\nu A_\mu$.) To prove that this equation also holds for $\mu=0$, they give the following argument.  If the equations are Lorentz invariant, and the three space comonents of a certain 4-vector are equal to the three space components of some other 4-vector, then we know automatically that their zeroth components (the time components) must also match.  I can see that both, the LHS and the RHS of the above equation are 4-vectors. But I don't see how the equality of the LHS and the RHS for $\mu=1,2,3$ implies their equality for $\mu=0$. Please help me prove it.  I found that this question has been asked  on SE. But I couldn't understand the posted answer (by Prahar) there—it used gauge invariance concepts and I'm not yet familiar with that. But I'll appreciate if someone can explain me enough to understand that answer.


Is there a distance on $\mathbb{R}$ so that a non-empty subset is open iff its complement is finite?

Is there a distance $d$ on $\mathbb{R}$ so that a non-empty subset $\mathcal{U}$ of $\mathbb{R}$ is open wrt to $d$ if and only if its complement $\mathbb{R}\setminus\mathcal{U}$ is finite?   My observations so far: Let $\emptyset\neq\mathcal{U}\subset \mathbb{R}$. Denote the metric topology by $T(d)$. Then $$\mathcal{U} \in T(d) \iff \mathbb{R}\setminus\mathcal{U} \text{ finite} \implies\mathbb{R}\setminus{\mathcal{U}} \text{ compact}.$$   So the question becomes, is there a $d$ on $\mathbb{R}$ such that every closed set is compact?


i have an issue,i wanna create a hotspot,but i dont have an ethernet connection,only wifi. How can i make a hotspot without ethernet?


Clarification about read only and write only properties

public class AutomaticProperty    {        public integer MyReadOnlyProp { get; }        public string MyWriteOnlyProp { set; }     }   could you please give any examples related to this concept.can we use any where only get and only set?  Thanks in advanced!!!


How to reverse a number and compare it with its original value

I'm trying to multiply two numbers and then reverse the answer and then compare the original value with the reversed value to see if they are the same numbers.  After I reverse the value how do I set it back to an int or a string so I can compare them?  int i = 0;  var x = Enumerable.Range(100,999); var y = Enumerable.Range(100,999);  foreach (var xValue in x) {     foreach (var yValue in y)     {         i = (xValue * yValue);          var t = i.ToString();         var tempt = t.Reverse();          var temp = new string(tempt);          if (i.ToString() == temp)         {          }     } }


I want to generate a sorted list with all 8-digit numbers — from 00000000 to 99999999. I typed in the shell:  f() {  while IFS="" read -r line; do    for i in {0..9}; do         echo "$line$i";    done;  done }  echo | f | f | f | f | f | f | f | f | tee result.txt | wc -l   response is     bash: echo: write error: Interrupted system call bash: echo: write error: Interrupted system call bash: echo: write error: Interrupted system call 99998890   Why have I got these three errors and malformed result.txt ?  I use  GNU bash, version 4.4.12(1)-release (x86_64-pc-linux-gnu)  Debian GNU/Linux 9.6 (stretch)  Linux kernel: 4.19.0 #2 SMP Thu Nov 1 15:31:34 EET 2018 x86_64 GNU/Linux


I have 2 large table which the page number appears in the last row of them. So I decide to hide the page number while keeping heading.   I have tried \thispagestyle{empty} which also hide header as well. So How to hide specific page number?  Here is the code   \documentclass[MScThesis,twoside]{thesis} \PrepareForMainContent \pagestyle{ThesisPagestyle} \begin{document} \begin{table}[tbp]      \caption{action list}     \label{tbl:analysis1}     \centering     \scriptsize     \begin{tabular}{C{5cm}C{2cm}C{2cm}C{2cm}}         \toprule         %\hline \rowcolor[gray]{.7}         A & B& C \\         \midrule         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\                 \bottomrule     \end{tabular} \end{table} \begin{table}[tbp]      \caption{action list 2}     \label{tbl:analysis2}     \centering     \scriptsize     \begin{tabular}{C{5cm}C{2cm}C{2cm}C{2cm}}         \toprule         %\hline \rowcolor[gray]{.7}         A & B& C \\         \midrule         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\         a & b & c \\             a & b & c \\                 \bottomrule     \end{tabular} \end{table}  \end{document}   Here are some commands from thesis.cls  \newcommand{\PrepareForMainContent}{\cleardoubleemptypage\pagestyle{ThesisPagestyle}\mainmatter%  \if@twoside% \newpairofpagestyles{ThesisPagestyle}{     \lehead{\leftmark}\rohead{\rightmark}     \cefoot*{\pagemark}\cofoot*{\pagemark} }\else% \newpairofpagestyles{ThesisPagestyle}{     \lohead{\leftmark}\rohead{\rightmark}     \cofoot*{\pagemark} }\fi


A local IP address (RFC 1918) on my network that is not ... local ..

I've noticed an IP address today on my network (192.168.15.1) which when visited actually goes to a page that has a router webconfig page (Not my router)  The puzzling thing is that i tried traceroute 192.168.15.1 which said that the distance between me and that host is 9 hops, whereas the distance between me and any other computer on my home network is 2 hops away (My computer --> Router --> Host)   Can someone please explain what's going on here ?


If 2 copies of  are on the board would that mean that +1/+1 counters would bounce back and fourth to infinity?


On-screen keyboard popping up whenever I touch screen

I'm in 17.10. Whenever I touch the screen, whether to change windows/apps, scroll within a browser, or press a button, the stupid little keyboard pops up in the bottom left corner.  I have never left Screen Keyboard enabled in Universal Access, but if I toggle it on, that's the same keyboard popping up in the bottom left corner.    In this screenshot, I'm simply touching the screen in a full-screen youtube video. You can see the menu pop up on the right, under the point where I'm touching.  I don't have a before pic, but it was similar look/color keyboard, but it was smaller, maybe half as wide, and only in the bottom left section of the screen, as opposed to stretching across the entire width. This change from little left-hand keyboard to full-width keyboard happened after following @pomsky 's advice below.    This is a . You can mark yourself affected by it to hopefully increase its received attention.


Bounded measurable function and integral with charcteristic function

I have been struggling with the following for quite some time now. If anyone can give me some help, it will be much appreciated:  Let $f$ bounded, measurable and $E$ be a set of finite measure. Let $A \subset E$ be measurable. Prove that:  $\displaystyle \int_{A} f = \int_{E} f \chi_A $


Problems of General Relativity on small and large scales

As far as I know, the most important problem of GR on large scales is the cosmological constant problem which in some manner can be thought of as a dark energy problem (please correct me if I am wrong). I have made some reading on that and I believe I understood what's going on a little bit. However, I am stuck on the small scale problems of GR. I know that quantum effects become important on small scales and since there is no quantum description of GR, the theory fails on these regions. I have heard that one of the reasons for doing massive gravity is to solve this problem and this is also somehow related to the dark matter phenomena. But I don't exactly understand which problem(s) of GR can be solved by doing massive gravity. Can someone explain in a simple way what are the problems of GR in the context of the reasons that pushed people to study massive gravity and how do we expect to solve these problems (what are the clues?) by studying that topic?


Duplicate auxiliary verbs in a sentence (may we / should we delete the second?)

What is a general rule for use of auxiliary verbs in sentence? Should we duplicate it or not? For instance,     It is available for every item and (is) used with . . .


How to convert python(.py) file to unreadable code format

I have written python code and saved as program.py file.Now When i open "program.py" file it should be unreadable format.  Can anyone suggest me how to fix this issue.


How do I get my variable out of the function?

I am having trouble being able to output the card values from within a function (it doesn't update the variables outside the function. I've tried using return but to no avail. When I run this, it give the name as "test" and the value as 0 (as i set it at the start.) How do I make it so it updates? I want to be able to print the cardName after the function is finished.


Is my critique and criticism of Descartes's "I think, therefore I am", logically valid?

Here is my chain of reasoning and criticism regarding Descartes’s idea.   “In the same way, I began by taking everything that was doubtful and throwing it out, like sand” - Descartes  “All the mistakes made in the sciences happen, in my view, simply because at the beginning we make judgments too hastily, and accept as our first principles matters which are obscure and of which we do not have a clear and distinct notion.” - Descartes.  Descartes begins by doubting everything. This is the beginning of his argument. We can say that it is the first assumption or starting point of his reason, that he can doubt everything.  At this point I want to pinpoint it out, that since I or Descartes, whoever does the thinking, are allowed to doubt everything, we can also doubt “if doubt is thought”. Just because we are simply allowed to doubt everything. I am not saying that doubt is not thought, but pointing out that at this point in reasoning where we have no extra assumptions, I can say that doubt might or might not be thought.  Then Descartes says:  “Accordingly, seeing that our senses sometimes deceive us, I was willing to suppose that there existed nothing really such as they presented to us And finally, when I considered that the very same thoughts (presentations) which we experience when awake may also be experienced when we are asleep, while there is at that time not one of them true, I supposed that all the objects (presentations) that had ever entered into my mind when awake, had in them no more truth than the illusions of my dreams. But immediately upon this I observed that, whilst I thus wished to think that all was false, it was absolutely necessary that I, who thus thought, should be something; And as I observed that this truth, I think, therefore I am, was so certain and of such evidence that no ground of doubt, however extravagant, could be alleged by the Skeptics capable of shaking it.” - Descartes.  Here Descartes says that he is certain that he cannot doubt that he is thinking. This entails a second assumption or a second point in reasoning which is “ All doubt is definitely thought”. Again, I am not saying that the assumption is good or bad, but merely pointing it out. This assumption is after the first one we have established above.  Now, comes my argument. I am saying that I need not make the second assumption, and I can establish the statement “ I think, therefore I must be”, without that second assumption. Since my argument is minus one assumption, compared to Descartes’s, it is a stronger truth. Here is my original argument as well, although it might be hard to understand( In a way it is circular logic, meaning that I propose to oppose Descartes’s argument through contradiction, and this requires a discussion to understand):    But, forget about that argument of mine for a moment, and think about this: Descartes in his first assumption says that he is allowed to doubt everything. Then infers that doubt must definitely be thought, without any doubt at all.  This seems to me a logical fallacy. It is a logical fallacy if you do not make the second assumption which I have mentioned. I am only trying to pinpoint that out(The second assumption), and say that I can establish a more definitive minimum inference, which would be “ I think, therefore I must be”, by assuming one less statement. For Descartes’s argument to work, I would need to make a contradictory second assumption, which would be “Doubt is definitely thought, and I cannot doubt that”. Could anyone please pinpoint where I am getting this wrong?


Why did Ash need to go back to Pokemon School?

I was watching Pokemon Sun Moon. In the answer to this question  it says that Ash never age so obviously he didn't became child.  But why did he need to go to Poke-school? He knows a lot on Pokemon and he went on till the finals in last league (Kalos)


Can we get our personal voting data displayed on the Questions lists?

There's been several times where I have been surfing the site, and noticed a question that I am not sure I've checked. Even if I've checked the question before, I can't recall off-hand whether or not I've voted on it or its answer.  Is there a way we can have our personal voting history reflected to some degree or another, in the Questions listing? For example, could there be an indicator as to whether or not we have already voted (up or down) on a question, and perhaps maybe an additional indicator as to whether we've up-voted any of its answers?  It would be very convenient to have some of this data available up-front, without actually having to view the question again.


How does one go about exactly summing this series   $$\sum_{n=1}^{\infty}\frac{(-1)^nn^2}{3^n}$$  Stuck on this and not sure how to proceed. Appreciate any assistance!


I know this is kinda stupid but what is the word for "helping someone climb by allowing him to stand on your hands" (to allow him/her see above some wall or climb something)?


I run   sudo add-apt-repository ppa:noobslab/indicators   to install my-weather-indicator but it requires GTK3 and I don't want to proceed.  So I'd like to undo that command. I'd checked my /etc/apt/source.list but I didn't find any line related to it.   What should I do now?


We will swim next Monday. We are going to swim next Monday. We will go swimming next Monday.  Which one is correct? What's the difference between "will swim" and "going to swim"?


x^4 + y^4 + z^4 + 1 = 4xyz No. Of triplets of real numbers satisfying the eqn? I'm not able to figure how to approach this problem.


How to prove these two limits $\lim_{n\to\infty}\frac{a_{n}}{n}$ and $\lim_{n\to\infty}\frac{a_{n+1}-a_{n}}{n}$ exist?

Assume that $$\lim_{n\to\infty}(a_{n+2}-a_{n})=A$$ show that  $\displaystyle \lim_{n\to\infty}\dfrac{a_{n}}{n}$and $\displaystyle\lim_{n\to\infty}\dfrac{a_{n+1}-a_{n}}{n}$ exist and find these limits.  maybe this problem have some methods, Thank you.  since  $$\lim_{n\to\infty}(a_{n+2}-a_{n})=A$$ so there exists $N$, and for $\forall \varepsilon>0$, such $$|a_{n+2}-a_{n}-A|\le\varepsilon$$


I have to write something under the symbol \bullet in Latex. Is it possible? I'm using the class beamer. Here it is an example of a frame:  \begin{frame} \begin{itemize} \item<1-> Products Market\mbox{}\\ \footnotesize{where $p_{i,t}=u_{i,t}$, with $u_{i,t}\sim u[0,2]$} \vspace{0.5cm} \item<2-> Credit Market \mbox{} \vspace{0.2cm} \\ \footnotesize{where \hspace{0.1cm} $\bullet_{bank} \xrightarrow{loan} \bullet$} \vspace{0.5cm} \item<3-> Interbank Market\mbox{} \vspace{0.08cm} \\ \footnotesize{where \hspace{0.1cm} $\bullet \xrightarrow{loan} \bullet$} \end{itemize} \end{frame}   In particular I want to write "bank" under the bullet, whilenow it is only in subscript.  Thanks


Minimization problem over convex compact set

Does anybody know a method to solve the following problem numerically (or analytically, if there is a general method, but I doubt it).  I am given a matrix $A \in \mathbb{C}^{n \times n}$ and I want to minimize  $||A- \sum_{i=1}^{n}\lambda_i C_i||$ in the Frobenius-norm for given $C_i$ and unknown $\lambda_i \ge 0$ with $\sum_{i=1}^{n} \lambda_i =1$ and $\langle C_i,C_j \rangle = \delta_{i,j}.$  By compactness of the possible set of $\lambda_i$ the problem has always an actual minimum and also the convexity (since we are taking convex combinations of the $\lambda_i$) could be useful if we want to find a numerical algorithm.   But I am not very familiar with these kind of optimisation questions, so I would love to hear about possible algorithms to tackle this problem.


Mathematical journals for math enthusiasts?

I'm in 12th grade right now so basically I can't understand any complex mathematical journal out online. I just needed some online journals which an average 12th grader can understand...please recommend if any.


Is there an index of all the man pages that exist?  I know I should not want to learn them all, but I would like to at least take a snapshot view of each of all the man pages that exist. I am a powerful reader and I would not mind go through all of them.


Show that 3 sinusoidal phasors sum to zero

Prove that $\sin(\theta) + \sin(\theta+2\pi/3) + \sin(\theta+4\pi/3) = 0 $ for any angle $\theta$.   This came up in the context of electricity:  It is common in electrical power engineering to use three-phase circuits with sinusoidal currents out of phase with each other by 120 degrees. The benefit of this is that the currents sum to zero at the neutral point meaning less copper is required for the system.    However, while I know that the three phasors always sum to zero, and can see visually, as in the figure that this is true at every point, how can this be shown more formally, or algebraically?


C++: How to work with data type of parameter in member function template

I've to do activities in my template based on type of class I get as parameter:  In Class.h  class SomeClass; class SomeOtherClass;  class Class  { public:     template <typename T> void function(T value); };   In Class.cpp  template<typename T> void Class::function(T value)  {     // Whole lots of common code here      if (T == SomeClass)     {        // Do something by casting value to SomeClass        SomeClass* ptrSomeClassObj = (SomeClass*) &value;        ptrSomeClassObj->MemberFunctionOfSomeClass();     }     else     {        // Do something else     }      // Whole lots of common code here }   Now I've these questions:   Here if (T == SomeClass) is not correct syntax. How shall I do this? Type casting of T the way I've done doesn't give me any syntax error. But is this appropriate to do like this? I believe C++ has better ways.   Update: Not really looking for  because it would replicate lots of common code (as mentioned in code above) in specialized functions.


Why is this not working? I'm parsing a String using the SimpleDateFormat, but this is producing an error on the line inside the try {}.  String timerDate = "28 05:24:50"; // timer will stop when reached this date  public String getTimer() {     SimpleDateFormat format = new SimpleDateFormat("dd HH:mm:ss");      Date currentDate = Calendar.getInstance().getTime();     Date stopDate = null;     try {         stopDate = format.parse(timerDate);     } catch (ParseException e) {         e.printStackTrace();         return "";     }   (there is more code proceeding it but it's irrelevant. It cannot parse.  Exception Message:  java.lang.NullPointerException     at java.text.SimpleDateFormat.parse(Unknown Source) ~[?:1.8.0_121]     at java.text.DateFormat.parse(Unknown Source) ~[?:1.8.0_121]     at com.thefuzzyhead.octopia.util.general.MOTDManager.getTimer(MOTDManager.java:98) ~[?:?]     at com.thefuzzyhead.octopia.util.general.MOTDManager.<init>(MOTDManager.java:22) ~[?:?]     at com.thefuzzyhead.octopia.Main.onEnable(Main.java:37) ~[?:?]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[spigot-1.8.jar:git-Spigot-eb87f2b-ee6d0fa]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:335) [spigot-1.8.jar:git-Spigot-eb87f2b-ee6d0fa]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot-1.8.jar:git-Spigot-eb87f2b-ee6d0fa]     at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugin(CraftServer.java:356) [spigot-1.8.jar:git-Spigot-eb87f2b-ee6d0fa]     at org.bukkit.craftbukkit.v1_8_R1.CraftServer.enablePlugins(CraftServer.java:316) [spigot-1.8.jar:git-Spigot-eb87f2b-ee6d0fa]     at net.minecraft.server.v1_8_R1.MinecraftServer.q(MinecraftServer.java:402) [spigot-1.8.jar:git-Spigot-eb87f2b-ee6d0fa]     at net.minecraft.server.v1_8_R1.MinecraftServer.k(MinecraftServer.java:370) [spigot-1.8.jar:git-Spigot-eb87f2b-ee6d0fa]     at net.minecraft.server.v1_8_R1.MinecraftServer.a(MinecraftServer.java:325) [spigot-1.8.jar:git-Spigot-eb87f2b-ee6d0fa]     at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:211) [spigot-1.8.jar:git-Spigot-eb87f2b-ee6d0fa]     at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:505) [spigot-1.8.jar:git-Spigot-eb87f2b-ee6d0fa]     at java.lang.Thread.run(Unknown Source) [?:1.8.0_121]


I zoomed in / out of one of my UI panels and I can't figure out how to zoom back out/ in to get it normal size.   How can I reset the zoom level of UI panels?


Is the hyperspace tracking technology in The Last Jedi the same as the one seen in Star Wars Rebels?

In The Last Jedi we have the First Order tracking the Resistance through hyperspace, and this is treated as brand new cutting edge technology previously thought to be impossible.  But in the Star Wars Rebels episode "Gathering Forces" (S1 E09), we also have the Empire tracking the crew of the Ghost through hyperspace, via a tracking device that they attached to the ship. The crew of the Ghost does not seem particularly stunned that this tracking technology exists. This is decades before the events of TLJ.  Is this the same technology? If so, why are Finn and Rose so shocked by it in TLJ? is there an in-universe explanation?


Raspberry Pi Jessie Wi-Fi doesn't work with multiple IPs on same network

I would like to use two different static IP addresses for the same network with the same Wi-Fi dongle. I read in different forums that it's better to use /etc/network/interfaces instead of dhcpcd.conf for that purpose. So I changed the /etc/network/interfaces that way:  auto lo iface lo inet loopback  iface eth0 inet dhcp auto wlan0 allow-hotplug wlan0 iface wlan0 inet static     address 192.168.0.60     netmask 255.255.255.0     gateway 192.168.0.10     wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf auto wlan0:0 allow-hotplug wlan0:0 iface wlan0:0 inet static     address 192.168.0.61     netmask 255.255.255.0     wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf   The issue now is that for the most of the time I can't ping any member of the network. During the first 10 seconds, everything works fine and then I mostly don't get any connection.  ifconfig shows the following:  lo        Link encap:Lokale Schleife             inet Adresse:127.0.0.1  Maske:255.0.0.0           inet6-Adresse: ::1/128 Gültigkeitsbereich:Maschine           UP LOOPBACK RUNNING  MTU:65536  Metrik:1           RX packets:1237 errors:0 dropped:0 overruns:0 frame:0           TX packets:1237 errors:0 dropped:0 overruns:0 carrier:0           Kollisionen:0 Sendewarteschlangenlänge:1            RX bytes:100748 (98.3 KiB)  TX bytes:100748 (98.3 KiB)  wlan0     Link encap:Ethernet  Hardware Adresse b8:27:eb:a2:4b:72             inet Adresse:192.168.0.60  Bcast:192.168.0.255  Maske:255.255.255.0           inet6-Adresse: fe80::ba27:ebff:fea2:4b72/64 Gültigkeitsbereich:Verbindung           UP BROADCAST MULTICAST  MTU:1500  Metrik:1           RX packets:15498 errors:0 dropped:10634 overruns:0 frame:0           TX packets:5446 errors:0 dropped:0 overruns:0 carrier:0           Kollisionen:0 Sendewarteschlangenlänge:1000            RX bytes:5910381 (5.6 MiB)  TX bytes:722284 (705.3 KiB)  wlan0:0   Link encap:Ethernet  Hardware Adresse b8:27:eb:a2:4b:72             inet Adresse:192.168.0.61  Bcast:192.168.0.255  Maske:255.255.255.0           UP BROADCAST MULTICAST  MTU:1500  Metrik:1   and route -ne has the following output:    Ziel            Router          Genmask         Flags   MSS Fenster irtt Iface 0.0.0.0         192.168.0.10    0.0.0.0         UG        0 0          0 wlan0 192.168.0.0     0.0.0.0         255.255.255.0   U         0 0          0 wlan0   I also stoped dhcpcd, the IPs aren't in the dhcp IP pool of the router and with one static IP everything works fine  Does anyone have any clue what I did wrong?


Error When Create Drupal Commerce Product Display

I have managed to create a product type and import my product data, so I now have a list of products.  then i follow ryan szrama instruction   After that i get this error. EntityMetadataWrapperException: Unknown data property commerce_product. in EntityStructureWrapper->getPropertyInfo() (line 339 of C:\xampp\htdocs\drupal7\modules\entity\includes\entity.wrapper.inc).  what i should do??


terminal won't launch after install python 3.5

After I installed Python 3.5 and ran the commands below, my terminal and many other programs won't launch any more.  cd /usr/bin sudo rm python3 sudo ln -s python3.5 python3    How can I restore the default Python version again to fix these problems?


For which $n$ can $\{1,2,...,n\}$ be rearranged so that the sum of each two adjacent terms is a perfect square?

For which numbers $n$ can the sequence $1$ to $n$ be rearranged such that each pair of consecutive terms adds up to a perfect square?  Can this be done on the set of natural numbers as well? Integers? Rationals?


If $f$ is twice derivable at $a$, compute the following limit.

If $f$ is twice derivable at $a$, compute   $$\lim_{h\to 0} \frac{f(a+h)+f(a-h)-2f(a)}{h^2}$$   I tried to rearrange the terms in this way $$\lim_{h\to0} \frac{f(a+h)-f(a)}{h^2} + \lim_{h\to 0}\frac{f(a-h)-f(a)}{h^2}$$  but it didn't get me anywhere. I also realised I can't use l'Hôpital rule or Taylor's theorems, because the hypothesis is weaker.


A person who moves from place to place in search of opportunity

I move in search of opportunity.   When I was young, my father worked for the government, and we moved because of his posting.   Then I moved to a different city so I could get cheap education. Later, I moved to   yet another city to get a job. I have lived outside my home state more than inside, which makes me wonder if I can call it my "home state" at all.  Is there a (single) word for people like me who move in search of opportunities?  I found in  the phrase 'bird of passage' which is a hypernym, but not an exact match:     bird of passage [noun] [literary]      someone who keeps moving from one place to another


We have the binary operation addition on numbers. It has an additive identity ( 0 ) and it is commutative.        Multiplication is simply repeated addition. It is a binary operation on numbers. Its identity ( multiplicative ) is 1 and it is also commutative.      Then the function ^(x,y) = x^y  is repeated multiplication, it is again a binary operation but it is not commutative.   Why ? Also, it has a right identity ( 1 ) , but it seems not to have a left identity ( is it true ? ).      Why ?     I'm wondering if theres a reason that things change drastically even if we followed the same pattern ( making a new operation out of repeating the last one ).       Thanks in advance.


Determine if instance has Multi-Currency Enabled

Is there a way to check if an instance has Multi-Currency enabled through the API? I know that when enabling Multi-Currency, a CurrencyType object and multiple other fields are added on to each object.    Is there any other way other than querying for the CurrencyType object / CurrencyIsoCode on objects and then handling the INVALID_TYPE exception thrown when those fields are not in an instance without Multi-Currency enabled?  Thanks,


Solutions for dependency problem in interval arithmetic (remedy for nonexistence of additive inverses)

Currently I read about the  of . Mainly it's the problem that in the equation $X-X$ for $X$ being an interval the following is calculated: $$X-X=\{x-y:x\in X, y\in X\}$$ instead of $\{x-x:x\in X\}$. Both $X$ in $X-X$ are treated as different inputs. Thus $X-X\neq \{0\}$ so that there is no additive Inverse in interval arithmetic.  My Question: Is there a known solution for the dependency problem such that there is an additive (an multiplicative) inverse in interval arithmetic? Is there an extended version of interval arithmetic where addition is a group?  What I have found so far: I read about the centered form. For example, instead of calculating with $f(x)=x^2+x$ one can calculate with $(x+\tfrac 12)^2-\tfrac 14$ where $x$ only occurs once. The centered form helps, but does not provide an additive inverse...


I have a string like :  "\"[\"a\",\"b\", \"c\"]\""   How to convert this to a list of strings  Could you suggest me a nice way of doing it in Java?


I've been learning programming in python for the last two weeks and it's going great so far. But now I'm stuck and can't seem to find an answer. I found a really weird behaviour of a while loop, I just can't wrap my head around.  x=0 step_size=0.2  while x<2:     print x     x+=step_size   This code prints:  0 0.2 0.4 ... 1.8 2.0   2.0 should not be printed, right? When x becomes 2.0 the statement "x<2" is false, therefore the loop should exit and never print 2.0.  And now for the really weird part: it works with other numbers. Step_size=0.4 prints up to 1.6, step_size=0.1 up to 1.9. Using "x<1" as a statement and step_size=0.2 also works.  What am I missing?  Best regards, Leo  Edit: I'm using python 2.7.5 and the default Idle Editior v2.7.5


Is the set of irrationals separable as a subspace of the real line?

I am trying to find an example of a separable Hausdorff space which has a non-separable subspace.  This led me to ask the question in the title: is the set of irrationals, regarded as a subspace of the real line, separable or  non-separable?  A space is separable if it contains a countable dense subset.  A subset $A$ of a space $X$ is dense in $X$ if $\bar{A}=X$.  It's easy to come up with a dense set and a countable set in $\mathbb{R}\setminus\mathbb{Q}$, since (trivially) $\overline{\mathbb{R}\setminus\mathbb{Q}}=\mathbb{R}\setminus\mathbb{Q}$ in the subspace topology, and as a countable set we can take something like $\{k\pi \mid k \in \mathbb{Z}\}$.  But is there a subset that is both dense AND countable?  And of course, how do we prove the result?


the uniform convergence of the sequence of functions

Let $f_1:[a,b]\rightarrow \mathbb{R}$ be a Riemann integrable function. Define the sequence of functions $f_n:[a,b] \rightarrow \mathbb{R}$ by  $f_{n+1}(x)=\int_a^x f_n(t)dt,$  for each $n\ge 1$ and each $x\in [a,b]$. Prove that the sequence of functions   $g_n(x)=\sum\limits_{k=1}^n f_k(x)$  converges uniformly on [a,b].   I try to use Ascoli Theorem to prove this problem by considering  $|g_n(x)-gn(y)|\le\sum\limits_{k=1}^n |f_k(x)-f_k(y)|$. However, $|f_k(x)-f_k(y)|\le M |b-a|^{k-2} |x-y|, $ where $M>0$ is a constant achieving by the condition that $f_1$ is an integrable function. However, this estimation depends on $k$, so I cannot apply Ascoli-Azela Theorem.   Thank you in advance for your help.


I'm trying to look for the garchompite stone, but when I'm at the spot I don't see it anywhere. I have battled Serena, talked to professor Sycamore after, and appeared there between 8PM-9PM. Though, when I'm there I see that the sky isn't dark and it seems that it is day in the game. I've tried tweaking the time setting and date setting on the 3DS and still won't get it to work. Can anyone help me?


Example of a simple module which does not occur in the regular module?

Let $K$ be a field and $A$ be a $K$-algebra.  I know, if $A$ is artinain algebra, then by Krull-Schmidt Theorem  $A$ , as a left regular module, can be written as a direct sum of indecomposable $A$-modules, that is   $A=\oplus_{i=1}^n S_i$ where each $S_i$ is indecomposable $A$-module  Moreover, each $S_i$ contains only one maximal submodule, which is given by $J_i= J(A)S_i$, and every simple $A$-module is isomorphic to some $A/J_i$.  My question is that, can you please tell me an example of a non simisimple algebra, or a ring, such that it has a simple module which does not occur in the regular module.  By occur I mean it has to be isomorphic to a simple submodule of a regular module


How do I apply both \mathbf and \left to a \langle?

I want text surrounded by a bold-face \left\langle ... \right\rangle. But when I use \mathbf or \pmb, I get errors, and when I use \bm, it doesn't seem to do anything. Is there a command that does this?  I don't want to use \big, because I want this in a macro that I can use in many different places.


If I am NOT using a reference to a pointer when sending the base-pointer to another class constructor - and in this class binding the basepointer to a derived object of the base - the basepointer returns NULL.   Simply - what is the reason for this?   #include <iostream> using namespace std;  class Base {    public:       virtual void print() = 0; };  class Sub1 : public Base { public:    void print() {       cout << "I am allocated!\n";   } };  class App { public:     App(Base *b) {       b = new Sub1;    } };  int main() {    Base *b;    b = NULL;     App app(b);     if (b != NULL)       b->print();    else       cout << "Basepointer is NULL\n";     return 0; }   The crucial part here is the signature of the App-class constructor  when not using a reference to the basepointer i.e     App(Base *b)   the output is:     Basepointer is NULL   And when using a reference to the base-class i.e.    App(Base *&b)   the output is:   I am allocated!


Independence and correlation of continuous random variables

Let $(X_1,X_2)$ be a pair of uniformly distributed random variables with $S=[-1,1]\times[0,1]$. Are $X_1$ and $X_2$ independent? Are $X_1$ and $X_2$ correlated.  My approach for independence:  For independence I think what was has to be shown is that $$f(x_1,x_2)dx_1dx_2=f(x_1)dx_1f(x_2)dx_2$$ where for $X_1$ the density is $$f(x_1)dx_1=\frac{1}{1-(-1)}dx_1=\frac{1}{2}dx_1$$ and for $X_2$ the density is $$f(x_2)dx_2\frac{1}{1-0}dx_2=dx_2.$$  I'm very confused on what $f(x_1,x_2)$ is.  My approach for correlation:  No approach yet. But I found out that two random variables are uncorrelated iff $cov[X_1, X_2]=0$. How can I show that for the above problem?


View differences of tags with a diff tool (like meld)

The question is simple - how is it possible to view the difference between two tags from a project, but with the power of a GUI, not only the the console?  There is a lot of questions about view diff between commits, branches. Also helpful is diff between tags. Also the questions have a lot of old answers with the hints to external tools to add the possibility to use GUI tools to the diff command. Since git 1.7.11 is that not necessary, since this version has git the possibility difftool include.


I am running CentOS 5.3 and would like to log all messages from the "at" daemon. My syslog.conf contains the following entry:  cron.* /var/log/cron   I assumed that cron line in syslog refers to the entire family of "cron, anacron, at and batch". However, while cron and anacron actions seem to get looged, "at" actions do not get logged. How do I log atd actions?  Thank you for your attention   (Added) I would like to add the contents of my syslog.conf just in case there is an error:  # Log all kernel messages to the console. # Logging much else clutters up the screen. #kern.*                         /dev/console  # Log anything (except mail) of level info or higher. # Don't log private authentication messages! *.info;mail.none;authpriv.none;cron.none        /var/log/messages  # The authpriv file has restricted access. authpriv.*                      /var/log/secure  # Log all the mail messages in one place. mail.*                          -/var/log/maillog   # Log cron stuff cron.*                          /var/log/cron  # Everybody gets emergency messages *.emerg                         *  # Save news errors of level crit and higher in a special file. uucp,news.crit                      /var/log/spooler  # Save boot messages also to boot.log local7.*                        /var/log/boot.log


What are the requirements for valid housing in Terraria 1.2

I'm not sure, but it seems like the requirements for valid housing have changed in Terraria 1.2.   I usually build a big central chamber like in the image below, but since the 1.2 patch this setup doesn't work. The query tool give the "This is not valid housing" message.  The room is enclosed by bricks and platforms. It has a door, chair, table, background walls and light sources. This was usually enough for valid housing.    Have the requirements for valid housing changed in Terraria 1.2? If so, what are the new requirements? Or am I just doing it wrong?  Edit/Answer:  For those that don't find any answer in the "duplicate" question: Rooms have a max size. The exact maximum is elusive since there are a lot of variables. This  has a nice guide about house size.


How To Grant A Specific Login Under Acitve Directory Group To View Server State In SQL Server

I want to grant only a login who is under an active directory user group to view server state in sql server. How can i do it?


When should I get business cards and how much do they actually matter as a graduate student who has not yet built up their CV?

Context: I am a graduate student within the social sciences, who will be obtaining their Master's degree on their way to Ph.D. (hopefully by the end of this academic year). Though I have not yet published to any peer-reviewed journals, the work I do this year will likely be the foundation for my first publications and I will be attending conferences soon. That being said, I have had my fair share of networking at conferences (outside of my field) and been given business cards, but very rarely have I ever seen a business card from someone in my own field! My program encourages many strategies that will help fellow scholars find me online to contact me, but regarding business cards, I have been given various answers. Most of my mentors seem to think that surely business cards are important, however, it seems that they only become imperative after I have started to publish my research, i.e. give people a reason to need my business card.   As of now, passing out my card at a conference would only serve to introduce my research interests.. which have not yet been conducted and it will take 1-2+ years before I am out in the field, producing this research. Moreover, the conferences I attend within the next 1-2 years are geared towards introducing graduate students to panels and whatnot, and it is unlikely that their research interests will substantially align with my own. Even more perplexing - I have met students in my field that are far more experienced than myself but are not concerned with business cards whatsoever at this early stage of their career, but I have also met students with my same level of expertise who hand out their card often.  Provided this information, when should I start seriously considering business cards? To what extent would my business card matter to you personally, and if it does not matter much because I am so early on in my career, at one point do you suggest taking business cards more seriously? As of now, my business card would likely list my occupation as "graduate student" or "teaching fellow," which do not seem substantial enough to purchase cards in bulk.. especially when my occupation will change, as I progress in my program. Any and all advice is welcome, as well as personal anecdotes regarding one's experience with the timing of obtaining their own business cards!  Thank you!!


I was wondering what is the concept behind negative numbers? 2x3 is same as 3+3  but when we multiply  -2x-3 why is it not the same as -3+-3 ? I am curious behind the reason of this and why do negative numbers behave like this.  Thank you!!! have a great day !!!!


What makes vowels different? I know that depending on the position of tongue and the mouth shape the different vowels can be produced. But what makes vowels different in terms of sound waves?


Cannot Change Error Log Location For MySQL 5.7 in Ubuntu 16.04

Whenever I change the log location form: /var/log/mysql to: /var/www in order to keep every log files in the same place (just under public folder) in mysqld.cnf mysql server cannot restart.  /etc/mysql/mysql.conf.d/mysqld.cnf log_error = /var/log/mysql/mysql_errors.log  I checked for some solutions and added:  character-set-server = utf8 collation-server = utf8_general_ci  But still didn't work. /var/www has 770 permissions and belonging to www-data group. I added mysql to www-data group:  sudo usermod -aG www-data mysql  But still didn't work. MySQL: 5.7.19 Ubuntu: 16.04.1 Here is the error log:  Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details. mysql.service: Main process exited, code=exited, status=1/FAILURE  Whenever I undo the log location change, it starts to work.  EDIT 31.07.2017 I run this after log location change: sudo touch /var/www/mysql_errors.log sudo chown mysql:mysql /var/www/mysql_errors.log sudo chmod 770 /var/www/mysql_errors.log  sudo systemctl restart mysql  sudo journalctl -xe > ~/journal.txt  Here are the relevant log entities: -- Unit mysql.service has begun starting up. Jul 31 00:33:55 mydomain.com audit[1738]: AVC apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/proc/1738/status" pid=1738 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=112 ouid=112  Jul 31 00:33:55 mydomain.com audit[1738]: AVC apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/var/www/mysql_errors.log" pid=1738 comm="mysqld" requested_mask="ac" denied_mask="ac" fsuid=112 ouid=112 Jul 31 00:33:55 mydomain.com audit[1738]: AVC apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld"   Jul 31 00:33:55 mydomain.com systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE


I have a DXF (layout) which is to be spatially adjusted to a point shapefile that has correct X Y cords.   When I add both as vector layers to Qgis, point shapefile is right on place but dxf shows a single line. I assume it needs rotation.  Vector bender, Vector transformation, Affine Transformation, DXFtoshapeconverter, I tried it all but nothing works.   I need help in understanding the process in such cases, where first I need to rotate the layer to match XY plane of the target layer and then georeference.


Should it be 'an' or 'a' in front of an abbreviation?

I am using abbreviations for well-known phrases: e.g., "Nash equilibrium" becomes NE and "neural networks" becomes NN. Should I use "an NN" or "a NN"? Does it matter whether a reader "unfolds" the abbreviation or not when reading? That is, I think it is often the case that NE is read "Nash equilibrium", then it seems appropriate to use "a NE".


Word caption style -- different style for label and number?

This should be a common problem for anyone involved in technical writing.  When you insert an image (or table etc.) caption in Word, you get  dialog. You enter your caption,  "A happy bicycle" (in yellow).  This might be fine for a happy bicycle, but I want to have captions that have one style for the "enumeration" (label and number) and one style for the description (caption text, as called by Word), as such:    I have tried searching for this but I haven't found anything yet...


ord $(b)|\max\{\text{ord}(g)|g\in G\}$ for all $b\in G\,$ a finite abelian group

Let $a$ be an element of maximum order from a finite Abelian group $G$. Prove that for any element $b$, $|b|$ divides $|a|$ (order of $b$ divides order of $a$).


Show $e^x$ is irrational for rational $x \neq 0$

I want to show that if $x$ is rational and nonzero then $e^x$ is irrational.  Clearly $e^{\frac{r}{s}} = \frac{p}{q} \Rightarrow q^s e^r = p^s$, but this doesn't seem helpful. The usual proof that $e$ is irrational doesn't look like it can be extended either.


Change background-color on text links but not image links

I have an issue, I would like my text link to have a background-color on :hover but now, the divs and images which are linked also have this background-color, does anyone has an idea how i can apply this background-color only to the text links?  I have tried all sorts of codes :   a:hover img{    background-color: transparent; }  a img:hover{     background-color: transparent; }   but nothing has worked...  This is not a duplicated of the linked question, I can't put a class on some links or images because it's running on wordpress so I can't programm all text links or all image links to have a certain class.  I have tried the "vertical align" solution of  , but i have images with padding, so one can see the background around, and also on regular image, one can see a thin yellow line aswell.


How to start contributing to Ubuntu development?

I'd like to contribute to Ubuntu development some day. If you're a developer of Ubuntu could you tell me/us what are the prerequisites to start?   What languages and technologies are needed to know, how to make familiar with development (overview over the project) and development process? I am interested in the core of the distribution, the main parts, not writing applications.  I'd like to read some advice from the developer who has already some experience and can say the main points of his learning path and difficulties (that are general enough for typical Ubuntu distribution developer) he had to overcome.


Proving that a Binary Tree of $n$ nodes has a height of at least $\log(n)$.

For a homework assignment, I need to prove that a Binary Tree of $n$ nodes has a height of at least $log(k)$. I started out by testing some trees that were filled at every layer, and checking $log(n)$ against their height:  when $n = 3$ and $h = 1$, $\log(3) = 0.48 \leq h$  when $n = 7$ and $h = 2$, $\log(7) = 0.85 \leq h$  when $n = 15$ and $h = 3$, $\log(15) = 1.18 \leq h$  when $n = 31$ and $h = 4$, $\log(31) = 1.49 \leq h$  By this point, I realized that every layer, $n = n*2+1$ from the previous layer, and obviously the height increases by 1.  To try to follow the trajectory, I plotted it:, and it looks like the 2 lines will never meet.  Unfortunately though, I don't think this actually proves anything.  Can someone point me in the right direction from here?


remove duplicates from array String without set

So I have String array that looks like this:  arraySubs:  math math math web web web prog prog prog   Now I want to remove the duplicates to look like this:  arraySubs:  math web prog   I wouldn't mind if there is null on places that should be removed, so I tried this:  for(int j = 0; j < arraySubs.length; j++) {     if(j<arraySubs.length-1) {         if(arraySubs[j+1]==arraySubs[j]) {//equalsIgnoreCase doesn't work.             arraySubs[j]=null;         }        }     if(arraySubs[j]!=null) {         System.out.println(arraySubs[j]);     } }   But it doesn't work it's still printing all of them, any ideas? I don't wanna use Set, HashSet etc. Or any other tools such as iterators. equals() doesn't work...


I have installed Ubuntu 14.04 on my Sony Vaio VGN-T37GP but it runs slow

I have installed Ubuntu 14.04 but it runs very slow. Whenever I open any window like "Dash Home" or "Firefox", it takes more time than another computer.  Graphics of my Sony Vaio:- Intel® 852GM/855GM x86/MMX/SSE2


Merge files based on matching of first column


Should there be some kind of consequence for users who incorrectly close a thread that is ultimately reopened?

I just  marked as a duplicate by a user, who didn't seem to have read the content of the post, and left a "Read the documentation." comment,  without even giving any additional explanation.   The post then got enough votes to be re-opened after other users pointed out that the proposed dupe wasn't the same problem.  My problem was eventually solved, but I couldn't help but wonder if users should get some sort of notice or warning for incorrectly closing a post that is eventually reopened?


What is stopping my Visual JVM remote connection?

I have started my application with this settings below:  -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=43588  -Dcom.sun.management.jmxremote.authenticate=false  -Dcom.sun.management.jmxremote.ssl=false  -Djava.rmi.server.hostname=***.**.***.**    The app is running on a Centos machine. I have enabled the port via iptables. I have checked that when I run my application, the port 43588 is shown as listening.   Somehow I still get this error:      Cannot connect to ...:43588 using service:jmx:rmi///jndi/rmi://...:43588/jmxrmi?    What is my mistake? We are connecting from a windows machine.


Trying to implement a template for a stack in c++ (and failing miserably)

i started studying informatics about half a year ago and we are learning  as a programming language, so im really new to coding. tried implementing a template for a stack today, however  keeps telling me ": unresolved external symbol " when trying to compile, so there must be a (probably extremely dumb) error somewhere in my code. heres the error-message(parts of it in german, words should be easy to guess though):  1>main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public:        __thiscall stack<int>::stack<int>(void)" (??0?$stack@H@@QAE@XZ)" in Funktion "_main". 1>main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: __thiscall stack<int>::~stack<int>(void)" (??1?$stack@H@@QAE@XZ)" in Funktion "_main". 1>main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: void __thiscall stack<int>::pop(void)" (?pop@?$stack@H@@QAEXXZ)" in Funktion "_main". 1>main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: void __thiscall stack<int>::push(int)" (?push@?$stack@H@@QAEXH@Z)" in Funktion "_main".   here the code:     //stack.h  #pragma once  template <class obj> class stack {  int maxSize; int currentSize; obj * thisStack;  public: stack(int size); ~stack();  bool isFull(); bool isEmpty(); obj top(); void pop(); void push(obj objekt); };   //stack.cpp #include "stdafx.h" #include "stack.h" #include <iostream> using namespace std;   template <class obj>  stack<obj>::stack(int size) { currentSize = 0; maxSize = size; thisStack = new obj[maxSize]; }   template <class obj> stack<obj>::~stack() { delete thisStack[]; }  template <class obj> bool stack<obj>::isEmpty() { if (currentSize == 0)     return true; else     return false; }  template <class obj> bool stack<obj>::isFull() { if (currentSize == maxSize)     return true; else     return false; }  template <class obj> obj stack<obj>::top() { if (!isEmpty()) {     return thisStack[currentSize]; } else {     cout << "Stack is empty" << endl; }  }  template <class obj> void stack<obj>::push(obj objekt) { if (!isFull()) {     thisStack[currentSize] = objekt;     cout << "Object " << thisStack[currentSize] << "pushed on the stack" << endl;     currentSize++; } else {     cout << "Der Stack is full" << endl; } }  template <class obj> void stack<obj>::pop() { if (!isEmpty()) {     cout << "The Object " << thisStack[currentSize - 1] << endl;     currentSize--; } else {     cout << "Stack is empty" << endl; } }   ...and the main.ccp where i tested it with a couple of integer values and found it not working  #include "stdafx.h" #include "stack.h"  void main() { stack<int> myStack(10); myStack.push(1); myStack.push(2); myStack.push(3); myStack.push(4); myStack.push(5); myStack.push(6); myStack.push(7); myStack.push(8); myStack.push(9); myStack.push(10); myStack.push(11); myStack.pop(); myStack.pop(); myStack.pop(); myStack.pop(); myStack.pop(); myStack.pop(); myStack.pop(); myStack.pop(); myStack.pop(); myStack.pop(); myStack.pop(); getchar(); }   help would me much appreciated, tried finding the mistake for over an hour now, thanks


How can I make the diagram similar to the attached in LaTeX?

I want to make a detailed timeline of life events in a similar fashion of the attached photo, can someone share code?


I have my object selected and don't know why the settings are not there. I've tried different objects and it's the same problem. Can somebody help? Edit: I can see all the settings in the Shading tab..


gksudo doesn't act like sudo for 'string' >> file

I'm trying to do a two-lines-script to temporary set a specific nameserver. Therefore I just output 'nameserver XXX.XXX.XXX.XXX' to the /etc/resolv.conf file, because it gets overwritten next time anyways. The thing is, when I try to ask for the password via gksudo, I get an error because it tries to output the gksudo result to the file.  UPDATE:  My current file is now:  #!/bin/sh gksudo "bash -c \"echo 'nameserver XXX.XXX.XXX.XXX' >> /etc/resolv.conf\""   The command with sudo instead of gksudo and without the "" and \\ works as it should. Remains how to get it into the GUI prompt.


I'm trying to find a word or short phrase that would describe chasing something that doesn't exist. My restriction is that it can't be referencing something that would only make sense in our world (things like "chasing the white whale" as it's a reference to Moby Dick) I'm writing a book that does not take place on earth. So referencing our literature, specific places on earth, or specific cultures on earth don't really work well with the setting. I'll be taking a look at worldbuilding.stackexchange.com as well, but for reference for those who comment or come back to view this question. The world the story takes place in is similar to earth in regards to atmosphere, environments, and natural phenomenon. Things like "chasing the rainbow" would work. As for context in how I'm trying to use this. Two people are having a tense conversation. Person 1 is attempting to convince Person 2 to join a group that has made person 1 very idealistic promises. Person 2's reply is “You paint a pretty picture, but it’s one drenched in the blood and death of every nation. You use to be so smart, so tactful, now you’re nothing but a fool chasing after a _______________.”


From my understanding. if the car is moving at the velocity of 10 m/s and the fly is moving at the velocity of 5 m/s. the fly must move backward at the velocity of 5 m/s. but the fly seem to be able to keep up with the car just fine.


For example take this attached picture in your consideration. Here in this case, I want ditto "Music" type icon to replicate for folder type icon.    I have tried CandyBar app. It does change the folder icons but when I add folder which in this case is "Music to the sidebar then it appear like normal folder as shown in the picture, provided that this Music folder come from another partition or drive wherein I have kept my complete music library.


Can you cast Eldritch Blast twice in the same turn using the sorcerer's Quickened Spell Metamagic option?

Someone has been telling me that I cannot cast eldritch blast twice a turn, because by some rule you are only able to cast one spell and one cantrip a turn, regardless of casting time. I trust his judgment, but I want to confirm.  I have always been familiar with the stuff you get during combat: One action, one bonus action, and one reaction. It doesn't make sense that I can't use an action to cast eldritch blast, then use Quickened Spell to make the casting time a bonus action, and then use eldritch blast again.  Can you cast eldritch blast twice in the same turn using the sorcerer's Quickened Spell Metamagic option?


I am trying to create a macro that creates two macros. The first sets a default value and the second creates a macro to redefine the first. I am trying to generalize a common pattern I am using quite a bit.  \newcommand{\mkMac}[1]{% \newcommand{\the#1}{The macro ##1} \newcommand{\#1}[1]{\renewcommand{\the#1}{##1}} }   Usage:  \mkMac{affilation} \affilation{University} Welcome to \theaffilation


How do I mklink junction + move content from C:\Program Files to D:\Program Files?

I have a few applications that absolutely refuse to install into anything but C:\Program Files or C:\Program Files(x86). Changing the registry keys for default install folders doesn't seem to provide any satisfaction and so now I'm wondering about throwing a NTFS junction in there to force these pesky applications to cooperate.  There are files currently in use within Windows so it's quite likely I am not going to be able to do this within the active OS. Is there some bootable Windows 7 system tools that would allow me to make this happen? Seems I will need the ability to copy files (with permissions!) from one drive to another, as well as make the junction for Windows.


What is the quickest way to HTTP GET in Python?

What is the quickest way to HTTP GET in Python if I know the content will be a string? I am searching the documentation for a quick one-liner like:  contents = url.get("http://example.com/foo/bar")   But all I can find using Google are httplib and urllib - and I am unable to find a shortcut in those libraries.  Does standard Python 2.5 have a shortcut in some form as above, or should I write a function url_get?   I would prefer not to capture the output of shelling out to wget or curl.


I am trying to compile a simple tex file but I get this warning and no bibliography printed out:  Package biblatex Warning: No "backend" specified, using Biber backend.   I am using Kile on Ubuntu 14.04. While the same exact file on another pc with Ubuntu 12.04 is correclty working. What is the problem? How can I solve it?  Here is my MWE:  \documentclass[a4paper,11pt]{article} \usepackage[utf8]{inputenc} \usepackage[italian,english]{babel} \usepackage[T1]{fontenc} \usepackage{booktabs} \usepackage[font={small}, labelfont=bf, hypcap=true]{caption}[2004/07/16] \usepackage[unicode,colorlinks=true]{hyperref}  \usepackage[babel]{csquotes} \usepackage[style=authoryear-comp,maxcitenames=1,maxbibnames=99,sortcites=true,firstinits=true,doi=false,url=false,isbn=false, hyperref]{biblatex}%style=numeric-comp,sorting=none,backend=biber  \renewbibmacro{in:}{% elimina il in nella biblio   \ifentrytype{article}{}{%   \printtext{\bibstring{in}\intitlepunct}}}   \renewcommand*{\bibfont}{\small}  \bibliography{biblioTC}  \title{My paper title} \author{Me}  \date{}  \begin{document}  \maketitle  \newpage  \section{Test}  Lalalalalalalalalala \cite{Colitti2014}.  \newpage \phantomsection\addcontentsline{toc}{section}{\refname}         \printbibliography  \end{document}


Let $\alpha\in\mathbb C$. Recall that $\mathbb Q[\alpha]$ = {${f(\alpha) : f(X) \in \mathbb Q[X]}$} and that $\mathbb Q[\alpha]$ is a vector space over $\mathbb Q$.  Suppose that $\mathbb Q[\alpha]$ is finite dimensional as a vector space over $\mathbb Q$. Prove that $\alpha$ is algebraic over $\mathbb Q$.  I'm not sure where to start with this proof, so any help is much appreciated. Thanks!


How to add a back button to go back to previous page

I'm currently new to Ubuntu programming, and learning the basic's of it. I've been following this tutorial as some of you might know in previous questions asked about it I've made before.  Now, I've created a Web browser using 'quickly'. It's a simple program witch helps create programs on Ubuntu.  In the video It showed how to 'refresh' the page witch is basically this code:   def on_refreshbutton_clicked(self, widget):     self.webview.reload()   Now, my question is to make the page go back from a previous page is it this code:  def on_refreshbutton_clicked(self, widget):     self.webview.back()   I used 'refreshbutton' as a example, but if you would like to view the full source of the  the code just ask for it and I'll provide you with a link witch you can view the source.


Multiple tags in one line of align environment

Is there a possibility to tag each equation of a single line in an align environment of the amsmath package?  Like so (this code leads to the error Package amsmath Error: Multiple \tag.):  \begin{align}   a &= b \tag{A} & c &= d \tag{B} \\   e &= f \tag{C} & g &= h \tag{D} \end{align}   Or is there any other environment or package that can be used to achieve the same effect?


Pointer in Object Oriented Programming C++

I'm comming from "java-world" and now I want to start learning C++. I know in C++ objects are created like variables without the key word "new" which is used in java, but I have often seen in OOP code, when objects are create used by pointers like:  Car* car1 = new Car(); car1->doSomething();   instead of   Car car1; car1.doSomething();   What's atually the difference? What's the advantage or disadvantage?


How to use consistent symbology between multiple stretched rasters in ArcMap?

I have a series of continuous rasters representing the same phenomenon over time, so I need to use the same symbology across them all.  So I set the stretched symbology of the first raster, with a color ramp from the min/max values:    Now in the second raster, I import the symbology from the first raster. Unfortunately, although the labels match, the actual min/max values are not the same as the first layer:    So the red in the second raster corresponds to a value of 0.47, rather than 0.66.  How can I ensure that both rasters are using a consistent symbology?


Let $A$ and $B$ be positive definite matrices and $S_{M}= \{x:x^TM^{-1}x \leq 1\}$ . Show that $S_{A} \subseteq S_{B}$ iff $B \succeq A$

Problem: Let $A$ and $B$ be $n\times n$ real symmetric positive definite matrices and $S_{A}= \{x\in \mathbb{R}^n:x^TA^{-1}x \leq 1\}$ and $S_{B}= \{x\in \mathbb{R}^n:x^TB^{-1}x \leq 1\}$. Show that $S_{A} \subseteq S_{B}$ iff $B \succeq A$.  Definition: $B \succeq A \Rightarrow B-A \succeq 0$, in other words $B-A$ is positive semidefinite. I seem to be getting the opposite result. I do: if $S_{A} \subseteq S_{B}$ then $x^TA^{-1}x \leq x^TB^{-1}x$ and so $0 \leq x^TB^{-1}x-x^TA^{-1}x$ which means that $0 \leq x^T(B^{-1}-A^{-1})x$. This means that $(B^{-1}-A^{-1})$ is positive semidefinite and thus $B^{-1} \succeq A^{-1}$. But I know that (and previously proved) if $B^{-1} \succeq A^{-1}$ then $B \preceq A$, which is the opposite of what I am trying to prove. Where am I going wrong so far, and how do I proceed?


Does the string of prime numbers contain all natural numbers?

Does the string of prime numbers $$2357111317\ldots$$ contain every natural number as its sub-string?


Consider the 2-dimensional vector subspace $V = \{(x, y, z) : x + y + z = 0\}$ of $\mathbb{R}^3$ , and two bases: $\alpha_1 = (1,−1,0)$, $\alpha_2 = (1,0,−1)$, and $\beta_1 = (0,1,−1)$,  $\beta_2 = (1,1,−2)$.     Find the change-of-basis matrix $A$.   I (foolishly) tried the standard way from linear algebra to find it and I found that $A$ is a 2*2 matrix $\begin{bmatrix} -1 &1 \\   2&-1  \end{bmatrix}$, which doesn't make sense since the vectors in $V$ are of $\mathbb{R}^3$ any help?


Why can't I copy/paste or drag/drop into my virtual machine?

I'm working on a project, and I'm using Ubuntu Studio 14.10 inside Virtual Box (4.3.22; which is the latest version AFAIK).  I'd like to copy some files from my host (Windows 8.1) to the virtual machine, but I can't seem to make it work. I've tried both "drag 'n' drop" and copy-paste, but neither work.  I have enabled both in the Virtual Box options:      Why aren't copy/paste and drag 'n' drop working, even though they're enabled?


Python - Using the Multiply Operator to Create Copies of Objects in Lists

In Python, if I multiply of list of objects by an integer, I get a list of references to that object, e.g.:  >>> a = [[]] * 3 >>> a [[], [], []] >>> a[0].append(1) >>> a [[1], [1], [1]]   If my desired behavior is to create a list of copies of the original object (e.g. copies created by the "copy.copy()" method or something sort of standard, is there an elegant way to do this with the same multiplication operator?  Or should I just stick with a list comprehension or something?  E.g.  [[] for x in range(0,3)]   Any version of Python is fine.


What is default Password for Live Session User in Ubuntu 18.10?

I am booting 18.10 on USB. I want to protect the the account with a password that is not default by creating an account when I boot Ubuntu.


Know if an interface has any implementation class in current class path

We are developing a library for our company's other teams. I'd like to design an Authentication interface, if the user of our library implement that interface in their project, then we will use their implementation (probably through reflection) to do the authentication. If there is no implementation then we will ignore this part.  The reason we do like this vs. providing method to register their auth class is we don't expose these kind of high level function to the project team. They will mostly work on the business logic part.


Stopping classbreakvalues from changing symbology of point layer (remove strokes) using ArcPy?

I'm using ArcMap 10.4.1.  I am trying to update a point layer symbology with a premade lyr file, then adjusting it's class break values in arcpy. It's working fine, only it changes the symbols back to default (while the colours stay correct). I don't want my points to have a stoke/outline and can't change that with arcpy, so thats a problem.  Here's my code:  updateLayer = arcpy.mapping.ListLayers(mxd, "FC", df)[0] FClyrpath = "FCsymology.lyr" sourceLayer = arcpy.mapping.Layer(FClyrpath) arcpy.mapping.UpdateLayer(df,updateLayer,sourceLayer, symbology_only = True)  lyr = arcpy.mapping.ListLayers(mxd, "FC", df)[0]  if lyr.symbologyType == "GRADUATED_COLORS":     lyr.symbology.valueField = "depth"     lyr.symbology.classBreakValues = [3, 5, 8, 11, 12, 15, 18, 21, 24, 72]  arcpy.RefreshTOC()   This is what my premade ".lyr" symbology looks like:    This is what happens when changing the classbreakValues: The classification is good, the strokes around the symbol not.    I also tried changing the default symbology in AdvancedArcMapSettings, but no avail.


Can anyone suggest a detailed installation process for Ubuntu on Windows 8.2?

I have never used Linux based OS and looking forward to use Ubuntu. I want guidance on installing Ubuntu with Windows 8.2 as dual boot?


Why don't work function onEdit(e) when using Zapier

I created a chatbot that using Zapier (through Webhook and JSON) for sending to my Google Sheet a name and a phone of user and Apps Script must generate a coupon code automatically. I used function onEdit(e) and it works when I manually enter the text in Google Sheet but when I using the chatbot in not works. Why? What I must change in my script?  This is my script:   var COLUMNTOCHECK = 2; var DATETIMELOCATION = [0,1]; var COUPONHERE= [0,2]; var SHEETNAME = 'Main' var COUPON_CHARS_RANGE = "ABCDEFGHIJKLMNPQRSTUVWXYZ123456789"; function onEdit(e) {   var ss = SpreadsheetApp.getActiveSpreadsheet();   var sheet = ss.getActiveSheet();   if( sheet.getSheetName() == SHEETNAME ) {      var selectedCell = ss.getActiveCell();     if( selectedCell.getColumn() == COLUMNTOCHECK) {        var dateTimeCell = selectedCell.offset(DATETIMELOCATION[0],DATETIMELOCATION[1]);       dateTimeCell.setValue(new Date());       var couponLength = 8;       var coupon = "";       var CouponCell = selectedCell.offset(COUPONHERE[0],COUPONHERE[1]);       for (var i = 0; i


Remove created element by id using jquery

i have a table for enter name and details. i have create new fields from a button but i can't remove anyone of my create except original one.  i try increase span class name for help to delete but nothing.Please help me to get it solve. Thanks in advance..  My original data table

<input type="text" class="yuzdeyetmis" name="partname[]" value="" id="pname" placeholder="Name" />
 DELETE

<textarea rows="3"  name="partdetay[]" id="pdetay" placeholder="Detail"></textarea>

        <input type="button" id="add_more_part" class="upload" value="Add New Record"/>   and i want to add and remove new data parts  $(".yuzdeotuz").click(function(){     var strtab = $(this).attr('id');     alert(strtab );     $("."+strtab).remove();  }); //  To add new bolum stream source field dynamically, on click of "Add More Source" button  $('#add_more_part').click(function() {      var tabcount = $('.yuzdeotuz').length;     if (tabcount == 1 || tabcount != 1)     {         tabcount++;          mytab = "tab"+tabcount;     }      $(".source").append('

<input type="text" class="yuzdeyetmis" name="partname[]" value="" id="pname" placeholder="Name" />
 DELETE

<textarea rows="3"  name="partdetay[]" id="pdetay" placeholder="Detail"></textarea>

 '); });   For my working codes `


Why does SQL Server require the datatype length to be the same when using UNPIVOT?

When applying the  function to data that is not normalized, SQL Server requires that the datatype and length be the same.  I understand why the datatype must be the same but why does UNPIVOT require the length to be the same? Let's say that I have the following sample data that I need to unpivot: CREATE TABLE People (     PersonId int,      Firstname varchar(50),      Lastname varchar(25) )  INSERT INTO People VALUES (1, 'Jim', 'Smith'); INSERT INTO People VALUES (2, 'Jane', 'Jones'); INSERT INTO People VALUES (3, 'Bob', 'Unicorn');  If I attempt to UNPIVOT the Firstname and Lastname columns similar to: select PersonId, ColumnName, Value   from People unpivot (   Value    FOR ColumnName in (FirstName, LastName) ) unpiv;  SQL Server generates the error:  Msg 8167, Level 16, State 1, Line 6 The type of column "Lastname" conflicts with the type of other columns specified in the UNPIVOT list.  In order to resolve the error, we must use a subquery to first cast the Lastname column to have the same length as Firstname: select PersonId, ColumnName, Value   from (   select personid,      firstname,      cast(lastname as varchar(50)) lastname   from People ) d unpivot (   Value FOR    ColumnName in (FirstName, LastName) ) unpiv;  See  Prior to UNPIVOT being introduced in SQL Server 2005, I would use a SELECT with UNION ALL to unpivot the firstname/lastname columns and the query would run without the need to convert the columns to the same length: select personid, 'firstname' ColumnName, firstname value from People union all select personid, 'LastName', LastName from People;  See . We are also able to successfully unpivot the data using CROSS APPLY without having the same length on the datatype: select PersonId, columnname, value from People cross apply (     select 'firstname', firstname union all     select 'lastname', lastname ) c (columnname, value);  See . I have read through MSDN but I didn't find anything explaining the reasoning for forcing the length on the datatype to be the same. What is the logic behind requiring the same length when using UNPIVOT?


When an anime character is embarrassed, they often draw him/her with a sweat droplet.  Which artist came up with this idea and how did it become so prevalent in anime/manga?


Lots of noise in my hockey pictures. What am I doing wrong?

I often take pictures of hockey players but they have a lot of noise and look very bad. I guess my lens doesn't have a big enough aperture, but I'd like to know what I could do to take better shots. I tried using low ISO values and maximum aperture, but shutter speed has to be very quick for this sport so it doesn't work very well.  I have a Canon 70D and an EF-S 55-250mm IS STM lens (f/4-5.6). Do you think I should use a different lens? How could I improve my pictures?  Here is an example taken in auto "SCN Sports" mode (ISO 4000 - 79mm - f/5.0 - 1/800s)      What details look like


In going through the first post queue, I came across  which was posted by a now-deleted user.  It would seem to me that most of the reasoning behind the queue is to help out and provide feedback to a brand new user, which can't happen if that user no longer has an account on the site.


I have GeForce GTX 560 Ti. I's worked fine in 12.04 with nvidia drivers. Unfortunately, after todays 12.10 update, something broke down.   I've tried nvidia-current, nvidia-current-updates and nvidia-experimantal. Always the same behaviour: Bad resolution in lightdm, after logging nothing except wallpaper. No unity panels, "win" key doesn't work.   After removing nvidia drivers everything work.


Creating a custom text entry input source (keyboard layout) based on an existing one

How can I create a modified copy of an existing text entry layout?  To be more specific, I'd like to add the parenthesis ( ) and # symbol to the Armenian (alternative phonetic) layout by sacrificing some other symbols.  I know about the possibility of mapping a key to a different one, but that won't work as I need this for one layout only. Also that would be rather a dirty hack.


I may be wrong, but I was thinking of:  $\operatorname{lcm}(a, b)$ as $\min(a, b)$ and $\gcd (a, b)$ as $\max(a, b)$ and $a <b <c$   I know I'm wrong, but I think I can do it


How do I disable Notepad++'s "This file has been modified..." message?

Is there anyway to prevent this dialog box from popping up every time a file has been changed?     This file has been modified by another program, do you want to reload it?


Why not is it a good practice to use self in initializer method in Objective-C?

I am aware that using setters in dealloc can create problems, if any other object is observing for changes in a property. But why should not we use them in initializers?


Will a single piece of a dual channel RAM work fine with a non-dual channel RAM?

I used to have 2x2GB dual channel RAM however the other piece is now broken. Now I'm thinking of buying a normal single-piece 2GB RAM. Will it work just fine with my old single-piece 2GB dual channel RAM?


Question: Why is the topological space $\mathbb{R}^\infty$ defined to be the subset of $\prod_{i=1}^\infty \mathbb{R}_i$ consisting of sequences $(a_i)_{i=1} ^{\infty}$ such at most finitely many $a_i\neq 0$? Why does one insist on the condition that $a_i\neq0$ for at most finitely many $i$?


Mathematical explanation for the Repertoire Method

There are a few questions already about this method, which has stumped me for a long while. The process is explained, for instance, here:   What I absolutely don't get is: What's the meaning of plugging in simple functions (which are not solutions) in the recurrence and how would that help finding what the right solution really is?  As I understand it, we have a function determined by a recurrence relation and we want to find a closed formula for it. The recurrence being linear, we assume this closed form is a linear combination of 3 other functions, with coefficients $\alpha, \beta$ and $ \gamma$.   The first method suggested in the book is clear to me: set simple values for the constants, since the function will be the same for all of them, and try to guess A, B and C and prove it by induction. What I don't get is the "dual" repertoire method.  $f$ could be anything, but it's something fixed, so I don't see any meaning in this process of plugging in $f(n) = 1$. $f$ clearly is not 1. What is going on?  I expect everything coming down to seeing a vector space / module in two different ways and then somehow picking some basis vectors from each. However, I can't work out the right abstraction.  I'd like to ask for a very explicit top down explanation of this repertoire method, if possible with linear algebra vocabulary.


Is there a way that I can apply my physics so I can export them as obj?

I am trying to fill my container with rocks using physics. Is there a way that I can apply this? Similar in applying modifiers? Because I want to export this as OBJ for a prop.


Is there any reason regarding performance issue or security to make button edit in feature add comment has timeout?  I got problem to edit my comment when the button edit disappear, so for now what I'm doing is:    Copy the comment And then delete the comment And then add new comment Paste the previous comment and post.   Can the feature edit on comment become like edit on question or answer?


round() with multiplication not working properly

Posting an example of the issue is probably easier than explaining it: for i in range(20):     print(round(i/20, 3)*100)   returns in python3: 0.0 5.0 10.0 15.0 20.0 25.0 30.0 35.0 40.0 45.0 50.0 55.00000000000001 60.0 65.0 70.0 75.0 80.0 85.0 90.0 95.0  Could anyone please explain why the ...0001 output occurs? the "round" function should be returning a decimal with 3 digits which should be in turn converted to a decimal with 1 digit after being multiplied by 100.


SSO Login, can we remove the Facebook color in the button?

I've been working on a login flow where we are allowing users to sign up or login with Facebook. The devs in my team told me that we need to keep the Facebook button with the colors :  However, we also have Linkedin and Google... So you can imagine how this looks like a rainbow. Do you know if we can just remove those colors and using button with a white background instead? Do you have any official sources about this? For example, I know that Canva is doing that way :  Thank you guys ! :)


What is the correct way put multiple lines in a param tag for a Javadoc?

I can't find any information on whether or not it is ok to have multiple lines of info in a javadoc param. I'm making a chess engine and I want to be able to parse a string to generate a board. Is it ok to do it as I've done below?  /**  * Creates a board based on a string.  * @param boardString The string to be parsed. Must be of the format:  *      "8x8\n" +  *      "br,bn,bb,bq,bk,bb,bn,br\n" +  *      "bp,bp,bp,bp,bp,bp,bp,bp\n" +  *      "  ,  ,  ,  ,  ,  ,  ,  \n" +  *      "  ,  ,  ,  ,  ,  ,  ,  \n" +  *      "  ,  ,  ,  ,  ,  ,  ,  \n" +  *      "  ,  ,  ,  ,  ,  ,  ,  \n" +  *      "wp,wp,wp,wp,wp,wp,wp,wp\n" +  *      "wr,wn,wb,wq,wk,wb,wn,wr"  */   Edit: This has been marked as a duplicate. The reason I believe it is not a duplicate is because the other question is simply about creating a multiline javadoc comment, while this one is about having multiple lines as part of the param argument.


How to force LaTeX not to break the line after a hyphen “-”?

With ~ we can enforce that no line break occures between two words.  But this does not seem to work with special characters. I want LaTeX to enforce not to break the line after the - in (re-)creation.  In my document the line breaks between (re- and )creation, which looks a bit ugly.  How can I achieve this?


Composite video Input to 2016 MacBook Pro for streaming

How do I input a composite video signal from a Data video SE-500 into my MacBook Pro for OBS streaming?


I have Android 4.4.2 but this would apply to any version.  How do I change the DNS? What I would like to do is use a DNSSEC-enabled server for lookup. Is there a 'canon' way of doing this?