Find two $2 \times 2$ matrices $A$ and $B$ with the same rank, determinant,...but they are not similar.

Find two $2 \times 2$ matrices $A$ and $B$ with the same rank, determinant, trace and characteristic polynomial, but that are not similar to each other.   I come up with two matrices: $A=\begin{pmatrix} 0 &1 \\  0 &0  \end{pmatrix}$ and $B=\begin{pmatrix} 0 &0 \\  1 &0  \end{pmatrix}.$ It is easy to check that they have same rank, determinant, trace and characteristic polynomial. However, my question is I do not know how to prove two matrices are similar or not. I have learnt the converse in my textbook, i.e. If two matrices are similar, they have the same determinant, characteristic polynomial,etc. I have also known that (but I do now know the proof), we can check by using Jordan form of two matrices. I do not know if this claim is correct: "If two matrices have the same Jordan form, they are similar to each other." Yet, go back to the question, is it a quick way to prove? Thank you in advance.


Is there a command to close a terminal window via commandline?


Bash delete line beetwen two pattern containing "/"

I've a problem : I would like to be able to delete lines beetwen two pattern in a file.   For example be able to delete the line equals to "line 1" beetwin "blablabla++" and "blablabla--"  line1 blablabla++ line1 line2 line3 blablabla-- line1   I've found a way to do it with sed :   sed '/blablabla++/,/blablabla--/{/line1/d}' ./file   It is working great. But the thing is that in my real file is more like :  line1/script blablabla++ line1/script line2/script line3/script blablabla-- line1/script   How could i do that ?   EDIT  I've choosen a bad example.  The thing is that i don't know what the line that i need to delete will be (the line will be sent as parameter). But i know one thing for sure is that they will contain "/" characters.  The thing is that when i do this :   sed '/blablabla++/,/blablabla--/{/$1/d}' ./file   The "/" that $1 contain will mess up with my sed.


Are the set of all one-one functions f: A→A under the composition of mappings, forms a group or not

A={ 1, 2, 3, 4 } For group we check associativity, identity and inverse. Clearly set A with composition as operation is associative but i can't figure out the other two things to check whether set of all one-one functions will be a group or not.


Opening multiple instances of an application which doesn't allow it

Problem  I'm looking for a way to open multiple instances of an application in Windows 8.1, such as , which does not seem to have an option to enable multiple instances.  My goal in this particular instance is to be able to use FastStone Image Viewer to open as many instances as I need. So if I need a side-by-side comparison of two images, I could just open two images and view them side-by-side. A lightweight application that's always-on could work, but I'd like to see what else is available.  Workarounds  The only way around this I personally know of is using  to sandbox the app and have multiple instances of it open thinking it's running by itself.  Question  Are there any other mechanisms for enabling this without installing a wrapper app?  Similar Questions


Class variable have different values for different instances

I read somewhere that "if python can't find instance variable it will try to return value of the class variable having the same name"  eg  class Sample:     pi = 10   Now  x1 = Sample() x2 = Sample()  x1.pi         # returns 10 x2.pi         # returns 10  x1.pi = 20    # change the value of class variable x1.pi         # return 20 (OK) x2.pi         # still returns 10 :( Sample.pi     # returns 10 :(   What is happening??


How would I prove that if an integer $n>2$, then $\bar{z}=z^{n-1}$ has $n+1$ solutions

If $n$ is an integer and $n>2$, then $$\bar{z}=z^{n-1}$$ has $n+1$ solutions. Does this have something to do with the rational root theorem?


Why are Force users limited in their telekinetic attacks?

If I can apply enough force to my enemy's neck to choke off his air supply, that same amount of force can be applied to their carotid arteries and render them unconscious instantly. A vastly lesser force could explode a blood vessel in their brain. Why is telekinesis not an instagib weapon in Star Wars?


Google Drive used storage is larger online than in my local folder, why?

I have Google Drive application keeping my local Google Drive folder always in sync with the cloud.  I have recently received a warning of "few storage space", where it tells me I have 10GB plus occupied by Google Drive:    However, my local Google Drive folder has only a bit more than 5GB:    Is there anything I am missing? How can I find out where this hidden gigabytes are coming from?


Use induction to prove a product of sums of squares is a sum of squares

For any natural number $n\ge 1$, given pairs $(a_1,b_1),(a_2,b_2),...,(a_n,b_n)$ of integer numbers, there exist integer number $c$ and $d$ such that  $$\prod_{i=1}^{n}(a_i^2+b_i^2) = c^2+d^2$$    My initial approach is  Base Case: $(a_1^2+b_1^2) = a_1^2+b_1^2$ which is true. (Although it is trivial)  Prove the statement is true when $n=2$: We have $$(a^2+b^2)(c^2+d^2) = (ac-bd)^2+(ad+bc)^2$$ (Thanks André Nicolas for pointing it out)   So if $a,b,c,d$ are integers, $ac,bd,ad,bc$ are all integers and integers are closed under addition and subtraction. Hence $(ac-bd),(ad+bc)$ are integers.   Inductive Hypothesis: $\prod_{i=1}^{n}(a_i^2+b_i^2) = c^2+d^2$ is true  Inductive Step: $$\prod_{i=1}^{n+1}(a_i^2+b_i^2) = \prod_{i=1}^{n}(a_i^2+b_i^2)\cdot (a_{n+1}^2+b_{n+1}^2) = (c^2+d^2)\cdot (a_{n+1}^2+b_{n+1}^2)$$  Where $c$ and $d$ are integers.   But when we apply $n=2$, we have  $(c^2+d^2)\cdot (a_{n+1}^2+b_{n+1}^2) = (e^2 + f^2)$ where $e$ and $f$ are integers.  Hence, by the principle of induction, the statement we needed to prove is true.


Texture Paint isn't saving. Cycles Render

So... I have just started working with texture paint. I save and exit blender and I come back to see that what I painted is not there anymore. And while painting, when I check the render view, the changes I made in texture paint mode aren't showing up. Can someone help with this?


I have set up the registration form using this chunk of code:  wp_create_user($username, $password, $email);  Note that i have did all kinds of validation before use this code. The registration is working fine now. But it register and activate the user account immediately after the form get submitted.   What i want is confirming the email of a user before they can use the account. User have to check there email account and click the confirmation link and user account get registered/active.


Stack Overflow: the cheating tool for programming contests?

See this question:    This is a question from the ongoing CodeChef contest. The OP should not ask about it here. However, there is no valid way to stop him/her.  Although this question in itself is good, it is a form of cheating. Should we stop this behavior somehow?  Note: this question in itself is not that bad; it got +3 before I pointed out that it is from a contest.  There are also other questions like this, so it is becoming a trend:  Is Stack Overflow the new cheating panel for these contests / homeworks / etc.?  Edit Okay, I probably got a bit too excited. Anyway, it is nice to know people cares about it, and the original questions got took care of. Guess I'll be looking out for such questions in the future:)  EDIT Another one:


How to increase difficulty in Dungeon World

I've been GMing for a couple of sessions now and I'm still struggling at making encounters or situations more difficult. I will describe dangerous situations and encounters in fiction but the mechanics make it too easy for my players to succeed.  For instance no matter how big I describe the Troll, if the fighter of the party charges him and swing his sword, roll+2 for Hack and slash, he'll easily hit the troll. Almost 40% chance to hit without consequences.


Python - Replace text before first occurrence of string?

So if I have a string like:   plz_work = "text I want to get rid of HELLO want to keep this text HELLO want to keep this text"   I want to remove all the text before the first instance of HELLO, like the following:   "HELLO want to keep this text HELLO want to keep this text"   In this case, I used regex, and tried the following off of  and :    re.sub(r'.*HELLO','HELLO',plz_work,1)   But I get this:   'HELLO want to keep this text'   Why does this happen? I thought the last parameter signified  and means that it would only perform 1 substitution... why is it going wrong here? Any help would be greatly appreciated, thanks!!


I can't remove the indeterminate form $0 \cdot \infty$. I tried to write the limit as $$\lim_{x \to 0^-}e^{x \log \left(1+\frac{1}{x} \right)}$$ but it doesn't help.


More than infrequently, opening posts on SO are not questions at all, in the very grammatical sense: They're just statements or vague musings (for instance ), and it's not clear what exactly is being asked (since nothing is technically being asked).  I always feel that it shouldn't be our job to construct a question from someone's undirected ramblings, and so this is usually a NARQ candidate for me.  I was wondering if we could add a very simple check that would count the number of literal question marks in a post and refuse to accept it if there are none. This could be accompanied by a small note on what a question should look like.  What do you think? Should we add this feature?  Update: Since people seem to get hung up on the details, I'd like to clarify that an entirely satisfactory alternative would be to pop up an overridable notice with a warning, like "Hello, you appear to be writing a question. Would you like help?", with a "No thanks" button to dismiss it and submit the post regardless.  Update 2: If you disagree that absence of a question mark is a strong signal that the question is poor, could you please provide examples of good, useful and appropriate questions that do not contain question marks? I've provided several additional examples of when the signal works in the comments, and more come up regularly, so I would appreciate to see some evidence of the contrary.


I am quite new to Python and try to understand how it works. Now I ran into a scoping problem that puzzles me.  I think I do understand the following example. I construct a function with an empty local namespace (please correct me if my terminology is not right). When called, it has to print the value of a variable x. That is not in the namespace of the function, so Python looks in the enclosing namespace, finds x there and prints the value.  x = 12  def f():     print(locals())     print(x)  f()   Returns:  [] 12   I learned from various sources that the namespace of a function is constructed during the evaluation of the function and vanishes when the function evaluation is over. That is what I see in the next example. When the function evaluation starts, only the function argument is in the namespace. Then assignments to y and z are done, resulting in y and z successively being placed in the local name space, as shown by the three printing results in the output.   def f(x):     print(locals())     y = 20     print(locals())     z = x+y     print(locals())     return z  f(10)   Returns:  {'x': 10} {'x': 10, 'y': 20} {'x': 10, 'y': 20, 'z': 30} 30   Now the subtlety I fail to understand. In the first example, I include an assignment to x just after the print statement.  x = 12  def f():     print(locals())     print(x)     x = 24  f()   Result:  {} Traceback (most recent call last):   File "<pyshell#6>", line 1, in <module>     f()   File "<pyshell#5>", line 5, in f     print(x) UnboundLocalError: local variable 'x' referenced before assignment   When x has to be printed, it is not yet in the local namespace. So I expected to see the outside value 12. But Python seems to be aware of the fact that x is a local variable of the function and produces an UnboundLocalError.  This suggest to me that when the definition of a function is read, Python creates some or other list with the string names for the local variables, I think including default values for the arguments. This list is then used during the evaluation of the function for constructing the local namespace. Where is this list stored? Very likely, I am completely wrong.  Any help in understanding what is going on here is highly appreciated.


Is word count a large ranking factor for Google?

If I read 10 SEO articles, 9 out of 10 have said that you should have 1000 -3000 words. That is huge. Generally it takes more than 3 -5 hours to write a well researched 2000+ word article.  Does it really matter? I mean most topic we can cover just 1000  with some external links. And I can say that it is quality and it is helpful for users.  Do I still have to write 1000-3000 word articles to get SEO traffic?


How can you get the argmin or argmax in Latex? Two solutions I found are:  \underset{x}{\operatorname{argmax}}   \DeclareMathOperator*{\argmin}{arg\,min}   Any other ideas?  [1]   [2]


Why can't I access a USB flash drive? And why does it slow down my computerr?

I have a SanDisk Ultra USB 3.0 flash drive with 128 GB that I use to download videos for my mother. One day, while downloading videos, the USB  flash drive started acting weird. I safely ejected it, then plugged it back in, and the following  happened: When I tried to open up the files on the USB flash drive, the whole computer slowed down. The file opener kept on loading and loading forever, for hours, and I ended up forcefully pulling out the USB flash drive. After the USB flash drive was removed, everything on the computer was moving at normal speed again. When I tried to reset the USB  flash drive with all those recommended online methods, it just kept on loading forever with no end in sight. Is there anything I can do to save this USB flash drive? Or should I just throw it away?


How quickly does a player have to say "Uno" to avoid drawing extra cards?

I was playing with my fiancée and some friends, and she's adamant that if you can yell Uno before someone who has just played their second to last card, they are required to pick up the penalty amount of cards.  Is this kosher?


How to make my string a method I will call?

Suppose I have strings.  String j = "objectName"; String i = "methodName";   How can I call a method:  objectName.methodName();   When I only have the strings for the names?


Post-hyphenation of split compound words

Assuming that these two words  off-topic on-topic  must be hyphenated, which of the punctuations in the following sentences is correct? (crucial part emphasized)  Regardless of whether it is an off or on-topic example, it is a brilliant consideration in the definition of this proposal. Regardless of whether it is an off- or on-topic example, it is a brilliant consideration in the definition of this proposal.  I know you can get around this with a verbose constuction like off-topic or on-topic, or by not hyphenating either and treating off and on and topic as separate words, but neither suggestion really does anything to answer my question.


'Rita is not hardworking like Samson.' In this sentence, is Samson hardworking?

It could sound like Samson is hardworking because of the 'not',  but it can also sound like Samson isn't hardworking because of the 'like'. So is Samson hardworking or not? Thank you! :)


What is an appropriate greeting to use at night time?

Possible Duplicate:          I am in the process of creating a software application which displays a greeting to users based on the time of day. I have come to a blank on what to display to the user when it is late at night. 'Good night, [user's name]' just doesn't seem right.  So, what is an appropriate greeting to use at night time?


How does Random Oracle and Standard Model differ?

I am new to Crypto field. Many papers are boasting of not using Random Oracle model. Instead, those prove security in Standard Model. I am surprised how do these models differ. Can anyone please clarify me? Does using Hash function mean that the paper makes use of Random Oracle?


"Unable to rollback to the current revision" when trying to rollback question revision

I'm getting a "Unable to rollback to the current revision" alert box when clicking on the rollback option of the revision 2 of the post below:    Update: Right now, no error message is shown, but no rollback is made either.  @JasonC (comments) also reports a problem: "Same issue trying to roll back to revision 4 of  (currently at revision 5)"


Problem when trying to open terminal in ubuntu 16.04

Im having troubles at opening the terminal. When I open, an icon appears in the menu bar, but then disappears. Last year something occurred and it was because of the system language.   So what i tried to do this time (with no success) was to change the system language, opening System Settings, and then selecting Language Support but when selecting Language support, it doesn't open.  Someone know a way to fix this problem?


How to Disable Transparent Huge Pages in CentOS6.6

I am trying to disable Transparent Huge Pages in my CentOS for HDP2.2 installation. I am using  for the reference but I am still getting the issue.  I tried to add this also:  Adding the following lines to /etc/rc.d/rc.local and restarted the machine.  echo never > /sys/kernel/mm/transparent_hugepage/enabled echo never > /sys/kernel/mm/transparent_hugepage/defrag   And give execution rights to the file:  chmod +x /etc/rc.d/rc.local   Reference from Hortonworks link  and   I have tried editing /etc/rc.local and restated the machine.  if    test -f /sys/kernel/mm/redhat_transparent_hugepage/defrag; then    echo never > /sys/kernel/mm/redhat_transparent_hugepage/defrag  fi  if    test -f /sys/kernel/mm/redhat_transparent_hugepage/enabled; then    echo never > /sys/kernel/mm/redhat_transparent_hugepage/enabled  fi   When I do: cat /sys/kernel/mm/transparent_hugepage/enabled I get below message on console:  [always] madvise never   Can you please explain the exact meaning of this message.  I rebooted the machine and restarted the Ambari but ambari installation wizard is still saying thatTransparent Huge Pages is still enabled . I am new in it and looking for some help to resolve the issue.


Where can I find accurate DEM data of Brighton UK with an attribute table to be used in ARC GIS, being used for a university GIS project and have struggled to find this data.


It would be great if there was a dark theme for the iOS app.  It would make reading readier on the eyes, especially at night.  This is not a dupe of  or , as both of those are for the Android app.


How to filter an array of words in Microsoft Excel?

How do I filter an array of words in Microsoft Excel? For example, I have a big list of road names in Singapore and I wish to filter all entries in the Excel containing any road name in the list. How do I do that?


Use terminal to run programs scripts a short and practice way

in window I know make this withe the cmd but in ubuntu it's not good  I have a  question about the Terminal. I want to ask how to call a program in the terminal  $ /home/yvanmoses/Dropbox/apprendre_a_programmer/"boucles en python"/mot_le_plus_frequent.py   the answer is permission not given. How to put this right? or   python: can't open file 'mot_le_plus_frequent.py': [Errno 2] No such file or directory`enter code here`   A second question: Is that a short way to open a script?  My wish: to program and verify without the "execute" button in geany (the little cogwhell in the right top)  I want to work with python and ruby  good experts saying to me to add #!/path/to/python in the first line of my script.  This work for files that are in/home/myname/ But for the files that are deep into directory into directory etc, in my Dropbox it is not good.   A priori it sames very trivial. I read many questions that someones considered as very similar to mine and find no uniform explanation. SO I REPETE THE QUESTION WHAT is the best way for a developer (python or ruby) when he work in a script to run and run again the script easy and nicely.  I was convicted that they use the terminal. If it is not right. I'ii accept! WHAT TO DO???


sudo apt-get update not connecting to repositories - GPG signature invalid / repository has no release file

Every time I run apt-get update, it spits out this. And when I try downloading things from apt-get install or Ubuntu software center, it doesn't work. Please help. Thanks.      Reading package lists... Done W: GPG error: http://us.archive.ubuntu.com/ubuntu yakkety-updates Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com> E: The repository 'http://us.archive.ubuntu.com/ubuntu yakkety-updates Release' is no longer signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. W: The repository 'http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu yakkety Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: The repository 'http://ppa.launchpad.net/gwendal-lebihan-dev/hexchat-stable/ubuntu yakkety Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: The repository 'http://ppa.launchpad.net/ubuntuhandbook1/audacity/ubuntu yakkety Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details.


$n^{3pq} - n \equiv 0$ (mod $3pq$), where p and q are prime and $n$ is any integer Find the minimum possible value of $p+q$

This problem was asked in a local Olympiad. I do not know how to proceed because I did not think Fermats little theorem is applicable to composite numbers. Any help would be appreciated.


Move, style or remove title in taxonomy template

I would like to remove the title from rendering in the natural taxonomy page template so that I can add it in the teaser and reorder the fields. Currently, the title shows first, and then the other fields in the teaser display. When I view the "Manage Display" for the teaser view mode, the title field is "hidden" and if I show it, it ends up appearing twice. I would like to unhide it, define a specific class reorder the fields.   Can this be done without an added module? I have already played around with taxonomy view but am asking for an alternative that doesn't require using the taxonomy view, which I have disabled for the time being. E.g. If I need to edit the template, which template would it be and what specific way does it need to be edited to remove the title? My site is complex with a bootstrap theme and a sub-theme that I purchased as well as my custom modifications.  See screenshots below for a visual.  Teaser with title hidden   Shows title at the top without defined class   Teaser with title shown and class defined   Shows title twice   I want to make the one at the top go away or show it where the other one is with the proper class.  Bonus: I really want to add author and date information like in the screenshot below to the taxonomy template, which I pulled from my taxonomy view version before I disabled it.


I have tried creating numerous 2048x2048 images in paint.net, and saving them as full-quality images in both png and bmp file formats. I was told png was the best way to store images without loosing any quality, but when using 7-zip to compress both png and bmp files, I was able to get a smaller file size with .bmp.gz than either .png or .png.gz extensions. For example, a fully white image with a gradient:   PNG   | BMP.GZ 4.46 MB |2.64 MB  And, an image of the same size with only noise:    PNG   | BMP.GZ 14.53 MB |13.00 MB  Compressing the noisy PNG to PNG.GZ actually raised it a little to 14.53, but I am not suprized there. My main question is, why is a g-zipped bitmap noticibly smaller than a png? What are the cases that this would not be the case?


Efficiently delete large directory containing thousands of files

We have an issue with a folder becoming unwieldy with hundreds of thousands of tiny files.  There are so many files that performing rm -rf returns an error and instead what we need to do is something like:  find /path/to/folder -name "filenamestart*" -type f -exec rm -f {} \;  This works but is very slow and constantly fails from running out of memory.  Is there a better way to do this? Ideally I would like to remove the entire directory without caring about the contents inside it.


Does the term "home" also mean "family"?

A young black American soldier leaves his home and family to cross   the ocean to put an end to the German nightmare.   I have just translated this sentence into English and I would like to know if in this context it is necessary to write the word "family" also, or if I can just write "the soldier leaves his home to cross etc." is understandable too, or even make a difference by writing "he leaves his house and family".


So, I'm trying to do something really simple, and that's check if a password equals something in my SWT application. So, my code was this:  if (passwordBox.getText() == "test") {     passwordBox.setVisible(false); }   However, in my application, which uses text fields marked as passwords (with that variable), it will not fire that when I click a button. I already have button handling working, since I have an else statement that fires, but this will not fire when the password box obviously equals "test". What's wrong here?


Ethernet and wireless connection problems

I am unable get wireless or ethernet connection to work at all.  I have tried many things like trying to download the drivers while booting from the installation disc, and so forth, because this was the only time my laptop would pick up ethernet.   Inevitably this never worked because as soon as I booted without disc I was, once again, back to having no connections at all! I am unable pick up any connection whatsoever.


Minecraft NPC not spawning and attacking me on server: null pointer error

When I join my server "testing" is printed as expected but the npc is not spawned and does not attack me. Here is the plugin.yml:  main: com.megacrafting.MegaParty version: 1.0 name: Megaparty depend: [Citizens]   Here is the error:  [20:58:24 ERROR]: Could not pass event PlayerJoinEvent to Megaparty v1.0 org.bukkit.event.EventException: null         at     org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)  ~[spigot.jar:git-Spigot-b78586d-f3356f1]         at     org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-b78586d-f3356f1]     at   org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:499) [spigot.jar:git-Spigot-b78586d-f3356f1]     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:484) [spigot.jar:git-Spigot-b78586d-f3356f1]     at net.minecraft.server.v1_12_R1.PlayerList.onPlayerJoin(PlayerList.java:342) [spigot.jar:git-Spigot-b78586d-f3356f1]     at net.minecraft.server.v1_12_R1.PlayerList.a(PlayerList.java:162) [spigot.jar:git-Spigot-b78586d-f3356f1]     at net.minecraft.server.v1_12_R1.LoginListener.b(LoginListener.java:159) [spigot.jar:git-Spigot-b78586d-f3356f1]     at net.minecraft.server.v1_12_R1.LoginListener.e(LoginListener.java:57) [spigot.jar:git-Spigot-b78586d-f3356f1]     at net.minecraft.server.v1_12_R1.NetworkManager.a(NetworkManager.java:233) [spigot.jar:git-Spigot-b78586d-f3356f1]     at net.minecraft.server.v1_12_R1.ServerConnection.c(ServerConnection.java:140) [spigot.jar:git-Spigot-b78586d-f3356f1]     at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:842) [spigot.jar:git-Spigot-b78586d-f3356f1]     at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:405) [spigot.jar:git-Spigot-b78586d-f3356f1]     at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:678) [spigot.jar:git-Spigot-b78586d-f3356f1]     at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:576) [spigot.jar:git-Spigot-b78586d-f3356f1]     at java.lang.Thread.run(Unknown Source) [?:1.8.0_131] Caused by: java.lang.NullPointerException     at com.megacrafting.MegaParty.onJoin(MegaParty.java:35) ~[?:?]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_131]     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_131]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_131]     at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_131]     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[spigot.jar:git-Spigot-b78586d-f3356f1]     ... 14 more   Here is the code:  package com.megacrafting; import org.bukkit.Bukkit; import org.bukkit.Location; import org.bukkit.entity.EntityType; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerJoinEvent; import org.bukkit.plugin.java.JavaPlugin;  import net.citizensnpcs.api.CitizensAPI; import net.citizensnpcs.api.npc.NPC; import net.citizensnpcs.api.npc.NPCRegistry;    public class MegaParty extends JavaPlugin implements Listener {  private NPCRegistry registry;    public void onEnable() {     NPCRegistry registry = CitizensAPI.getNPCRegistry();     getServer().getPluginManager().registerEvents(this, this);   }  @EventHandler    public void onJoin(PlayerJoinEvent event) {     Player p = event.getPlayer();     p.sendMessage("testing");     Location loc = p.getLocation();     NPC npc = registry.createNPC(EntityType.PLAYER, "keys9");     npc.spawn(loc);      npc.getNavigator().setTarget(p, true);      }  }


Proving if $x^3$ is even, then $x$ is even.

Theorem:   If $x$ is a positive integer and  $x^3$ is even, then $x$ is even.   My Proof by Contrapositive:  I. Assuming that $x$ is odd, then I will show that $x^3$ is odd.  II. $x$ is odd, so $x$ can be expressed as $2k+1$  III. $(2k+1)^3$  IV. $2k(4k^2 + 6k + 3) +1$  V. Since $2k(4k^2 + 6k + 3) + 1$ is an integer, we can conclude $x^3$ is odd.  Did I go about this correctly? Should step V say "$2$ multiplied by an integer and added by $1$ is odd therefore we can conclude $x^3$ is odd"?


The product of xy of two real numbers x and y is irrational then at least one of the x or y must be irrational.

Prove if true or find a counterexample....  The product of $x y $ of two real numbers $x$ and $y$ is irrational then at least one of the $x$ or $y$ must be irrational.


Path connected space that is not locally connected

I am trying to construct a topological space that is path connected, but nowhere locally connected.  If we define $p = (0,1)\in\mathbb{R}^2$, and for all $q\in\mathbb{Q}\cap[0,1]$ $T_q = \{v\in\mathbb{R}^2\ |\ \exists t\in[0,1],\ v = (1-t)p + t(q,0)\}$, then  $$ T = \bigcup\limits_{q\in\mathbb{Q}\cap[0,1]}T_q $$ the space of all lines connecting rationals in $[0,1]\times\{0\}$ to $p$, can be shown to be path connected but locally connected only at $p$. I thought of attempts to maybe generalize the idea to make the desired result. The immediate one of these attempts was to maybe 'rational duplicate' $p$ along the $y = 1$ line, i.e. to let $T$ be all the lines connecting every rational point on $[0,1]\times\{0\}$ to every rational point on $[0,1]\times\{1\}$, but the proof attempt did not go (I am not sure if this is correct).  Another idea was maybe a space-filling curve, but this seems a bit exotic.


Can javaScript work on any newly added DOM elemets from an ajax call

I am not an expert in javaScrit , but i have the following concern. I have the following Script :-  <script type="text/javascript">         $(document).ready(function () {             $("#DCSort").click(function () {   what this indicates is the following :- 1. the script will run when the document finishes loading. 2. when the DCSort DOM element is clicked .  my question is as follow:- let say that after the document loaded , a new element with DCsort have replaced the old DCSort element , will the original javaScrip fire when the newly added DCSort element has been added using an Ajax call and i use click on it  ? Thanks


How to install openjdk 7 on ubuntu 18.04

Today I try to install openjdk 7 on my ubuntu 18.04 system. It always install oracle-java8-installer instead openjdk 7. Please help me  apt-get install openjdk-7-jre


Within my mounted partitions the  is mounted.  debugfs on /sys/kernel/debug type debugfs (rw,relatime)   What does Ubuntu use the debugfs for: any userland functions, or crash reporting? I understand the linux kernel default uses, and how to disable, and unmount debugfs. What are the implications of disabling debugfs for ubuntu, rather than general debugfs information not pertaining to ubuntu?


In my class design, I use abstract classes and virtual functions extensively. I had a  feeling that virtual functions affects the performance. Is this true? But I think this performance difference is not noticeable and looks like I am doing premature optimization. Right?


Most people say never throw an exception out of a destructor - doing so results in undefined behavior. Stroustrup makes the point that "the vector destructor explicitly invokes the destructor for every element. This implies that if an element destructor throws, the vector destruction fails... There is really no good way to protect against exceptions thrown from destructors, so the library makes no guarantees if an element destructor throws" (from Appendix E3.2).   seems to say otherwise - that throwing destructors are more or less okay.  So my question is this - if throwing from a destructor results in undefined behavior, how do you handle errors that occur during a destructor?  If an error occurs during a cleanup operation, do you just ignore it? If it is an error that can potentially be handled up the stack but not right in the destructor, doesn't it make sense to throw an exception out of the destructor?  Obviously these kinds of errors are rare, but possible.


Nautilus not opening up, showing GLib error

When I launch nautilus from terminal the following error is printed and nautilus doesn't open up.  (nautilus:25179): GLib-GIO-CRITICAL **: g_dbus_interface_skeleton_unexport: assertion 'interface_->priv->connections != NULL' failed  (nautilus:25179): GLib-GIO-CRITICAL **: g_dbus_interface_skeleton_unexport: assertion 'interface_->priv->connections != NULL' failed Could not register the application: Timeout was reached  (nautilus:25179): Gtk-CRITICAL **: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed  (nautilus:25179): GLib-GObject-WARNING **: invalid (NULL) pointer instance  (nautilus:25179): GLib-GObject-CRITICAL **: g_signal_connect_object: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed   What could be the problem??


I would like to know how to install Aircrack on Ubuntu 16.04. Please provide detailed guidance on all the steps needed. Also, could you provide the link where I can download the latest version of Aircrack?


stubbornly floating to the right although there is no command

why is the adminbox floating although there is no command?  ** the fixed div center not working properly  .adminbox {         width: 200px;             height: 17px;         margin-top: 20px;           padding: 20px;          font-size: 12px;            color: white;         background-color: black;         font-size: 12px;                    font-family:"Gears of Peace"; }


I have been doing this again and again and searched but cant fix it. I think the bevel is not on the center of the edge  How to make better bevel?


Correlation between Likert scale and four-categorical nominal scale

I'm measuring a four-categorical nominal variable (attachment style) and another variable in Likert scale (narcissism). How can I find whether there is any correlation between any of the attachment styles and narcissism?  Thank you!


Proving set of all sets doesn't exist using axioms of ZF set theory

I will proceed by assuming the negation. So, let $V$ be set of all sets. So, $V$ exists. Now, I will use  $$ \forall w_1,\cdots, w_n \, \forall A \,\exists B \,\forall x \left( x \in B \Longleftrightarrow [ x \in A \wedge \varphi(x,w_1, \cdots , w_n, A)] \right) $$ I will let $A = V$ and $\varphi(x, A) = x \notin x $. So, using the universal instantiation, I get that $$ \exists B \,\forall x \left( x \in B \Longleftrightarrow [ x \in V \wedge \varphi(x, V)] \right) $$ And then using existential instantiation, there exists a set $B$ such that $$ \forall x \left( x \in B \Longleftrightarrow [ x \in V \wedge \varphi(x, V)] \right) $$ $$ \forall x \left( x \in B \Longleftrightarrow [ x \in V \wedge x \notin x] \right) $$ $$ \forall x \left( x \in B \Longleftrightarrow x \in \{ x \in V \,| x \notin x\} \right) $$ Using, , it follows that $$ B = \{ x \in V \,| x \notin x\} $$ Now, I want to use other ZF axioms to reach my contradiction. How do I proceed ?


Let $R$ be a local ring with maximal ideal $I$ and residue field $k=R/I$ and $M$ finitely generated $R$-module.   My question is why $$M \otimes_R k\cong M/IM,$$ where $M \otimes_R k$ and $M/IM$ are $R/I$-modules.


Reading a text file in JS not using HttpRequest

I want to read a text file which is local in my system.I found many examples where most of them are using XMLHttpRequest(),I do not want to use any of the servers like Wamp,Xampp,Apache etc & also I have seen examples which takes i/p(Browse Button) from user,I don't want that also .  I want to hard code the File path and read the file Please suggest any Example or Links


lim sup, lim inf, and inequalities for $a_n \le b_n$

Suppose we have two sequences ${a_n}$ and ${b_n}$, which satisfies $ a_n \le b_n$ for $n=1,2,3,\ldots$. Do we have the following inequalities to be true?  $$\limsup_{n \to \infty} a_n \le \limsup_{n \to \infty} b_n $$ $$ \liminf_{n \to \infty} a_n \le \liminf_{n \to \infty} b_n$$  In the case when  $a_n$ and $b_n$ has a limit, the equations above are clearly true, since $a_n \le b_n $ implies $\lim_{n \to \infty} a_n \le \lim_{n \to \infty} b_n $. I'm just wondering in a general case when the limits of the two sequences don't necessarily exist, are these two inequalities still true?


How should I proceed after black screen during Ubuntu upgrade?

Started upgrading from 19.04 to 19.10 and left it to run, came back to a blank screen after 5 mins. Unsure if this is normal but it has been 30 mins now and I don't know what to do...


How to recover data from a drive that was erased during the Ubuntu installation?

Yesterday I had two NTFS partitions on my drive. One on which Windows 7 was installed (C Drive) and the other contained my data (D Drive).  During Ubuntu installation I choose to install Ubuntu and erase my existing OS. When Ubuntu installed, I was shocked to see no partition. All my data was gone. I must have done something wrong in selecting my option during installation.  Is there any way I can recover my D Drive?


Unable to update Ubuntu because /root is too small

I have 14.04 LTS and when it was installed there were three partitions it looks like from Gparted.   Is /dev/sda1 which is the /root Is /dev/sda2 which is Extended and does not show anything for mount. (the size is the total drive size which is 1.8Tb) Is /dev/sda5 which is lvm2/pv and mounted as ubuntu-vg (this also shows as 1.82Tb but also shows 1.82Tib used.    When I look at the graphical display it shows the root as 256 mb over all three partitions. I think I need to expand that but how?   Thanks


If $X \sim \mathcal{N}(\mu,\sigma^2)$ where $\mu > 0$ and $\sigma > 2$, how do I find the PDF of $X^2$, and will it correspond to non-central Chi-square distribution?


Why is the radius of curvature = 1/(curvature)?

My textbook Thomas' Calculus (14th edition) initially defines curvature as the magnitude of change of direction of tangent with respect to the  arc length of the curve (|dT/ds|, where T is the tangent vector and s is the arc length) and later by intuition conclude that κ = 1/ρ (where, κ=curvature,ρ = radius).   Is there a way to prove this equation mathematically ?  Edit: If curvature was defined as the inverse of radius of curvature, then how does the textbook define and derive an expression of curvature first and then provide a relationship between it and the radius of curvature.


How can I install Ubuntu on an empty partition alongside Windows 10 with the ability to access another drive from both?

I have a 128 GB SSD and 1 TB HDD. I made two partitions on the SSD, one containing Windows 10 (pre-installed) and other empty. I want to install Ubuntu on the empty partition of the SSD.  If I do that, will I be able to access the HDD from either of the OSs? If so, how can I do it? Please explain in detail...  I need both OSes because I want Windows 10 for gaming and Ubuntu for programming.


Slow startup of Plasma 5.5 in Kubuntu 16.04

My recent Notebook (Intel i3-6100 with SSD) boots from BIOS to the login of SDDM within 8s. After entering my credentials it takes 31s (no matter if I have autostart of Firefox and Thunderbird). While waiting these 31s the blue progression bar shows "100%" after very few seconds but stays the rest of the time at "100%".  If I reset my Plasma/KDE configuration it only takes few seconds as it was in Kubuntu 15.10 partly with NEON packages. My Plasma configuration is very basic with no bluetooth. There are no errors in ~/.xsession-errors and if I monitor the startup of Plasma with htop I see no activity. After the slow startup everything is fast.  The output of systemd-analyze blame is:  5.889s NetworkManager-wait-online.service   3.817s apt-daily.service   2.520s swapspace.service   568ms dev-sda1.device   224ms accounts-daemon.service   ...   Do you have an idea or how I can better monitor the cause of the slow startup of Plasma?


I can't boot from a USB installer because it asks a password out of nothing

What that screen means and how I can boot without the password? (I'm trying to boot into with a bootable USB with Ubuntu 20.10)


I am encountering this error:  Err:26 http://ppa.launchpad.net/midori/ppa/ubuntu bionic Release                                             404  Not Found [IP: 91.189.95.83 80]


Finding unnamed Antarctic peaks using QGIS?

I'm a complete novice at GIS. My project is to find the highest peaks in each Antarctic territory, and compare the results with the international gazetteer to find which peaks are and aren't named.  I'm trying QGIS Desktop with Grass with the 200m resolution radar altitude DEM raster file. Locations are (x,y) from the south pole in metres.     The Gazetteer is  and is available as CSV, GeoJSON (whatever that is) and KML formats. Locations are in latitude and longitude to the nearest minute of arc, which is not accurate enough.  Territories are given by longitude range in Wikipedia  I've succeeded in opening the DEM with QGIS. I could find peaks manually one at a time using colours and the "identify features" button.   But is there a better way?


Filling up an empty list of lists based on string length

Say I have the following list of words   words = ["arid", "dash", "drain", "thread"]   and an empty list of lists:  a=[[]]*7   I want to place these words in the list of lists such that the length of each word determines the position of the list they are appended to.  For example, because "arid" has length 4, it would go on:  a=[[],[],[],[],["arid"],[],[]]   "dash" has length 4 as well, so it would go on:  a=[[],[],[],[],["arid", "dash"],[],[]]   but "drain" has length 5, so it would go on:  a=[[],[],[],[],["arid", "dash"],["brain"],[]]   and "thread" has length 6, so it would go on:  a=[[],[],[],[],["arid", "dash"],["brain"],["thread"]]   I attempted the following code:  A = [[]]*7 #7 is len(thread)+1. it's not hard coded in my implementation  for word in words:     size=len(word)     A[size].append(word) print(A)   when I run this I get:  >>[['arid', 'dash', 'drain', 'thread'], ['arid', 'dash', 'drain', 'thread'], ['arid', 'dash', 'drain', 'thread'], ['arid', 'dash', 'drain', 'thread'], ['arid', 'dash', 'drain', 'thread'], ['arid', 'dash', 'drain', 'thread'], ['arid', 'dash', 'drain', 'thread']]   which makes no sense. everytime I append, the word gets appended to every single list on the list of lists. What am I doing wrong? can someone help?


I am not sure if I am using the right wording in title. Basically what I need is to add the following source using the listing package.  In preamble:  \usepackage{listings}   then and is here when I have the problem:  \begin{lstlisting}      \begin{lstlisting}      \end{lstlisting}  \end{lstlisting}   but I am getting Package Listings Error: Extra \endlstlisting.  How can I "mask" the first \end{lstlisting}? I've been through the documentation but I am lost.


C, assign a pointed value to a pointed value, like *a=*b;

If I want to change the pointed value without changing the pointer's address, what should I do?  In 3, *d=*b will return segmentation fault in running time. I think it is because the *d is not pointed to any memory space. This also explains why 2, works. However, for 1, *a and *b pointed to memory with same size, why it will return segmentation fault here?  void main(void){     char *a="abcd";     char *b="1234";     char *c=(char *)malloc(sizeof(char));     char *d;     *a=*b; //1.segmentation fault     *c=*b; //2.ok     *d=*b; //3.segmentation fault }


Is “am” ever proper English without an “I” somewhere before or after it?

For a long time, I have been convinced that the use of the word am without the word I either before or after it is incorrect. For instance, saying Am going all by itself.    However, I recently ran a search on it to try and clear up the confusion, but that has left me even more confused than I was to begin with!


How do I make PostgreSQL include all the months where I did not buy anything?

I have this query: SELECT avg(sum) FROM (     SELECT date_trunc('month', "timestamp"), sum(amount) as sum     FROM bookkeeping WHERE summary LIKE 'Bitcoin purchase:%'     GROUP BY date_trunc('month', "timestamp") ) a  It gave me an impossible average cost of my Bitcoin purchases per month. I soon found out why: it ignores all the numerous months over the years where I did not buy Bitcoin at all, including only months when I did buy at least once. Since there aren't a ton of "empty" months included (with 0 for sum), it does the average of the sums for only the months where I bought at least once, so the average becomes completely wrong. How do I make it "invent" rows for the months which aren't represented by at least one record, so that the avg(sum) will actually be meaningful?


How to hide the TeamViewer icon on windows 10

I am using TeamViewer to 1. control my computers and 2. prank my friends. So how do I hide the little TeamViewer icon on my desktop? (On Windows 10, and I have the latest version of TeamViewer) And the icon I mean is an attachment.  - The Image


Rewriting a custom-post-type permalink with taxonomy term?

I'm trying to rewrite my url for a custom_post_type named wr_events with one of its custom_taxonomy terms from event_type  add_action('init', 'wr_events');  function wr_events() {       register_taxonomy(         'event_type',         'wr_event',         array(             'label' => 'Types',             'singular_label' => 'Typ',             'hierarchical' => true,             'query_var' => true,             'rewrite' => array('slug' => 'events'),         )     );      $labels = array(         'name' => _x('Events', 'post type general name'),         'singular_name' => _x('Event', 'post type singular name')     );      $args = array(         'labels' => $labels,         'public' => true,         'publicly_queryable' => true,         'show_ui' => true,         'query_var' => true,         'capability_type' => 'post',         'hierarchical' => false,         'menu_position' => null,         'supports' => array('title','editor','thumbnail', 'excerpt'),         'rewrite' => array(             //'slug' => 'event',             'slug' => 'events/%event%',             'with_front' => false         ),         'has_archive' => 'events'     );       register_post_type( 'wr_event' , $args );     flush_rewrite_rules(); }  add_action('save_post', 'save_details');  add_filter('post_type_link', 'events_permalink_structure', 10, 4); function events_permalink_structure($post_link, $post, $leavename, $sample) {     if ( false !== strpos( $post_link, '%event%' ) ) {         $event_type_term = get_the_terms( $post->ID, 'event_type' );         $post_link = str_replace( '%event%', array_pop( $event_type_term )->slug, $post_link );     }     return $post_link; }   So in my case my taxonomy terms would be "workshops" or "lectures" etc. url/events/lectures or url/events/workshops lists all my posts related to this "category", url/events shows a custom archive for all my events. -> this is just what I want however the only thing not working is the complete url to the custom-post itself …  url/events/lectures/post-name - throws a 404!  Any idea why this is happening? My events_permalink_structure() function seems to work correctly as it replaces my permalinks exaclty the way I want.   I installed the "Rewrite Analyzer" Plugin and it  "Regex is empty" for wr_event.  I've also tried to flush the Rewrite Rules by visiting the permalink settings. However no effect.


To make a JavaScript class with a public method I'd do something like:  function Restaurant() {}  Restaurant.prototype.buy_food = function(){    // something here }  Restaurant.prototype.use_restroom = function(){    // something here }   That way users of my class can:  var restaurant = new Restaurant(); restaurant.buy_food(); restaurant.use_restroom();   How do I create a private method that can be called by the buy_food and use_restroom methods but not externally by users of the class?  In other words, I want my method implementation to be able to do:  Restaurant.prototype.use_restroom = function() {    this.private_stuff(); }   But this shouldn't work:  var r = new Restaurant(); r.private_stuff();   How do I define private_stuff as a private method so both of these hold true?  I've read  a few times but it doesn't seem like "private" methods can be called by public methods and "privileged" methods can be called externally.


Hi I am trying to run a slayer exciter using a MOSFET.     Tells to use these parts    R1 = 2Ω R2 >= 22kΩ D2 = 1N4148, or 1N400x (x is a number) U1 =  Q1 =    Except I don't have a MIC4452 to drive the MOSFET.  I think I might be crazy - I have no idea what I am doing. Can a NE555 run a MOSFET? How would I do that? Maybe another way without using a gate driver?


"Ready when you're." or "Ready when you are."

Should I follow up the first sentence with the word ready? And if so, why is this so?


http:// to https:// Redirection with page reload in Apache 2 (HD Web Hosting)

I'm trying to check to see if the address accessed is using a secure connection when accessing a certain page, or not.  If not, I want to redirect the traffic to the proper https:// address.    I have tried doing this in several ways in the .htaccess file.    I was able to rewrite http://foosite.com/contact.shtml and http://www.foosite.com/contact.shtml addresses as https://www.foosite.com/contact.shtml with:  RewriteEngine on RewriteCond %{HTTPS} off RewriteCond %{REQUEST_URI} (contact.*) RewriteRule (.*) https ://www.foosite.com%{REQUEST_URI}   ...but this only rewrites the URL, it does not reload the page, therefore there is no encryption and there is a warning/caution sign next to the HTTPS in the address bar (as there should be).  I need to reload that page so that the encryption is enforced.  Based on what I am looking at I was thinking something like:  RedirectCond %{HTTPS} off RedirectCond %{REQUEST_URI} (contact.*) Redirect 301 https ://www.foosite.com/contact.shtml   ...but this is based purely on conjecture after looking at some posts in here and imagining what might work.  Conjecture is not a good thing to count on, anyway.  I don't even know if there is a RedirectCond tag.  So, as I am not familiar with .htaccess at all, just looking to secure a single form, what would work to redirect a page to the HTTPS address of it when it isn't loaded securely?


Prove all zeros of a polynomial lie in $\{|z| > 1 \}$

I want to solve following problem. I tried to solve it with "Cauchy integral formula" but I couldn't. How can I solve this?!   Suppose $p_0 > p_1 > p_2 > ... >p_n > 0$. Prove that all zeros of the polynomial $p(z) = \sum_{j=0}^n p_j z^j $ lie in the $\{|z| > 1\}$.   It's problem 1.1 in  "A Course in Complex Analysis and Riemann Surfaces(Wilhelm Schlag)".


How can I install Windows software or games?

Can .exe and .msi files (Windows software) be installed in Ubuntu?


my task is to find, and mark, all the points from a point cloud that are inside a 3D rectangle. I have the coordinates of all the 8 vertices. Is there a mathematical formula which I can use? To be precise, I'm working with python and all the points are inside a np array, so if someone knows a library that can do that, I'm open to suggestions. Thanks a lot.


Pass string with special character to grep as pattern

Trying to filter command output according pattern -p docker run --help |grep -F '-p'  But grep treats it as -p as command option: grep: invalid option -- 'p' Usage: grep [OPTION]... PATTERNS [FILE]... Try 'grep --help' for more information.  How to make grep search according -p pattern?


Basic Infinite Series Question: $\sum_{n=0}^\infty\frac{2^n+4^n}{6^n}=?$

The question:  $$\sum_{n=0}^\infty\frac{2^n+4^n}{6^n}=\;?$$  I can't figure out how to approach this question as I can't find a constant value for $r$.


Flight cancelled because of COVID19, and they are offering a voucher instead of a full refund. Is that legal?

Airline is Tap Air Portugal. My flight departs from the US to Lisbon. Is there something I can do?


Returning largest value across columns in SQL Server 2008

In SQL Server 2008, I need to query across columns in T-SQL and return the largest number I find (example below using dates, but same idea applies to numbers). "NULL" indicates a null value, not the literal word (sorry if I'm being captain obvious). The column "DesiredResultColumn" shows the final result I want from searching across Column1 through Column3. I'm not finding an example on here which fits this exactly.        ID       Column1    Column2     Column3        DesiredResultColumn     001      1/1/2010   5/7/2011    8/12/2008      5/7/2011     002      7/1/2014   7/3/2012    10/12/2013     7/1/2014     003      9/1/2012   12/7/2012   NULL           12/7/2012     004      11/1/2012  NULL        8/12/2013      8/12/2013     Unfortunately my tables, due to the source system constraints, aren't normalized, otherwise a max function would solve my problem. Thoughts? I appreciate it!


From the jQuery.ajax documentation for the type parameter:     The type of request to make ("POST" or "GET"), default is "GET". Note:   Other HTTP request methods, such as PUT and DELETE, can also be used   here, but they are not supported by all browsers.   What specifically are they referring to when they say that PUT is not supported by all browsers? That is, are there any specific or notable examples where this is the case?


Placing lever on specific stained clay colors?

I'm pretty new to command blocks, but I managed to understand the basics of the CanPlaceOn command for my adventure map. However, I want the player to be able to place levers on green stained clay. How do I specify a specific color of stained clay for lever placement? Also, if anyone could tell me if there is a way to hide the tag on the lever that it "Can Be Placed On: Stained Clay", that would be wonderful.


Can someone please help me on this problem in modular Arithmetic Congruences I ran into this problem on aops alcumus If $3x+7\equiv 2\pmod{16}$, then $2x+11$ is congruent $\pmod{16}$ to what integer between $0$ and $15$, inclusive?


SSH : launch task and leave it running even if I quit the terminal

I want to launch a task through ssh and then exit my terminal and have my task continuing on my ssh server.  I have tried a bunch of things which did not work, such as :  laptop$ ssh server@ipaddress server$ mytask & [1] 12345 server$ logout   Or  laptop$ ssh server@ipaddress server$ mytask (then hit [Ctrl]+[Z]) server$ logout   Or even  laptop$ ssh server@ipaddress -f "mytask" (and then close my terminal)   But even in my last attempt, closing my terminal would stop the task.  How should I proceed?  Thanks in advance!!


Method for proving no difference in a set of paired samples

I'm trying to analyze a set of 15 paired samples. The elements of each pair are results of a measurement that produces a scalar value. The first measurement of the pair was done in presence of some factor (let's call it $A$), whereas the second was done in its absence. I'm looking for a method to infer whether $A$ has an impact on the results or not.   The only usable method that I know of is the paired sample t-test for mean values, with the null hypothesis $H_0: \mu_1 = \mu_2$. With $H_0$ formulated in this way, the test yields a meaningful result only if there exists a difference that could be attributed to $A$ (i.e. when $H_0$ is rejected). In my case though, it makes more sense to use a test that is meaningful if $A$ has no impact on the result. That is, my $H_0$ should be $\mu_1 \neq \mu_2$, or maybe $|\mu_1 - \mu_2| \leq \delta$, where $\delta$ is the absolute value of some sufficiently small difference.   Does anyone know how can I adapt the paired sample t-test to my needs, or what other methods can I use instead?


"Multiple Forms In Visualforce Page" caught by Checkmarx scanner

One of my pages was scanned by Checkmarx and it's returning this flag "Multiple Forms In Visualforce Page"  Indeed in my page I have several form tags like so:  <apex:outputPanel rendered="{! $CurrentPage.parameters.show_custom_1 == '1'}">     <apex:form >         <apex:commandButton value="Custom Action 1" action="{!customAction1}"/>     </apex:form> </apex:outputPanel>    <apex:form >     <apex:inputText value="{!customText1}"/><br />     <apex:commandButton value="Update customText1" action="{!updateCustomText1}"/> </apex:form>   One other interesting thing to note is one of these forms is conditional and may or may not appear.  But regardless, it doesn't seem like it should matter? Why is it a problem to have more than one form on a page? That's a very common thing in a modern webpage. I've seen some pages that have 10 forms or more, as long as they are contained to their own area and don't overlap, I don't see why it's a problem?


Substitute fresh garlic instead of garlic powder?

I have a recipe that calls for garlic powder, but I only have fresh garlic on hand.   What ratio should I use to substitute?


Using Process Monitor to track registry changes

It seems many people like using Process Monitor to see what changes are being made to the registry during a process.  So I downloaded it.    I want to see what changes are made in the registry by some config changes I'm making on my computer so I can write them into a vbs script to do them easily.  Can someone tell me how to drive Process Monitor to capture the info? In the Help I don't see how to do it.  I'm using Windows 7 home Premium 64 bit.


Does the equation have a real solution...please help!

Suppose that $c_0, c_1, \cdots , c_n$ are real numbers and that $c_0 + \frac {c_1}{2} + \frac {c_2}{3} + \cdots + \frac {c_{n-1}}{n} + \frac {c_n}{n+1} = 0$. Prove that the equation: $c_0 + (c_1)x + \cdots + (c_{n-1})x^{n-1} + (c_n)x^n = 0$ has at least one real solution between 0 and 1.


Black fuzzy spot on every photo (Nikon D40)

I have a Nikon D40. I bought it new in 2007ish and I'm still using the stock 18-55 lens that came with it.  In the last month I've noticed a black fuzzy spot in every picture. Below is an example. That is not something on the wall - the dot moves and shows up in other pictures.  It only shows up when zoomed in and gets progressively lighter as I zoom out.  So I assumed it was something on the lens, but cleaning it didn't change anything. I don't visually see any scratch or debris. I don't think I ever took the lens off since 2007, but I removed and gently blew some compressed air into it. No change.  Any other ideas? The camera has never been dropped or damaged.  One other odd thing is that periodically, I'll see an extreme blue tint if I pick the camera up after a long period of time and snap some pictures - that has only happened once or twice in the last couple of years though and could easily be a low battery or temperature issue (I haven't really documented it).


If I type something like this:  {\itshape\LARGE   Dunt venim dolorerosto do odit   ametum vulla conum dolore   conulput in vero od el   Dunt venim dolorerosto do odit   ametum vulla conum dolore   conulput in vero od el }   it results in a block of 4 lines with narrow spacing between the 1st and 2nd line and between the 3rd and 4th line. Line spacing between the 2nd and 3rd line is normal.  I can't fully explaing it to myself so I am looking for a short description for this behaviour. I know for example that with a \par at the end of the text (inside the group), the calculation would correct. But I have no idea why...


My storage keeps increasing drastically despite not downloading anything and freeing up lots of space (4GB>200mb??)

I am using a Huawei P10 Lite. This is absolutely insane and I desperately need a solution, I can't even begin to imagine what's causing this. I've been getting the whole "storage space running out" message for a while now, so yesterday I went ahead and I ported 4GB worth of space to my SD card, leaving tons of free local space on my phone. The message dissappeared after this. And yet today I suddenly get the same "storage space running out" message, I go look up the amount of storage I have in settings, and suddenly it says there's only 400mb left, and a few hours later now there's only 200mb left. How is this possible?? I freed up 4GB and now suddenly there's only 200mb left?? Something's very wrong here. I DID NOT DOWNLOAD A SINGLE THING IN THIS TIME PERIOD, NOT ONE THING Some things worth mentioning: -I have auto-updates off, so that's not the issue here -When I check my local folders it all amounts to about 5GB, not even close to 32GB which is the total internal storage of my phone -I already uninstalled updates of built-in apps I don't use, it didn't change this problem -I use Clean Master to delete cache and free up space, but it keeps increasing more and more regardless -Due to certain circumstances I cannot do a factory reset right now and need a different solution If there is any other information you need please don't hesitate to ask This is a massive problem for me and I am desperate for any solution or just fidning the culprit behind this for that matter... thank you all very much for your attention.


I'm struggling using the APA citation style, and would like to see in text citations in the form (Author, Date) in the text, but I either get an error compiling or {labelyear}{labelmonth} after every citation in my console.   Here is the top matter in my latex document... am I missing something/using contradicting packages?  Here is the code snippet.  \documentclass[11pt]{report} % Use the report document class if you're looking to include chapters, otherwise article is fine \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage{csquotes} %packages allowing for images to be inserted  \usepackage{graphicx} \usepackage{floatrow} \graphicspath{ {thesisimages/} } %packages for formatting Figures  \usepackage[font=scriptsize]{caption} \usepackage{mwe} %packages pertaining to the bibliography  \usepackage[backend=biber,style=apa]{biblatex} \addbibresource{thesisbib.bib}  %packages pertaining to formatting \linespread{1.6} \usepackage[a4paper, total={6.5in,9in}]{geometry} %package for the degree symbol \usepackage{gensymb} %package for making subFigures(below) \usepackage{subfig} %package for including quotes (below) \usepackage{dirtytalk} \usepackage{tabularx} \usepackage{array} %package for changing the line spacing in bibliography \usepackage{lipsum} \usepackage{setspace} %package for including pdf packages \usepackage{pdfpages} %package for appendices? \usepackage[toc,page]{appendix}  \begin{document}  These people said explained some things \cite{Haralick1979} \cite{Hodges2003}.  \printbibliography \end{document}   Any help would be appreciated!


I am trying to find all instances of some words, but only if they have a space on either side.  So for example, if I have the text " Word1 Word2 " I want to match both Word1 and Word2. However, the Word1 match includes the space after it, so Word2 is not counting it as a preceding space.   This is my Regex: (?: )(Word1|Word2)(?: )  Is there a way to re-use the non-capture group characters so that both Word1 and Word2 can use the same space in their match? I do not want the space included in the match.


This should be a simple program as I am new to programming but I can't get through this error, any help will be appreciated.  Here's my code:  #include <stdio.h>  main() {     int num;     printf("Please provide a number\n");     scanf(" %d", num);      printf("The given num is %s", (num % 2 == 0) ? ("even") : ("odd"));      return 0; }   I am using CodeBlocks. The program runs fine until scanf as it prompts to enter a number. But, after I enter the number it gives error "untitled5.exe" has stopped working and when I look into the built message it says:     return type defaults to 'int' [-Wimplicit-int]


Bash script not running in background with nohup

I have a bash script which activates the anaconda environment and run a python scheduler script and write logs to a file every minute. It is working perfectly fine if I run just the script.  [user@host proj]$ test.sh   After doing ctrl-C, I see the logs are coming every minute.  [user@host proj]$ cat logs/log.log Test job 1 executed at : 2018-10-09 14:16:00.000787 Test job 1 executed at : 2018-10-09 14:17:00.001890 Test job 1 executed at : 2018-10-09 14:18:00.001861   But when I run same script in background with nohup  [user@host proj]$ nohup test.sh & [1] 24884 [user@host proj]$ nohup: ignoring input and appending output to ‘nohup.out’   I can see with top that script and python are running  24949 user  20   0  113172   1444   1216 S  0.0  0.0   0:00.00 test.sh 24952 user  20   0  516332  66644  17344 S  0.0  0.8   0:00.65 python   But I cannot see anything to be written in log file.  Not sure what is going wrong. Any suggestion to guide me in correct direction is highly appreciated.


Where to ask question: 'choose host-machine for many android-emulators"

I need to run many (about 10) android emulators (android virtual devices) on a 1 host machine.  AVDs should be optimized to run graphic applications (video rendering, games). What computing power is recommended? Processor? Video card? Ram? What OS fits best?


Are the determinants of two specific matrices equal?

Suppose F is a field, $X \in M_n(F)$, $XX^t = I$, $det(X) = 1$, $X = \begin{bmatrix} A & B \\ C & D \end{bmatrix}$, where A and D are square matrices.   Is it always true that det(A) = det(D)?  This statement seems to be true for all the examples I have tried, but I do not know how to prove it in general.  Any help will be appreciated.


How can we come to the statement where $f$ is discontinuous at point $x_{0}$, when we know epsilon-delta proof:  $\forall {\epsilon}> 0 \: \:  \exists \delta _{\epsilon}> 0 \; : \left | x-x_{0} \right |< \delta _{\epsilon} \Rightarrow \left | f\left ( x \right )-f\left ( x_{0} \right ) \right |< \epsilon $  I believe we should get something like this:  $\left | x-x_{0} \right |< \delta _{\epsilon} \Rightarrow \left | f\left ( x \right )-f\left ( x_{0} \right ) \right |f\geq  \epsilon $  but i don't know how to come to this point using logical operators.


What are the NG, CG, and N iconic group of monsters?

I've been playing this game for a long time but I cannot recall if there has ever been an iconic group of monsters of neutral good (or for that matter chaotic good or true neutral) alignment native to the other planes in the way that other alignments have their iconic creatures (5e names used - they have had other aliases):  \begin{array}{c|c c c}  & \text{Lawful} & \text{Neutral} & \text{Chaotic} \\ \hline \text{Good} & \text{Angels} & ? & ? \\ \text{Neutral} & \text{Modrons} & ? & \text{Slaadi} \\ \text{Evil} & \text{Devils} & \text{Yugoloths} & \text{Demons} \end{array}  Can anyone fill in the blanks?


Can I use regex to replace two or more colons with two colons only

The developer has coded this but it seems like a not so clean implementation also it does not work if the user enters many colons. I would like to use regex but is it possible for regex to check for two or more colons and replace with just two? renameString = renameString.Replace(":::::::", "::"); renameString = renameString.Replace("::::::", "::"); renameString = renameString.Replace(":::::", "::"); renameString = renameString.Replace("::::", "::"); renameString = renameString.Replace(":::", "::");  Does anyone have any suggestions on a better way that this can be done? For reference here's the full code for that method: if (renameString.StartsWith(":") || renameString.EndsWith(":")) {     AcceptText.IsEnabled = false;     IsValidDeckName = false; } else if (renameString.Contains("::")) {     renameString = renameString.Replace(":::::::", "::");     renameString = renameString.Replace("::::::", "::");     renameString = renameString.Replace(":::::", "::");     renameString = renameString.Replace("::::", "::");     renameString = renameString.Replace(":::", "::");     IsValidDeckName = true;     AcceptText.IsEnabled = true; } else {     IsValidDeckName = true;     AcceptText.IsEnabled = true;  }  Any suggestions on if this can be improved would be appreciated.


Where can I find reviews of and tools for comparing cameras?

We all buy a new digicam/DSLR every now and then.  So what web sites do you use to get more information about cameras and compare them? Where do you look for technical information, camera reviews, recommendations, comparison tables, and so on?  (There isn't one right answer for this, so this is a Community Wiki question.  Please put one website recommendation per answer - if you know more websites, just write one answer for each one.)


How to find lines matching a pattern and delete them?

In a file with lots of lines I want to delete lines that starts with HERE IT IS.  How can I do this using only command-line tools?


Suppress author option: remove the name of an author already used in text

Sometimes, I write the name of an author in a sentence before the citation. For this reason, I'd like to suppress it in the citation. How can I do that?  Is the only solution to create a new macro, e.g. \citewoauth, similar to \cite but without author names, or am I missing something? [The MWE (non-working actually) below is with \parencite but the general idea is similar.]    \begin{filecontents}{\jobname.bib}   @article{doe_2011,     title = {A title},     author = {John Doe},     journal = {Journal},     number = {99},     pages = {483--488},     date = {2015},   } \end{filecontents}  \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[french]{babel} \usepackage[T1]{fontenc} \usepackage{csquotes} \usepackage[style=verbose-trad2,language=french,backend=biber]{biblatex}  \addbibresource{\jobname.bib}  \begin{document} Some text\footnote{According to John Doe, it is \enquote{a complete nonsense} \parencite[485]{doe_2011}}  \printbibliography \end{document}


Set of nilpotent elements in $\mathbb Z_n$

An element $r\in R$ is called nilpotent if $r^n=0$ for some integer $n=1,2,\dots $.   We have the following:    When $r$ is nilpotent then $1-r$ is invertible in $R$.  If $R$ is commutative then the set $N(R)$ of nilpotent elements is an ideal of $R$. This is not true when the ring is not commutative.       I want to show that $N(\mathbb{Z}_m)=0$ if and only if $m$ is not divisible by a square of a prime.      Suppose that $N(\mathbb{Z}_m)=0$, then  $r^n\neq 0$, for all $n\in \mathbb{N}$, where $r\in \mathbb{Z}_m$, right?   How could we continue?


I have a problem with FeedItems in my Test class, it's very weird behaviour Does someone explain to me why this happens?  Callout Class  public with sharing class Callout {  public static void runProccess(Case[] records) {     Database.executeBatch(new CalloutBatch(records), 10); }  public static void send(Case[] records) {     Case[] toUpdate = new Case[]{};       for (case record : records) {         HttpRequest req = new HttpRequest();         req.setEndpoint('callout:test/SOME_URL');         req.setMethod('POST');         req.setHeader('Content-Type', 'application/json');         req.setBody('');         Http http = new Http();         HTTPResponse res = http.send(req);          Map<String, Object> response = (Map<String, Object>) JSON.deserializeUntyped(res.getBody());          toUpdate.add(new Case(Id = (Id) response.get('Id'), Status = (String) response.get('Status')));     }      update toUpdate;  } }   CalloutBatch Class  global with sharing class CalloutBatch implements Database.Batchable<Case>, Database.AllowsCallouts{  private final Case[] records;  global CalloutBatch (Case[] records) {     this.records = records; }  global Iterable<Case> start(Database.BatchableContext BC) {     return records; }  global void execute(Database.BatchableContext BC, Case[] scope) {     Callout.send(scope); }  global void finish(Database.BatchableContext BC) { } }   Test Class  @IsTest  private class CalloutTest { @IsTest static void shouldReaciveData() {     String status = 'Closed';     Case caseRecord = new Case(Type = 'Web', Status = 'New');     insert caseRecord;      //insert new FeedItem(ParentId = caseRecord.Id, Visibility='AllUsers', Type = 'TextPost', Body = '');      System.assertEquals(0, [SELECT Count() FROM Case WHERE Id = :caseRecord.Id AND Status = :status]);      Test.startTest();     Test.setMock(HttpCalloutMock.class, new CalloutTestMock(caseRecord.Id, status));     Callout.runProccess(new Case[]{caseRecord});     Test.stopTest();      System.assertEquals(1, [SELECT Count() FROM Case WHERE Id = :caseRecord.Id AND Status = :status]); } }   Mock Class  public with sharing class CalloutTestMock implements HttpCalloutMock {  private Id recordId; private String status;  public CalloutTestMock(Id recordId, String status) {     this.recordId = recordId;     this.status = status; }  public HTTPResponse respond(HTTPRequest req) {     HttpResponse response = new HttpResponse();      response.setStatusCode(200);     response.setBody('{"Id": "' + recordId + '", "Status": "' + status + '"}');      return response; } }   This code works, but when I uncomment insert FeedItem in Test Class I receive an error message:     System.CalloutException: You have uncommitted work pending. Please commit or rollback before calling out   Class.Callout.send: line 23, column 1   Class.CalloutBatch.execute: line 20, column 1   FeedItem doesn't have an impact on this functionality, (I don't have any Process Builders, triggers etc. on FeedItem object)


I used an installation CD drive to run Ubuntu.  When I booted with installation CD on restart, it gave me an option to either "try" or "install" Ubuntu. I chose install.  During the course of installation, I did not know how to partition and all, so chose Logical Volume Management, and finished the installation successfully.  I removed the CD and restarted. I assumed now the laptop will ask for my preference of Operating Systems - Ubuntu or Windows 8- but it does not! It always starts Ubuntu! Also, the boot buttons (F1,F2,etc.) don’t work while restarting the laptop  I think I have lost Windows :(   How should I proceed?


Is there any kind of API which allows to get the profile information?

I want to include a tag or kind of business card on my homepage where a link to my account, my current reputation and my current badges are show. Could be something like the user card under a question or answer:        Is there an API for this or is it allowed to parse it from the Stack Overflow website?


Can I Flash Ubuntu Touch to Wiko Cink Slim

I was wondering if I can flash Ubuntu touch on my Wiko Cink Slim android phone.  Specs:  •Dual SIM/ Dual Standby  •4.0-inch WVGA (480x800) IPS Display  •233ppi with 5-point multi-touch feature  •Android 4.1 (Jelly Bean)  •1GHz dual-core MT6577 processor  •PowerVR SGX531 GPU  •512MB of RAM  •4GB of internal storage (2.5GB usable)  •microSD card slot up to 32GB  •5MP autofocus camera with LED flash  •720p HD video recording  •VGA (0.3MP) front camera  •HSDPA 7.2 Mbps; HSUPA 5.76 Mbps  •Bluetooth v2.1 with A2DP and EDR  •WiFI 802.11b/g/n, WiFi HotSpot  •GSM Triband / 3G Dualband  •GPS with A-GPS support  •TV-Out support / LED Notification  •3.5mm headset jack / microUSB  •Proximity / Ambient light / Motion Sensor  •Li-ion 1,600mAh battery  •Standby time up to 200 hours  •Talk time up to 9 hours  •127.5 x 65.5 x 10.3mm (dimension)  •125g (weight)


Proof writing: Let $d=\gcd(a,b)$ and $m=\operatorname{lcm}(a,b)$. Prove that $dm=|ab|$.

Let $d=\gcd(a,b)$ and $m=\operatorname{lcm}(a,b)$. Prove that $dm=|ab|$.   Can I just show that since $\operatorname{lcm}(a,b)=|ab|$ iff $\gcd(a,b)=1$, then $dm=(1)|ab|=|ab|$? Or is there a more simple proof to this?


How to access the previous/next element in a for loop?

Is there a way to access a list's (or tuple's, or other iterable's) next or previous element while looping through it with a for loop?  l = [1, 2, 3] for item in l:     if item == 2:         get_previous(l, item)


How can we prove this integral inequality?

There is the first inequality that I should solve: For all $R>0$ $$\int_0^{\pi/2}e^{-R\sin(\varphi)}d\varphi < \frac\pi{2R}(1 - e^{-R})$$  But in the next exercise, there is a more general case: if $f''(x) < 0 $ on $[a, b]$, then  $$ \int_a^b e^{-\lambda f(x)} dx < \frac{b-a}{\lambda(f(b) - f(a))}(e^{-\lambda f(b)} - e^{-\lambda f(a)}) $$  First of all I think that i should apply Jensen's inequality for integrals, because $ e^{-\lambda f(x)} $ is convex function, when $ f''(x) < 0 $. But it is  provide me wrong inequation ( $\int >= $ something). So I don't know what to do. Please help me solve this inequality.


merge two DEMs of different resolutions?

I have two DEMs, the first one is in 30 meters of résolution and the second: 5 meters, and will like if there is a possibility of merging them to extend the area where I do my research?


Can I transfer my Overwatch account stats/skins from Xbox to PS4?

I currently play on Xbox one but I am looking to trade my Xbox for a Playstation 4, so that I can play with more of my friends. I know I've read about it not being possible to link accounts through PS4 and PC, but that's not really what I'm looking for.   Is it possible to link my account between the two consoles? Like being able to get my level and comp rating. Also, is it possible for me to transfer skins? I have a lot of legendaries and really don't want to lose them.


Why is super.super.method(); not allowed in Java?

I read  and thought that would easily be solved (not that it isn't solvable without) if one could write:   @Override public String toString() {     return super.super.toString(); }   I'm not sure if it is useful in many cases, but I wonder why it isn't and if something like this exists in other languages.  What do you guys think?  EDIT: To clarify: yes I know, that's impossible in Java and I don't really miss it. This is nothing I expected to work and was surprised getting a compiler error. I just had the idea and like to discuss it.


Title of 80's movie: future-era timetraveling humans go extinct and rescue/kidnap todays air crash victims

What is the title of a 80's (i believe?) movie where humans in the far future are going extinct, and are aquiring new humans by going back in time to todays world, kidnapping air travelers that are known to have died that day, from the flying passenger aircraft just before its crashing.  A key visual:    Inside a hangar, a time portal opened, and a tail of a (flying) passenger aircraft extruded into the hangar where a stairs provided access to the back door of the aircraft.  The kidnappers made sure the surviving passengers remain seated and would forget about the whole ordeal. Kidnapped humans got replaced by lookalike dummies, including things they had on them. They tried hard not to alter the timeline.


Convert Month Number to Month Name query in SQL?

In my table date format is 2011-06-23, but i want to show the month name in string type, like Jan, Feb e.t.c.


Why might one also use a blank constructor?

I was reading some Java recently and came across something (an idiom?) new to me: in the program, classes with multiple constructors would also always include a blank constructor. For example:   public class Genotype {   private boolean bits[];   private int rating;   private int length;   private Random random;    public Genotype() {              //  <= THIS is the bandit, this one right here     random = new Random();   }    /* creates a Random genetoype */   public Genotype(int length, Random r) {     random = r;     this.length = length;     bits = new boolean[length];      for(int i=0;i<length;i++) {         bits[i] =random.nextBoolean();     }   }    /* copy constructor */   public Genotype(Genotype g,Random r) {     random = r;     bits = new boolean[g.length];     rating = g.rating;     length = g.length;      for(int i=0;i<length;i++) {         bits[i] = g.bits[i];     }    } }   The first constructor doesn't seem to be a "real" constructor, it seems as though in every case one of the other constructors will be used. So why is that constructor defined at all?


I have just started using Blender but I feel stupid that I can't find how to reset/remove shortcut added through     By accident I have added a right mouse to Remove Doubles so my right click functionality is gone. Every time I right click Blender tries to remove doubles and I can't seem to be able to reverse to standard behaviour..  I have tried exporting/importing factory settings through user preferences ( Input tab ) but that didn't work.  So can you please point me in the right direction how to reset the shortcuts?  Using Blender 2.69.


Get Coordinates of Voronoi Polygon Vertices

Is there any chance to get the exact coordinatas of the voronoi polygons? I am using Qgis software and I have the "center" (redpoint) of the polygons and I would like to export the polygons corners coordinates.


Replacement for NewSID when working with Windows 7?

Is there a replacement for the old  NewSID utility that will work for Windows 7?  I found out the hard way that NewSID will totally hose a Windows 7 setup ( on reboot). Apparently the same problem occurs for Windows Server 2008 R2. They've officially announced that NewSID will be retired in November, possibly because of this issue.  I'm aware of SYSPREP, but it's not a clean replacement in my case so I was hoping that there was another utility similar to NewSID that worked with Windows 7. Reworking our system to use SYSPREP will be ugly and slower as well. Is there another alternative?


I was trying to delete a directory that I made using catkin_make( so I asked google) I used the fallowing code in catkin_workspace $ sudo rm -rf * I got trolled and deleted everything in Home  Is there a way to restore the Home folder?


What does the 's' attribute in file permissions mean?

Please compare the following two lines:  -rws---r-x 1 root root 21872 2009-10-13 21:06 prg1   -rwx---r-x 1 root root 21872 2009-10-13 21:06 prg2    Does the setuid bit on prg1, along with the read and execute bits for 'other' mean that any user can run it with root privileges?  The  prg2 also has read and execute for 'other', but does not have the setuid bit set, so does that mean it can still be run by any user but without root privileges?


Is it fine to use Chi-squared test with parameters estimated from the same dataset?

I'm studying the Kolmogorov-Smirnov and Chi-squared tests. From ,  On the other hand the chi-squared statistic does give useful shortcuts if you are trying to model the parameters that describe a set of data and the uncertainties on those parameters. The K-S test should not really be used if there are adjustable parameters which are being optimised to fit the data.  From ,  K-S test probabilities are wrong if the model was derived from the dataset.  In , the author uses the parameter estimated from the dataset itself to do the Chi-squared test on the same dataset. As such, I got that it's problematic to use K-S test with parameters optimized to fit the data.  My questions: Is it fine to use Chi-squared test with parameters estimated from the data itself?


Has there ever been a "light" weapon other than the lightsaber?

Has there ever been a human-usable "light" weapon other than the lightsaber?  For this question I am not interested in weapons that resemble swords, double ended or not.  I've seen plenty of them, and even if they are really cool...    ...I was wondering if Kyber Crystals had ever been used to create other weaponry.  I am interested in whether there has been a light axe / light whip / light spear or anything similar.  I know that Kyber Crystals are used in the making of lightsabers, and I think they were also used in the planet killing laser in the Deathstar.  With this in mind, have Kyber Crystals been used to ever create something like a gun or rifle that can be used by a person?  So I am looking to see if a "light" weapon was ever made that fits these criteria:   Doesn't resemble a sword Must be usable by a human (or equivalent) Can be a close combat or ranged weapon Exists in the current canon (Not in StarWars Legends / Expanded Universe)   And if Kyber Crystal were never used for anything other than lightsabers and Deathstar lasers, was there any reason given why the use of Kyber Crystals was limited to these specific designs?


Does addError() work outside of triggers?

I moved a method that sets addError() from a trigger into a Helper class. As I started writing test code for it it seems like the addError() is not actually preventing DML operations for the records that get modified in the helper class.  The information from the SF  states: Marks a trigger record with a custom error message and prevents any DML operation from occurring.  Does this mean that addError() will not work outside of a trigger class?  EDIT  Adding some sample code.  public class MyHelperClass() {     public static void someMethod(Opportunity opp) {         opp.My_Field__c.addError('Some error');         insert opp;     } }   And sample test for it without any asserts:  @IsTest private class MyHelperClass_Test() {     @IsTest     static void someTest() {         Opportunity opp = new Opportunity();         opp.Name = 'Some Name';         opp.StageName = 'Prospect';         opp.CloseDate = Date.today().addDays(30);          MyHelperClass.someMethod(opp);     } }   The above inserts the opportunity and does not trigger an exception. Am I doing something wrong?


I'm using natbib to make the citations in my document. When I cite an article that has more than one author with  \citep{Ak-Suleimani1999}, I have, in the output:     Ak-Suleimani et al., 1999   The problem is that I would like to have:     Ak-Suleimani y col., 1999   I had read that, with biblatex, it is a really easy thing to do:    But I didn't find a way to do this with natbib. I really would like to keep working with this package, so I don't have to change a lot of code trough my almost ready document.


What is the residue of $\frac{\sin \frac{1}{z}}{z^2+a^2}$ at $z=0$?

I tried to expand everything into a power series but I'm not sure how to get the answer out of that. Every corresponding product seems to be a coefficient of $1/z$


Can I make Ctrl+Alt+Del go directly into the task manager in Windows 7?

I am using Windows 7 and when I press Ctrl+Alt+Del I first go into the welcome screen and only then I can go into the task manager.  I have no use for any other option on this screen, can I change it so the combination will get my directly to the task manager ?


Numbering side-by-side equations or inline equations

I am trying to produce a two-column table of math equations, where each cell contains its own left-justified, numbered equation.  I tried using \begin{equation} \end{equation} inside the tabular environment, or inside a description list with multicols, and I can get the numbering, but not the left-justification.  I thought about using inline math mode in the table, but how do I get those equations to be numbered? Is there a little \numberthisequation command I can include in the ( inline-math ) commands?  I suppose, I could use two \minipages side by side, but I was hoping for something a little more straightforward.  Thanks!


I want to edit manually the following .plist file:  /Users/<myname>/Library/Mail/V5/MailData/SyncedRules.plist   Because I get a lot of spam and adding each spammer address to the rules using Mail is impraticable:    and there are many addres to be added. Since I know a bit bash scripting, sed and awk I'm thinking to write a script that automatically adds the addresses from selected email to the plist file above.      So, what is my question?  In conclusion, for each spammer addres the script should add a new dict entry with following fields:          <dict>             <key>CriterionUniqueId</key>             <string>CC4CB669-0D44-4A32-80B1-02D069718304</string> (*)             <key>Expression</key>             <string>spammer@address.spam</string>             <key>Header</key>             <string>From</string>         </dict>   How the string at (*) is generated? How can I fill it?


How to copy everything from one directory to another using 'cp' command?

I know that we can copy things from one directory to another using the command:  cp -Ri /path/one/* /path/two/*   Here:  R = recursive i = interactive  My questions:   Does this command copy everything? (Hidden folders & files, system folder & files, etc.) If not, then what is the command? Or are there other softwares available for the job?


How to prove $|e^{i\theta} - 1| \leq |\theta|$?

Prove $|e^{i\theta} - 1| \leq |\theta|$, for all real numbers $\theta$.


Trying to create student register which should allow users to input their names. I want an error to prompted when the same name is entered unfortunately as I'm a beginner I'm finding it hard to achieve this. Is it possible to target all the names in the array? function idCheck() {   let names = ['Mark', 'John', 'Tom', 'Dave', 'Jim'];    alert('Welcome to Club 332');    let name = prompt('Please Enter Your Name');      if (names[0] === name) {     console.log('Unfortunately, the following name is taken, Try Again');   } else if (name !== names) {     names[names.length] = name;   }    console.log(names);    let age = prompt('Enter Your age');       if (age < 18) {     console.log(alert('Access Denied Over 18s Only'));     console.log('Access Denied Over 18s Only');   } else if (age >= 18) {     console.log(alert('Access Granted'));     console.log('Access Granted');   } };  idCheck();


Why same lists doesn't point the same address?

Someone said to me Everything in python is an object. Like the example below, python just points to the same address for the same value. a = 1 b = 1 print(id(a), id(b)) # Same! print(a is b) # True  But this rule seems like not being applied a list. a = [1] b = [1] print(id(a), id(b)) # != print(a is b) # False  I tested this for a Tuple, but it also didn't work. So I guess it's not about whether they are mutables or not. Why does this happen?


Why are my villagers attempting to breed (they have the red hearts) but then stop breeding suddenly and gray "angry" particles pop up?

I set up a villager breeder and set down 4 beds with 2 villagers in the middle and a carrot farmer supplying them with carrots. The first time both of those villagers bred the breeder worked perfectly fine. After that, however, the gray angry particles popped up every time they would try to breed (they would engage in breeding at a normal pace, just could not actually produce a baby). I even killed the one villager they produced in case it took a bed and even then, the two villagers would not breed anymore. Is there something I have done wrong? This seems odd considering they were only able to breed once and even by eliminating their offspring the villagers could not breed again. Edit: version is 1.16.4


Why does a marble in a merry-go-round move towards the edge?

When the marble is viewed from with respect to the ground, it experiences a net inward acceleration, and hence force. However, when the marble is displaced slightly, it moves towards the edge. Why? My first answer would be centrifugal force, but isn't it fictitious?   EDIT:  The marble isn't the center of the conversation here. It's the outward force. The marble and the merry-go-round can be substituted with just about anything. A car on a bend, a child being spun around by someone or a centrifuge. My question is simply, why does any of these "things" get pushed outwards. A simple answer would be centrifugal force. But isn't that fictitious?  The reason why I asked about the marble and merry-go-round is because of a thought experiment involving the two in Physics by Resnick and Haliday.


How to restore Ubuntu to a previous version?

I just upgraded to Ubuntu 17.04 and I'm having some problems that I didn't have before, so I would want to know if it's possible to restore Ubuntu into 16.10 without losing files and apps.


unicode-math/mathspec interferes with siunitx

The Problem  I'm using unicode-math and the font TeX Gyre Pagella Math. Also, I use siunitx to denote my quantities. Unfortunately, the option \micro of siunitx doesn't get expanded to µ, but is dropped.  (The same behaviour can be observed when using mathspec in XeLaTeX)  Minimal working example  Compile with Xe/LuaLaTeX.  \documentclass{standalone} \usepackage{unicode-math} \setmathfont{TeX Gyre Pagella Math} \usepackage[mode = math]{siunitx} \begin{document} \SI{10}{\micro\m} \end{document}   Output        Expected output


Where will two point mass collide due to gravitation?

Two-point mass of $M$ kg & $m$ kg is kept at a distance of $r$. Where and when will they collide due to gravitational force?


Number format with comma and decimal points

I have tried using Number(x).toLocaleString(), but this only gives me 10,000.   When I use parseFloat(row.profit).toFixed(2) it gives me 10000.00. I tried combining parseFloat(Number(row.profit)toLocaleString()).toFixed(2) But not give me the desired output which should be 10,000.00.  How can I achieve this?


How to correctly uninstall an App Store application

Recently I installed Pages which I purchased with version of iWork '09. Unfortunately this operation downloaded and installed version Pages 5.5.3 which is not exactly an upgrade of Pages '09. Hopefully, the old version is still there (/Applications/iWork '09/Pages.app), but I suspect that the 2 of them are using the same sets of application dependant files for templates, styles...  Pages '09 and Pages 5.5.3 are different products, and the last one would have been more appropriately named Pages Light or Little Pages. Every time I open a Pages file (with Pages 5.3.3) I get warnings about incompatibilities and unsupported functions and I am threaten to save my work with these missing pieces (ex.: bookmarks) without any chance to check the real difference on a large document. For me this is a file corruption.  Hence I would like to uninstall cleanly Pages 5.5.3 to avoid any internal misbehaviour and file corruption.  (Pages 5.5.3 is an example which is an annoying one, disturbing my work. But I have the same problem with applications I installed to check their real functions. Then I discovered these to not correctly answer my needs. I would like to be able to cleanly and safely uninstall these useless applications.)  After scanning all menu entries (with the ⌥ key pressed too) and the internal help, I discovered that I can't find an easy way to uninstall an application installed within App Store.  Clearly this function isn't within App Store.  What is the correct and safe method to uninstall an App Store application, with a resonable control this won't damage any related application?


I notice that on Sierra, Siri's voice is much superior to the selection of system voices you can select in System Preferences → Accessibility → Speech. In fact, I suspect they use a different system entirely as the command say -v ? doesn't seem to list any voices which are used with Siri.  I have a key command set up to speak the select text. Is there no way I can get it to use Siri's voice to do it?  Edit: To be specific, I'm after the Siri voice: 'British (Male)'


Is there a way to transform a string to a command?

I'm making a calculator. It will be very long and hard to do the proper string analizer which parses strings by chars, so I thought, is there a way to turn string into a command line like this: double num = "12/6+23*4";