In disassembling C++ object code for a main function that could ultimately get linked with the object code for a class, I have stumbled upon a strange scenario.  There is no explicit call to a destructor and the object is not constructed via a copy constructor. At line 30, the destructor is called via bl and then again at line 54. However, the main function should have exited at line 48 with the blr instruction...    int main(void){ c:  90 01 00 24     stw     r0,36(r1) 10: 93 e1 00 1c     stw     r31,28(r1)   int temp;   SimpleMemory mem; 14: 48 00 00 01     bl      14 <main+0x14>         14: R_PPC_REL24 _ZN12SimpleMemoryC1Ev   mem.setData(42); 18: 38 61 00 08     addi    r3,r1,8 1c: 38 80 00 2a     li      r4,42 20: 48 00 00 01     bl      20 <main+0x20>         20: R_PPC_REL24 _ZN12SimpleMemory7setDataEi   temp = mem.getData(); 24: 38 61 00 08     addi    r3,r1,8 28: 48 00 00 01     bl      28 <main+0x28>         28: R_PPC_REL24 _ZN12SimpleMemory7getDataEv 2c: 38 61 00 08     addi    r3,r1,8 30: 48 00 00 01     bl      30 <main+0x30>         30: R_PPC_REL24 _ZN12SimpleMemoryD1Ev   return 0; 34: 80 01 00 24     lwz     r0,36(r1) 38: 38 60 00 00     li      r3,0 3c: 83 e1 00 1c     lwz     r31,28(r1) 40: 38 21 00 20     addi    r1,r1,32 44: 7c 08 03 a6     mtlr    r0 48: 4e 80 00 20     blr 4c: 7c 7f 1b 78     mr      r31,r3 50: 38 61 00 08     addi    r3,r1,8 54: 48 00 00 01     bl      54 <main+0x54>         54: R_PPC_REL24 _ZN12SimpleMemoryD1Ev 58: 7f e3 fb 78     mr      r3,r31 5c: 48 00 00 01     bl      5c <main+0x5c>         5c: R_PPC_REL24 _Unwind_Resume   By muddling around with different combinations of the object member function calls, the second destructor call gets introduced whenever there is at least one member function call (no matter what it is).  So basically, why are there two indirect function calls that have identical relocation symbols?  The compiler I am using is GCC DDCI PowerPC ELF 4.6.1-1.

How does gcc implement stack unrolling for C++ exceptions on linux?  In particular, how does it know which destructors to call when unrolling a frame (i.e., what kind of information is stored and where is it stored)?


I'm travelling to Belgium for 3 days in the summer, but my first point of entry would be Germany and the closest embassy I have is the German embassy.  Will the German embassy issue a Schengen visa? Because I wouldn't actually be staying in Germany.

In case, if I get a multiple-entry Schengen visa in one of the embassies in Ukraine, Kyiv - should my first trip be to the country which issued the visa?  Any there any requirements of this sort? Does this condition vary depending on embassy which issued the visa?  What are the possible consequences on not visiting that country first? Does it somehow depend on country where the embassy is (i.e. non-Schengen and not EU members)?


The way i understand the use of tar + gzip is that tar is normally used to consolidate a grouping of files into a single file, then gzip is used to compress that file.  I recently learned that tar can also compress.   Because I do not fully understand how compression works @ it's core, I have (possibly ridiculous) concerns that sending a pre-compressed .tar to gzip might prevent gzip from compressing as well as it's potential would allow and things of that nature.   My question is essentially:  What combination of args/compression methods should i use to create the absolute smallest tar.gz, and what does the command line statement look like for that?

I gzip directories very often at work. What I normally do is  tar -zcvf file.tar.gz /path/to/directory   Is there a way to specify the compression level here? I want to use the best compression possible even if it takes more time to compress.


I would like to know the correct way to use "me" or "I"      Please add George and me to the distribution list.    Or is the correct way,      Please add George and I to the distribution list.

In this case what is correct?        Keep Tom and I updated.      or         Keep Tom and me updated.      I understand that me is an object pronoun. And therefore I feel the second option is correct.  Especially, because I would say "Keep him updated" and also "Keep me updated". Instead of "Keep he updated" or "Keep I updated". But something about saying "Keep him and me updated" feels wrong.  However I am not sure, because several people have told me that in this case I is the correct option because it is being used in conjunction with a name (Tom) and not a pronoun. Is that correct?


Few things I didn't understand on OS X...  From 2010 until today...   Throughout the internet there were several sources stating that according to Apple's EULA it wasn't legal to run any virtual machine (including JVM) on OS X 10.5 and above. As time passed, internet sources stated that JVM shipping with OS X was deprecated only and Oracle took over the updates.   Currently, is it legal to run JVM on OS X? If so, does Apple supports it?  EDIT: All Apple's i-devices will never run JVM (at least not support it). I don't know what's the future on this issue, but it seems that there JVMs for i-devices, but are they legal?

This is a  about Licensing.    Questions on licensing are off-topic on Server Fault.  If your question has been closed as a duplicate of this question, then this is because we want to help you understand why licence questions are off topic rather than just telling you "it just is". In all likelihood, this question will not address your question directly, it was not meant to.    I have a question regarding software licensing. Can the Server Fault community please help with the following:   How many licenses do I need? Is this licensing configuration valid? What CALs do I need to be properly licensed? Can I run this product in a virtual environment? Can I downgrade this product to an earlier version? Am I entitled to feature X with license Y?


So I've been issued a nice new Macbook Air from work.  When I use it with a mouse, the scroll wheel is driving me absolutely nuts. There's such a high degree of acceleration that I find it impossible to use accurately --- a small movement only goes a couple of pixels, while a large movement goes too far.  I want linear scroll wheel response, the way Linux and Windows does it. (But with normal acceleration for mouse movement.) Does anyone know how to do this?  Note: I've searched for an answer here, and there are some duplicates, but they're all years old and haven't been touched for ages. I'm hoping for some new information.

Under Windows and Linux, the mouse scroll wheel seems to be linear.  Under Mac OS the scroll wheel some sort of acceleration which means it either goes too slow or too fast.


"I hope you don't mind my telling you frankly"  I've come upon this sentence while reading Viktor Frankl's "Man's Search for Meaning" and it struck me as kind of strange. To me, swapping "my" for "me" would sound more natural.  "I hope you don't mind me telling you frankly"  I assumed that this sentence is, of course, right, but how does it work grammatically? Does "telling you frankly" function as an object in this sentence?

I assume that the following sentences are grammatically correct:   He resents your being more popular than he is. Most of the members paid their dues without my asking them. They objected to the youngest girl's being given the command position. What do you think about his buying such an expensive car? We were all sorry about Jane's losing her parents like that.   I'm still getting used to this possessive gerund structure. It sounded so weird to me at first. Is the structure used in both formal and informal contexts? Are there any alternative structures that result in the same meaning and are more frequently used? (Examples taken from )


I have a brand new installation of Ubuntu 18.04. I then ran apt-get install curl and it gave me:     Package 'curl' has no installation candidate   I then ran apt-get update and tried installing curl again and it worked this time.  The term "update" can mean lots of things. What does it mean in the above context? what was it updating given that the Ubuntu I had just installed was the latest?

I am wondering what sudo apt-get update does?  What does it update?


The assignment was to create a postfix to infix converter using Stacks. The program compiles properly but when I tried to make a demo class, I received a null point exception line 32. Please share any observations, better coding conventions, or solutions.  import java.util.Stack;  public class PostfixtoInfix {     private String expression;     private Stack<Character> s;     Character pOpen = new Character('(');     Character pClose = new Character(')');      public String PostfixtoInfix(String e) {         expression = e;         String output = "";         for (int i = 0; i < e.length(); i++) {             char currentChar = e.charAt(i);             if (isOperator(currentChar)) {                 while (!s.empty() && s.peek() != pOpen                         && hasHigherPrecedence(s.peek(), currentChar)) {                     output += s.peek();                     s.pop();                 }                 s.push(currentChar);             } else if (isOperand(currentChar)) {                 output += currentChar;             } else if (currentChar == '(') {                 s.push(currentChar);             } else if (currentChar == ')') {                 while (!s.empty() && s.peek() != pClose) {                     output += s.peek();                     s.pop();                 }             }             while (!s.empty()) {                 output += s.peek();                 s.pop();             }         }         return output;     }      public boolean isOperator(char c) {         if (c == '+' || c == '-' || c == '/' || c == '*' || c == '^')             return true;         return false;     }      public boolean isOperand(char c) {         if (c >= '0' && c <= '9')             return true;         if (c >= 'a' && c <= 'z')             return true;         if (c >= 'A' && c <= 'Z')             return true;         return false;     }      public int getOperatorWeight(char operator) {         int weight = -1;         switch (operator) {         case '+':         case '-':             weight = 1;             break;          case '*':         case '/':             weight = 2;             break;          case '^':             weight = 3;         }         return weight;     }      public boolean hasHigherPrecedence(char operator1, char operator2) {         int op1 = getOperatorWeight(operator1);         int op2 = getOperatorWeight(operator2);         if (op1 == op2) {             if (isRightAssociative(operator1))                 return false;             else                 return true;         }         return op1 > op2 ? true : false;     }      public boolean isRightAssociative(char op) {         if (op == '^')             return true;         return false;     } }

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


EDIT: Why was this question marked as duplicate? Please do not vote for a duplicate if you did not take the time to read the posts. As I said in the comments, the difference between those two reasons is not mentioned on the alleged duplicate post.  This is a follow-up question on: .  I am honestly confused with the recent changes to the set of off-topic close reasons. Let me hasten to add that I welcome constructive changes and that I try to make an effort to flag a question with the correct close reason.  I have trouble to discern the following two close reasons:     This question appears to be off-topic because it lacks sufficient   information to diagnose the problem. Describe your problem in more   detail or include a minimal example in the question itself.   and     This question was caused by a problem that can no longer be reproduced   or a simple typographical error. While similar questions may be   on-topic here, this one was resolved in a manner unlikely to help   future readers. This can often be avoided by identifying and closely   inspecting the shortest program necessary to reproduce the problem   before posting.   For starters, they both link to the same SO help page: . But there's more:   What's the difference between "lacking sufficient information to diagnose the problem" and "a problem that can no longer be reproduced"? Both close reasons ask the OP to post or study a minimal code sample.   This is not about whether you like those close reasons, so please don't post your opinion. All I ask is:    the rationale behind the above close reasons straightforward examples that clearly show when to use which close reason     Besides, I don't think I can grasp the wording here: "this one was resolved in a manner unlikely to help future readers". Is this a close reason for problems that are already solved?

Note: the eventual outcome of this discussion involved dropping this particular off-topic reason, along with other changes. See:    —Shog     I was using the reason "demonstrate a minimal understanding" myself quite frequently, but the more I review, the more I have doubts about it and I think this reason can either be dropped entirely or at least rephrased, so I started to use "problems with code you've written must describe the specific problem" instead:     Questions asking for code must demonstrate a minimal understanding of the problem being solved.   So the poster has posted some description, maybe even a snippet of code and in his mind that already proves that he has that minimal understanding required. After all he described the problem and what he tried to solve. So telling him that he lacks that understanding is rather rude, and from the posters point of view doesn't even apply. What both version of the reason not emphasize is that a description of a problem is not various versions of     it doesn't work   but that we rather mean really specific details (see below). I can often see in the reopen review queue that the "improved" version just includes a more verbatim description, while what usually would be expected is some specific error message, a trace or a log, or whatever applies.  Then it continues with:     Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist   comparing it to:     problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.   Which says essentially the same, only in more detail.   So the "minimum understanding" reason is IMO a more rude version of the reason telling the user that an SSCCE is missing.  The intent of giving this reason is to tell the user that he needs to give exact details to be able to help him, so IMO a checklist would be much better. Something like:     Your question was closed because it may not provide enough details. Things you can do to improve your question to get an answer include:         Format the code in a way that makes it readable and easily understandable.   Provide the smallest working sample of code demonstrating the problem (link to SSCCE)   Include your input and output.   If applicable provide logs (i.e. Android debugging log, stack trace, etc.).   If applicable provide the exact error messages (compiler, etc.).      And something like this should be best included already in the banner that appears when a question is closed instead of being hidden in some pages you often enough have to actively looking for.  It might be helpful to adjust this, based on the tags or close reason, as I realize that I'm more focused on the programming area, and the above list may not apply to other areas of SO.  Update  Another thing I forgot to mention (but wanted to) is this:     Questions asking for code   Is IMO essentially an invitation of the type of questions     I have a problem, can you provide the solution? (with an optional please)   while     Questions concerning problems with code you've written   puts at least some emphasis on the fact that the poster has to put some effort himself in trying to solve the problem by providing the code which he used to attempt the solution.


To me it seems natural to say something like:   "I am different from you." or "You can't marry him, he belongs to a different species than you do."  But recently it seems to be more and more common to read or hear on TV phrases like:  "...looked very different to..."  And that really annoys me and makes me want to zap the user with a lightening bolt or something.  So is it correct grammar or bad and annoying grammar to use the phrase "different to" instead of "different from or "different than"?

As someone who learned English later on in life, I was taught that different from is the correct grammar to use: this is different from that. However, it seems these days everyone uses different than instead. I know it's incorrect usage, but does the language evolve if the majority wins?  Edit: Some commented different than is American English and different from is British English, both are OK. IMO, this isn't like color versus colour, though.   Than is used after a comparative adjective, e.g. taller than, whiter than. The word different isn't a comparative adjective, unless used in more different than. Logically, it makes no sense to say different than.


What RegEx would match the word (including special characters) right after a keyword?  E.g. In the following text, using the keyword "equals", the RegEx would match "'1'", "Two" and "3"  Status equals '1' or Status equals Two or Status equals 3

For example, in this text:     Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc eu tellus vel nunc pretium lacinia. Proin sed lorem. Cras sed ipsum. Nunc a libero quis risus sollicitudin imperdiet.   I want to match the word after 'ipsum'.


I was stuck when trying to write to a system file to change the cpu frequency:  $ cat   /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed <unsupported>  $ echo 1600000 | sudo tee  /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed 1600000 tee: /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed: Invalid argument   Changing user to root has the same problem:  $ sudo su # echo 1600000 >   /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed bash: echo: write error: Invalid argument   The following should probably be unrelated. Previously, the above commands all worked, but then my Ubuntu was frozen an hour ago when I plug the usb plug of my laptop cooler into one usb port of my laptop, so I had to reboot it by hitting the power button of my laptop, and then I have the above problem.  Previously when it worked, cat   /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed output some value instead of <unsupported>. After trying many times with the above invalid argument error, now I just  ran echo 1600000 | sudo tee  /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed once again, and it works without the invalid argument error. Around the same time, ubuntu reported some cpu frequency utility error, which I don't remember exactly.

When you attempt to modify a file without having write permissions on it, you get an error:  > touch /tmp/foo && sudo chown root /tmp/foo > echo test > /tmp/foo zsh: permission denied: /tmp/foo   Sudoing doesn't help, because it runs the command as root, but the shell handles redirecting stdout and opens the file as you anyway:  > sudo echo test > /tmp/foo zsh: permission denied: /tmp/foo   Is there an easy way to redirect stdout to a file you don't have permission to write to, besides opening a shell as root and manipulating the file that way?  > sudo su # echo test > /tmp/foo


I know this is probably really basic, but it's very confusing to me.

How does alternating current get anywhere if it travels "back and forth" in the wire?. I understand that Direct Current is a flow of electrons through a wire, but I have always been confused with how Alternating Current works. I expect I am missing something simple but could anyone point me to a resource that does a good job of explaining AC, or perhaps offer an explanation themselves? Thanks!


Eisenstein's criterion says that for a prime $p$ if the following conditions are satisfied for a primitive polynomial, $f(x)$, then that polynomial is irreducible in $\mathbb{Z}[x]$  $p \mid a_0, a_0, ..., a_{n-1}$   $p \not\mid a_n$  $p^2 \not\mid a_0^2$  Now I am almost certain I read somewhere that this lemma can be used to prove that the polynomial $x^{p-1} + x^{p-2} + ... + x^2 + x + 1$ is irreducible.  All coefficients are $1$ though and we have have an awkward amount of terms, $p - 1$ terms as opposed to $p$ terms - so how can Eisenstein's criterion be applied here?

As opposed to the generic polynomial form for utilizing the Eisenstein Criterion ($a_nx^n+a_{n-1}x^{n-1}+\dots+a_0\in\mathbb{Z}[x]$ is irreducible in $\mathbb{Q}$) how do we prove that if $p$ is a prime, $x^{p-1}+x^{p-2}+\dots+x+1$ is irreducible over $\mathbb{Q}$?


When set command is used without any options, it displays the names and values of all shell variables and functions.  We want to display only the variables and avoid the functions from the output.

The bash builtin command set, if invoked without arguments, will print all shell and environment variables, but also all defined functions. This makes the output unusable for humans and difficult to grep.  How can I make the bash builtin command set print only the variables and not the functions?  Are there other commands which prints only the shell variables, without the functions?  Note: bash differentiates between shell variables and environment variables. see here


I have a late 2016 macbook with a charger that fails often.  I bought one that I thought would work but am afraid to try it until I know for sure.They are both c chargers, but the original one is 29W and the new one is 61w. I think that using one with higher wattage is ok, am I right?

If there is only the Macbook 12 inch USB-C charger nearby, can it be used to charge other USB-C devices, such as any Android phones that also use USB-C? (will it be "too powerful" and damage other devices?)  Vice versa, if there is a Quick Charge 2.0 or 3.0 USB-C charger from other devices nearby, can it be used to charge the Macbook 12 inch?  The main concern is about whether it could damage the device or battery.


Does domain get SEO value from the content placed on subdomain? For example, blog.company.com to company.com.

Many articles about subdomain vs subfolders report that subdomains can help with the domain authority of the parent domain and vice versa (I am assuming one owns both domain names). Yet, I cannot find confirmation of this.  It seems like every articles is repeating what other articles are saying. Anyone has hard evidence to share supporting this claim? Or is it just a myth? My understanding is that a subdomain is treated separately from the parent domain, even if you own both domain names.


I am struggling to get the intuition behind dedekind's cut. The main problem I am facing with Dedekind cut is the third axiom that if (A,B) is dedekind pair for a cut then A should not have largest number. But why does it so?? What I feel that if we know the maximum it can also work as a cut for pair(A,B).   Please send your suggestions. These would be very helpful.

What is the importance of 3rd axiom of dedekind's cut?  a Dedekind cut is a partition of a totally ordered set into two non-empty parts (A and B), such that A is closed downwards (meaning that for all a in A, x ≤ a implies that x is in A as well) and B is closed upwards, and A contains no greatest element.(From Wikipedia)  what is importance of statement "A contains no greatest element"?? Please explain in intuitive way.  Also my reasoning is that if you don't know what is greatest number in A how can you calculate Least Upper Bound for A which is required for completeness of R.


So I have a bounty of 500 pending on a question that I wrote. Two different persons answered the question two different ways and I want to reward both.  I have discovered (to my dismay) that I can't split the bounty, so I thought I will award it twice, since I am allowed to place a second bounty on my question.  But there is this weird bounty-doubling rule and I am already at the max, and I did not see a tag or link to place another bounty on this.  It will be very painful to award this bounty to just one of the answers,  and I am willing to lose another 500 rep to award it to two answers, but I cannot see how to do that.  What can I do?

Often more than one person contributes to the community coming up with the final accepted answer to a question. However, it is only possible to accept a single answer. Restricting to one final answer does make sense for the sake of referencing that answer later, but in many cases that answer is the product of the input from several individuals. I would like to be able to decide how much of a bounty goes to different users, or some other mechanism to recognize the contribution of multiple users. Of course I could always upvote their previous answers, but this is really incorrect if their previous answers aren't the complete, final answer I've accepted.  What think you metaSOrs?


I'm creating a shell script that performs several steps before running lualatex to create a final pdf document.  The first step I have in this script is to clear out a "build" directory and start fresh.  BUILD=$DIR/build if [ ! -d "$BUILD" ]; then     mkdir $BUILD fi rm $BUILD/*  lualatex --output-directory build --interaction=batchmode main.tex   For the most part this works fine, however neither the table of contents nor the section headers appear in the output PDF.  But If I modify the script to run lualatex twice:  lualatex --output-directory build --interaction=batchmode main.tex lualatex --output-directory build --interaction=batchmode main.tex   ...the PDF is perfect!   Under what circumstances would running the command twice cause everything to work fine?

You have to compile a file twice to get the desired output in the accepted answer to .  The accepted answer to  provides a way to avoid compiling multiple times.  My question is, what are those situations where you have to compile a file more than once? (We know of at least two such situations with reference to the linked questions.)


When viewing a question on a site which I don't use (I never registered on it), I can't figure out how to get back to the list of questions of the site.  See this example  from the Stack Exchange Android app. Where should I click to see the list of questions? (I chose Mathematics Educators because it's the most recent site, it is very likely that most users don't have an account on this website)  Here is a random example:    When viewing a question, I don't know how to view the list of questions. This site can't be found in the sidebar since it's not in my Your Sites list. The top menu containing the site's title only opens the sidebar.

Maybe I'm just stupid, but I can't figure out how I'm supposed to get from a question (in the Android App) to the site the question is on.   I know I can open the left drawer, tap "All Sites", and type in the name of the site I want to go to, but it seems like there should be a way to get from a question to its site without all that rigmarole. (Tapping the back button works if I was on the site in the first place, but if I get to a question from my feed or from a link in my browser or something, that doesn't help.)


Each user will have a unique username as it is going to be used to link to their profile page. As an example, in the following URL johndoe is the username http://www.example.com/user/johndoe. Are there any best practices that I need to follow? What characters should be allowed?

Many websites when ask you to create a new "username", will limit you in some way, most often like "username should only contain letters and underscores" or something alike.  This results in inability to use my email as username and forces me to come up with new unique string all the time.  What is the rationale behind this?  Why not just let users use their emails, as a simple to remember and always unique?   What is generally wrong with having symbols like *&%$#@ as a part of username?


Why $D_n$ is  not simple ?  i was  asking  this  question  to my professor  . My professor  said me that  $D_n$  is not simple  because  subgroup genereated by $< \frac{R_{360}}{n}>$ is  normal in $D_n$.  Actually  i didn't  understand the  meaning  Any hints/solution  will be appreciated  thanks u

I ran into this question when I was studying for my abstract algebra midterm.     Show that the subgroup $H$ of rotations is normal in the dihedral group $D_n$. Find the quotient group $D_n/H$.   I'm not quite sure where to begin. I know that for a Dihedral group of $n\geq 3$, then $r^n=1$ where $r$ is a rotation, and $s^2=1$ where $s$ is a reflection, and $srs=r^{-1}$. I was not sure how to prove something is a normal subgroup from here. Any advice, thanks!


I have 2 sql server statements .  Delete from hello where id=1  Insert into hello name,age  select name ,age from welcome   If either of one fails.No Deletion or Insertion should be done.  I tried with transaction    Begin Tran      Delete from hello where id=1      Insert into hello (name,age)      select name ,age from welcome   Commit Tran   But if either one is gone wrong .Other one is committed.Am i missing something.   2 delete statements  BEGIN TRY     BEGIN TRAN;     delete from hello where id=1    delete from hello where id=19  // here id=19 doesn't exist      COMMIT TRAN; END TRY BEGIN CATCH     IF @@TRANCOUNT > 0 ROLLBACK;     THROW; END CATCH;   Here id=19 doesn't exists so it should rollback but it is deleting id=1. It is committed instead of rollback.What should i do in this Scenerio..

If I simply wrap my query with:  BEGIN TRANSACTION    COMMIT TRANSACTION   If anything fails inside of that, will it automatically rollback?  From looking at other code, they seem to check for an error, if there is an error then they do a GOTO statement which then calls ROLLBACK TRANSACTION  But that seems like allot of work, to have to check for IF( @@ERROR <> 0) after every insert/update.


Say I have some complex number $z=a+ib$ with $a,b\in \mathbb{R}$. Now I want to "swap" its real and imaginary parts, i.e. I want to get $\tilde{z}=b+ia$.  While I figure that the appropriate mapping would be $\tilde{z}=-i\overline{ z }$, (where $\overline{z}$ denoting the complex conjugate of $z$), I keep wondering whether there is some standard notation/function for this. All of $z^\dagger, z^*,\hat{z}$ and the like usually have some other meaning to my knowledge.

I'm currently doing some experiments on fractals and in one of my equation I need to flip the real and imaginary components of a complex number, such as :  $$ z = a + bi $$  Becomes :  $$ z = b + ai $$  What would be the correct mathematical term or notation for this ? flip ?


I want to create a GameOver screen with the option to "Play Again" using KEYDOWN event. The quit option works but my gameloop does not update. When I type gameLoop() the font doesn't turn blue.  My Code:          def gameLoop():       gameExit=False        gameOver=False        lead_x = 300       lead_y = 300        lead_x_change = 0       lead_y_change = 0        randAppleX = random.randrange(0, display_width-block_size)        randAppleY = random.randrange(0, display_height-block_size)        gameDisplay = pygame.display.set_mode((display_width,display_height))  while not gameExit:      while gameOver == True:         gameDisplay.fill(white)         message_to_screen("Game Over, Press C to Play Again or Q to Quit",red)         pygame.display.update()          for event in pygame.event.get():             if event.type == pygame.KEYDOWN:                 if event.key == pygame.K_q: #This works fine!                     gameExit = True                     gameOver = False                 if event.key == pygame.K_c:                     gameLoop() #This won't work      if lead_x > 789 or lead_x < 1 or lead_y > 589 or lead_y < 1:                     lead_y_change = 0                     lead_x_change = 0                     print "Game Over"                     gameOver = True       for event in pygame.event.get():             if event.type == pygame.QUIT:                 gameExit = True             if event.type == pygame.KEYDOWN:                 if event.key == pygame.K_LEFT:                     lead_x_change = -block_size                     lead_y_change = 0                 if event.key == pygame.K_RIGHT:                     lead_x_change = block_size                     lead_y_change = 0                 if event.key == pygame.K_UP:                     lead_y_change = -block_size                     lead_x_change = 0                 if event.key == pygame.K_DOWN:                     lead_y_change = block_size                     lead_x_change = 0                       lead_x += lead_x_change     lead_y += lead_y_change      gameDisplay.fill(white)     pygame.draw.rect(gameDisplay, red, [randAppleX,randAppleY,block_size,block_size])     pygame.draw.rect(gameDisplay, black, [lead_x,lead_y,block_size,block_size])     pygame.display.update()      clock.tick(FPS)  message_to_screen("You Lose Turd", red) pygame.display.update()  pygame.quit() quit()  gameLoop()

How can I create or use a global variable in a function?  If I create a global variable in one function, how can I use that global variable in another function? Do I need to store the global variable in a local variable of the function which needs its access?


Whenever I use ubuntu-device-flash on my BQ Aquaris e4.5 I get this:  root@finlay-afr:/home/finlay# ubuntu-device-flash touch --channel ubuntu-touch/stable/bq-aquaris.en --bootstrap 2015/04/25 10:40:28 Expecting the device to be in the bootloader... waiting 2015/04/25 10:40:28 Device is |1| 2015/04/25 10:40:28 Device 1 not found on server https://system-image.ubuntu.com channel ubuntu-touch/stable/bq-aquaris.en   What is wrong?  EDIT: managed to get progress by using ubuntu-device-flash touch --channel ubuntu-touch/stable/bq-aquaris.en --bootstrap --device=krillin but now I get stuck with this:  2015/04/25 14:35:20 Device is |krillin| 2015/04/25 14:35:21 Flashing version 21 from ubuntu-touch/stable/bq-aquaris.en channel and server https://system-image.ubuntu.com to device krillin 2015/04/25 14:35:21 ubuntu-touch/ubuntu-rtm/14.09 is a channel alias to ubuntu-touch/stable/bq-aquaris.en 67.41 MB / 67.41 MB [======================================] 100.00 % 1.70 MB/s  60.40 MB / 60.40 MB [======================================] 100.00 % 1.48 MB/s  286.68 MB / 286.68 MB [====================================] 100.00 % 2.94 MB/s  /root/.cache/ubuntuimages/ubuntu-touch/stable/bq-aquaris.en/krillin/version-21.tar.xz /root/.cache/ubuntuimages/gpg/image-signing.tar.xz /root/.cache/ubuntuimages/gpg/image-master.tar.xz /root/.cache/ubuntuimages/pool/device-0142302186687e3e48e6987283f6caf5d471a4160f98aa6a3cb7658f96471297.tar.xz 2015/04/25 14:37:18 Can't flash recovery image   how do I fix that? 5/11/2015: still not working, anyone help >.>

The tool 'ubuntu-device-flash' can be used to update the software on an ubuntu phone manually. It can be used to change the device to a different 'channel' of updates and also perform a reset of the storage.  However, when I tried it with either the BQ Aquaris E4.5 Ubuntu Edition or Aquaris E5 Ubuntu Edition, it didn't seem to work, for example:  ubuntu-device-flash touch --channel ubuntu-touch/stable/bq-aquaris.en --bootstrap   Would be expected to wipe the device to factory state. However, it does not seem to succeed:  2015/03/27 13:58:35 Expecting the device to be in the bootloader... waiting 2015/03/27 13:58:50 Device is |krillin| 2015/03/27 13:58:50 Flashing version 20 from ubuntu-touch/stable/bq-aquaris.en channel and server https://system-image.ubuntu.com to device krillin Failed to enter Recovery


how to show first 2 and last 2 line of all the files whose name starts with “file”. with Command in ubuntu

I want to get only let's say third line of df -h output.  What kind of command should I use?


I'm new to LaTeX and I was wondering how to write a command that gives me \left\{A,B\right\}. I want to renew this command like \poisson, for example.  If someone could help me, I will be very grateful.  Sorry if the question is basic.  Thanks.

I have been using LaTeX for a long time now, and I find myself often going to this website to solve my problems. This often includes copy pasting codes which include \newcommand, \newenvironment and \def. I think it is time I start to learn how to use them so I can solve my problems myself! It is always better if you actually know what is going on inside your code.  I am wondering if there is any turtorial or book out there that handles how to use those commands. Or is the best way to learn to just mess with a random file?   Thanks in advance!  (Also this is my first time I post here after using this website for so long, I really appreciate everyone who posts and tries to help other people here!)


I am not able to create an icon for the android studio I have created a .desktop file for android   [Desktop Entry] Version=1.0  Type=Application Terminal=false Icon=android_studio Exec=sh /home/username/Downloads/android-studio/bin/studio.sh Name=Android Studio   The android folder at /home/username doesn't have studio.sh file  but only have sdk folder so I have given path from downloads/android-studio to studio.sh    I have also given permission to .desktop file I have created.

I'm trying to install Android Studio so that I can launch it from a launcher instead of via terminal.  Android Studio > Tools > Create Desktop Entry doesn't do anything  Can someone give specific instructions please?  I think this is something to do with the permissions in /usr/local/ I tried doing a chmod as explained in  and it still didn't work.  I tried modifying the Android Studio launcher file that was in /usr/share/applications/ and it would not launch the app under my user. If I launch it as root it's fine, but that's not very practical.


I have a question concerning a more efficient sql query which will select records from driving table, which is missing in second tables. Tables have more than 23k rows, and join takes too long.  Is there any way to make it faster? According to me, the following query loops through whole table   I used   SELECT * FROM orders JOIN orderID USING(Order_id) WHERE orderID != Order_id


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


My code below is trying to pass a multidimensional array to another function to perform certain tasks on it however it always produces the following error which I can't understand why. Everywhere I have look online states it was people using the '&' to pass the array parameter but I don't do that.  pong.c:48:17: warning: passing argument 1 of 'render' from incompatible pointer type [enabled by default]    case PAINT:                   render(new_frame, argv[1], test_screen_size_x,test_screen_size_y);   My code:  void render(char *new_frame, char *out_frame, int screen_size_x, int screen_size_y);  int main(int argc, char **argv) {     int state  = START;     // Holds the current state of the state machine      if(argc > 1){         int test_screen_size_x;         int test_screen_size_y;          test_screen_size_x = *argv[2];  // int screen_size_x         test_screen_size_y = *argv[3];  // int screen_size_y         char new_frame[test_screen_size_x][test_screen_size_y];             while(1){             switch(state){                  /*  START state -                  */                 case START:     player_config(&player1, test_screen_size_y);                             player_config(&player2, test_screen_size_y);                              state = CALC;       // Move to the CALC state                             break;              /*  CALCULATION state - Performs all the game calculations             */             case CALC:      paddle(&player1, test_screen_size_y); // Calc paddle position of player 1                             paddle(&player2, test_screen_size_y); // Calc paddle position of player 1                              state = PAINT;       // Move to the PAINT state                             break;              /*  PAINT state -              */                                      case PAINT:     render(new_frame, argv[1], test_screen_size_x, test_screen_size_y);                              state = CALC;       // Move to the CALC state                             break;             }     }     return (0);        }   void render(char *new_frame, char *out_frame, int screen_size_x, int screen_size_y) /*  Function creates the new frame  */ {         memset(new_frame, 0, sizeof(new_frame[0][0]) * screen_size_x * screen_size_y);  // Fill multi-dimensional array full of zeros      draw_dyn_object(&player1, new_frame);     draw_dyn_object(&player2, new_frame);      out_frame = new_frame; }  ...

In C can I pass a multidimensional array to a function as a single argument when I don't know what the dimensions of the array are going to be?  Besides, my multidimensional array may contain types other than strings.


I would like to send email to my boss About exam of the course she told me to take it.  Dear Mrs. Jeny,  I hope my email find you well.  I would like to inform inform you that I have passed the science test ..  Or   I would like to inform you that I had passed the science test .  Kindest regards,  Cathren

Non-native speakers often get confused about what the various tenses  and aspects mean in English. With input from some of the folk here I've put together a diagram that I hope will provide some clarity on the matter.  I offer it as the first answer to this question. Consider it a living document. Input is welcome, and good suggestions will be  incorporated into the diagram.    Nota bene: What this is not is a discussion of whether there are  more than two tenses in English. , to which this question is not intended to supply arguments one way or the other.  Here, the aim is to provide an overview of what constructions English-speaking people use for conveying information about actions referring to past, present, and future, and to provide it first and foremost to precisely the people who are likely to use "tense" as a catch-all term in their search, rather than to linguists who know better.  Breaking News There is now an excellent ELU blog article titled  . It is highly recommended reading.


I'm going to piggy back off  but suggest that instead of having first drafts included in revision history, just change to a 5 minute demilitarized zone.  The way this would work is that any answers that have been submitted within 5 minutes of the question being asked can be answered, but won't be visible until that 5 minute period has expired. At this point, any submitted answers will be displayed and future changes become permanent revisions.  This will allow users the time to properly form their answer instead of competing for first answers. In addition, users will no longer be able to piggy back off other answers encouraging that each user form their own unique answer. Lastly, answers will be able to more fairly evaluated by the community.  The process would look something like:   User submits question Community can begin submitting answers 5 minutes after the user has submitted their question, any answers will be displayed and any future changes to these answers will be part of the revision history of the answer

Summary: High reputation users on SO come swooping in the second a simple question is posted, and get the first answer in before I've even opened my Python interpreter to test my idea out.  This actually is a problem because it prevents use lower users who aren't as good  at programming from getting any answers in.  This makes it very hard to build up reputation.  Thus, I propose a short dead time for high reputation users where their answers do not appear.  The Problem: This isn't just reputation.  By answering questions and having discussions with OP, we all get better at our language.  Teaching is one of the best ways of learning, and a more well versed population is absolutely good for SO.  (If anyone wants to argue that, go home)  While its nice to have folks who can quickly answer nearly all questions in a jiffy, its a little frustrating for those of use who simply aren't as fast, but still want to contribute.  The result is that many people do not answer questions because they feel like they just can't get an edge in.  SO should aim to incentivize as many answers by as many users as possible.  The most answers from the most users is the most beneficial situation for the site and the community. Once we accept this idea, it is clear that something needs to be done to address the issue at hand    The Solution: Luckily, this is an easy problem to solve; we use a dead time.  High reputation users can post answers whenever they like, but they won't appear until after the dead time is completed.  The trick is balance, a dead time which is too long will harm the OP as the question will remain unanswered, however, a dead time which is too short won't actually fix the problem.  There definitely needs to be a discussion about what "high reputation" means and what dead time to use, but it should be independent of whether y'all agree that this is a problem.  So, what do you think?  EDIT: Wow, -18, I leave for lunch for 30 minutes and this is what happens!  I guess y'all think this is a bad idea, but let me try to clarify a few things on which I was unclear earlier.  This is not about reputation.  This is not about getting the first answer just for the sake of getting to say "in before..."  This is about learning.  By getting a shot at answering questions before the high reputation users, people learn. Think of it as doing an example problem in class before the teacher does it. You get a chance to try it yourself, test your knowledge, and if you fail, then the teacher is right behind you to show the correct solution.  This is what I'm trying to accomplish. However, seeing the solution, and then trying to answer the question, is not very helpful. This is how I view the status quo.    In response to Mr. Pieters' answer and comments: You're absolutely right, this is not about quantity, its about quality.  The fastest answer isn't always the best.  But asking the high reputation users to take a step back for a few minutes is a means of getting there.    Hopefully this clears things up a bit.


I want an expression to refer a noun to be processed or to be dealt with. I think clauses a bit too long, while 'to-be-processed' phrase not elegant.  To specify my question in avoidance of ambiguous, I would state the context as explaining a model/method. I am about to write how the intermediate data between two procedures are like. So initially I consider sentence like "The to-be-computed/processed(by second procedure) data have features that blablabla."

I'm writing an application that generates a spec sheet for a publication.  At the top there will be a list of the various components (ads, articles, etc.) and how many there are for each status type:  Pending (pending content) These elements are missing the content necessary to begin working on for a few different reasons:  It is an ad space that hasn't been sold yet It is an ad space that has been sold, but the advertiser hasn't decided what to do with it yet The content depends on something that hasn't happened yet (eg. an interview that's scheduled for some time in the future) The copy text and/or photographs for the element haven't been provided yet  ??? (ready to be worked on) These elements are ready for placement into the publication, but they involve a bit of touching up.  If photographs are provided, only the best can be chosen to appear in the publication as space is limited Some photos require alteration A place must be found for elements without a predefined page number If the element is an ad and the advertiser does not provide an ad design, we design an ad for them  If there's too much content for the number of pages that have been allocated to the publication but not enough to justify adding additional pages, then non-advertising elements need to be trimmed down.  If there's too little content or we've decided to add additional pages, then non-advertising elements need to be fluffed up a bit (extra photos chosen, pull-quotes added, etc.). Published (laid out for publishing) These elements are locked into the publication and cannot change.  Once all elements reach this state, it goes to the printer for publishing.  I'm looking for a word to say "these elements are ready to be worked on".  It would be extra awesome if it could be used interchangeably to say "mark this element as ready to publish". The word their current application uses for this state is Approved.  The Approved state is really only relevant to ads where we're doing the ad design (ie. the advertiser has approved our ad design) and not a general label for all elements on the spec sheet. Words I've considered:  Processing (makes sense as a label for a collection, but not much sense for changing the state of a single element) Completed (sounds too similar to "Published") Queued (sounds weird on a design document)  A single word would be best since spaces require extra work to deal with in the application, but if there's an exceptional short phrase I'm willing to make an exception.


I am new to linux in general and have figured out the different programs belong to different groups. I can easily solve my own problem by typing sudo all the time. But I'd rather understand the why of the problem and fix it permanently.   I've installed php as part of the lamp-stack. Everything work fines. However when I open a file with PHPStorm or Sublime Text I have problems working with files. I can get around this already by typing.. sudo chown -R myusername /path/to/file  I've read that I can use umask to explore this further. But that's as far as I can figure out so far.  How can I permamently set permissions in the programs (phpstorm, sublime text) so that they can work with the files in /var/www/html so that they can be worked with without using sudo to open them, or keep having to change ownership of them all the time?

I want to stop having to use sudo everytime I work in /var/www. How can I do that? I simply want to put all of my sites into this directory and work with them without too much pain.


My laptop is running on Windows 8.1 and a year before I installed Ubuntu Linux. If I try to upgrade to Windows 10, there will be a problem or not, because of Liniux?

I'm currently multi-booting Windows 8.1 and Ubuntu.  Next Wednesday, I plan to upgrade Windows to version 10, but before I do that I'd like to replace Ubuntu with Arch Linux.  Is there any point in getting Arch before I upgrade Windows or will Windows 10 simply disregard it and overwrite?  Basically, I just need to know if there is anyone out there that already has experience with installing Windows 10 and if so, does it thoroughly respect existing partitions and only modify the older version of Windows?  Maybe the only thing Win will break is Grub? In which case I could just sudo update-grub?


How can I factorize $X^p+1$ in a field of characteristic $p$ ?  If the field is $\mathbb Z/p\mathbb Z$, then $$X^p+1=X^p+1^p=(X+1)^p,$$ but if the field is $\mathbb F_{p^n}$ or if the characteristic is $q\neq p$, I don't know how to do it.    It's not duplicate, but it solve my problem for $\mathbb F_{p^n}$. But what happen for a field of characteristic $q\neq p$ ?

If $p$ is prime, then $(x+y)^p=x^p+y^p$ holds in any field of characteristic $p$. However all the proofs I have seen use induction and some relatively nasty algebra despite how fundamental this fact seems.  What is the nicest, "highest level proof" you know?


What actually happened in this scene? [Warning: Graphic]                                   Did or didn't Bateman really fatally injure the prostitute on the bed? Did or didn't Bateman really kill the 2nd prostitute with chainsaw? If NO, why was that 2nd prostitute so horrified?

Towards the end of the movie, we see  in an apartment full of dead bodies. He ends up confessing what he's done to his lawyer. Later he goes back to the apartment, only to find the bodies are all gone. What happened to the bodies?


As a newbie GM, I wonder what happens when a PC fails on a Skill Check, but nothing stops them from rerolling it.  E.g. In the starter set, after defeating a goblin ambush, the players can spot a trail by succeeding on a DC 10 Wisdom(Survival) check.   If a player fails to notice it, couldn't they reroll the check or let another player try with the excuse that they're keep looking for clues?

Picking a lock typically requires a DC 15 Dexterity check (Basic rules, p. 49). Likewise for manacles (p. 50), which can alternately be escaped with a DC 20 Dexterity check or broken with a DC 20 Strength check. But what happens if you fail?  The general rules for ability checks state (p. 58):     If the total equals or exceeds the DC, the ability check is a success—the creature overcomes the challenge at hand. Otherwise, it’s a failure, which means the character or monster makes no progress toward the objective or makes progress combined with a setback determined by the DM.   As a DM, how can I handle this in practice? In our last session, the players wanted to get inside a locked building to rescue people trapped inside. Picking the lock seemed like an easy enough task for the rogue, but unluckily he failed the check, and I wasn’t prepared for the consequences. There wasn’t much time pressure and no obvious reason why he couldn’t try again, so I allowed another attempt, but it just didn’t feel right.  I’m sure that similar situations will come up again, so I’d like some advice on how to deal with checks so that they don’t just turn into a tedious exercise of rolling until you succeed. I presume that  was left out of the game for good reason, but I’m not sure what to do instead. I suspect that this was a good occasion to use “progress with a setback” but that’s a fairly new thing for D&D and I’m not sure how to go about it. I’m unsure when I should use setbacks versus lack of progress, and in the latter case I’m unsure when I should allow players to try again versus requiring a different approach.  For example, suppose that a manacled player tries to pick the lock and fails the DC 15 Dexterity check. Now, the player could try to pick it again, or he could try one of the other escape methods, or he could wait for somebody else to rescue him, or he could simply succeed with some setback like a minor injury. How do I choose how to proceed? Or do I let the players choose?


first excuse me for my bad english (i speak spanish).  I am trying submit a form uploading with an image.  When i want send normal data (how text string) i do this:  First import modules:  import urllib.request  import urllib.parse  import http.cookiejar   Preparing cookies and headers:  cj = http.cookiejar.CookieJar() open = urllib.request.build_opener(urllib.request.HTTPCookieProcessor(cj)) abriendo.addheaders = [("User-agent","Mozilla/5.0")] urllib.request.install_opener(open)   Encode the url data, i use the id (it is in the web form html )  valor1 = {"username":"test1","password","hello"} valor2 = urllib.parse.urlencode(valor1) finalvalor = valor2.encode("UTF-8")   Now can send post data (remember, this is an example with string data)  nav = urllib.request.urlopen(url,finalvalor) navread = str(nav.read())   Url variable have the post url  This work good, but i have problems to send a image.  The web form start with this code:   <form enctype="multipart/form-data" onsubmit="return ver('espera');"           action="example.php" method="post">     <input type="hidden" name="MAX_FILE_SIZE" value="5300000">

                 <input size="25" id="uploadFile1" name="uploadFile1" type="file">   I do  dicc = {"uploadFile1":open("1.jpg","rb")} nav = urllib.request.urlopen(url,dicc) navread = str(nav.read())   Have this Error:  ValueError: Content-Length should be specified for iterable data of type <class 'dict'> {'uploadFile1': <_io.BufferedReader name='1.jpg'>   I try to encode the data ( enconde dicc how normal url ) but not work (do not send any data). I surfed in googe and i think that binary data need to encode to base64 ??  Finally, the question is, how can upload a image with urllib.request module?  Thanks for read.

Is there a way to send a file using POST from a Python script?


If we were able to make a perfect vacuum with no forms of energy in, including all forms of light would time still go on in that vacuum and if it doesn't how would we tell that it doesn't? Then if we could see that there is no time flowing does that mean that the energy flowing at the speed of light creates the flow of time?

Imagine a perfect vacuum devoid of all matter and radiation. Irrespective of whether such a space can even exist, my intuition tells me that time would not exist within such a space. What this thought experiment tells me is that the human concept of time is basically that it's a measure of motion. Whether its a car speeding down a highway, skin on your face as the years go by, or photons, it's really all about motion. Now what about something like a gravitational field? Could that also be excluded from acting within a perfect vacuum?


I know how to create and delete symbolic links, but now I have a specific problem. I wanted to create a symbolic link from c:\mydata to d:\mydata, but forgot the first parameter, so I entered from c:\:  mklink /D d:\mydata   The command created a symbolic link c:\ to d:\mydata. The link is working :-) but now I cannot access my c: drive, because it is mapped to d:\mydata. I don't know how to remove this link, can anyone help?  All the answers under the question  do not help me, because:   I cannot delete c:\ in windows explorer, because there ist no delete option on drive c: I cannot open the shell with admin privileges to execute rmdir c:\ (I'm always getting an error message when clicking right on "shell" and choosing "run as admin" ("...system32\cmd.exe could not be found")   Update: My system is still running, I can log out and log in, but I'm afraid of rebooting it. It's running since I made the mistake. I can use most of the programs, only a few (like Adobe Reader or opening an admin shell) are not working.

I created a symlink using mklink.  Now I need to change it but I can't figure out how to delete it so I can recreate it correctly.


There are a lot of tutorials on how to create a mount point for google drive around. They usually involve installing one tool or another and so on.  But ubuntu already has a GUI way to log in into your online accounts and mount the drive to access the files. I was wondering how does it do it, and how could I do the same through terminal so it uses the same credentials I already set instead of installing and configuring a whole new way to do it.  I am using ubuntu 19.10

I'm running Ubuntu MATE 16.04.6 LTS on about 5 different machines.  I need to have sync for Google Drive folders to cooperate with my colleagues.  Until recently I was able to use  for syncing my Google Drive. But currently there are OAuth2 security-related problems with grive2 (for details see ). Fixing them by end-user is a bit difficult and time-wasting for 2+ simultaneous installs.  Do we have any alternative to get Google Drive working on Ubuntu MATE 16.04 LTS?


So I have some friends who want to play minecraft with me. The thing is we don't want to play on servers, as others may interrupt. So  is there a way for me to play minecraft with my friends without Hamachi? If i have to create a server, then how? Note: I don't have a strong pc. Ths!

I would like to create a minecraft server for me and and my boyfriend to play on.  How do I set it up? Do I need any additional software? Do you have some links to walkthroughs or tutorials?  I have tried to set this up a few times but have failed every time.


I want to overlay two global raster datasets on land use which use different coordinate systems (MODIS-Sphere & WGS84) using ArcGIS Desktop. There seems to be no direct transformation option from MODIS-Sphere to WGS84. It seems to me that I would have to use a custom transformation. However, for that I would need some sort of transformations dialogue/script which I don't have. Or am I missing something?!  Does anyone have any idea on which steps to take?  The dataset I want to transform is   Format: ESRI GRID Projection: Goode's Homolosine Equal-Area Projection Geographic Coordinate System: MODIS-Sphere  I want to transform this dataset so that it matches the other one (which uses GCS_WGS_1984 as spatial reference and D_WGS_1984 as datum)

I have an ESRI GRID file projected in MODIS-Sphere (here's the dataset ) that I need to convert to a WGS84 GeoTIFF.  I tried Raster > Projections > Warp (Reproject) and got this nonsense:   I then thought I'd use the MODIS reprojection tool or HEG to convert it, but they only accept HDF files and using QGIS' warp or translate functions to convert this file to HDF throwns an error. This guy was trying to do the same thing in Arc, no joy:   I looked for clues in the metadata, and the file seems a little goofy; gdalinfo yields:  Driver: AIG/Arc/Info Binary Grid Files: seto_uf        seto_uf.aux        seto_uf/.aux.xml        seto_uf/.DS_Store        seto_uf/dblbnd.adf        seto_uf/hdr.adf        seto_uf/log        seto_uf/metadata.xml        seto_uf/sta.adf        seto_uf/vat.adf        seto_uf/w001001.adf        seto_uf/w001001.tif        seto_uf/w001001.tif.aux.xml        seto_uf/w001001x.adf Size is 7468, 2911 Coordinate System is `' Origin = (-17345341.010356999933720,8423784.764957003295422) Pixel Size = (5000.000000000000000,-5000.000000000000000) Corner Coordinates: Upper Left  (-17345341.010, 8423784.765)  Lower Left  (-17345341.010,-6131215.235)  Upper Right (19994658.990, 8423784.765)  Lower Right (19994658.990,-6131215.235)  Center      ( 1324658.990, 1146284.765)  Band 1 Block=256x4 Type=Byte, ColorInterp=Undefined   Description = Seto_UF   Min=0.000 Max=101.000    NoData Value=255   So it can't determine the coordinate system.  There's a .tif included in the directory, but gdalinfo on that shows:  Driver: GTiff/GeoTIFF Files: w001001.tif        w001001.tif.aux.xml Size is 7468, 2911 Coordinate System is: GEOGCS["Unspecified datum based upon the GRS 1980 Authalic Sphere",     DATUM["unknown",         SPHEROID["unnamed",6371007,1]],     PRIMEM["Greenwich",0],     UNIT["degree",0.0174532925199433],     AUTHORITY["EPSG","4047"]] Origin = (-17345341.010356999933720,8423784.764957003295422) Pixel Size = (5000.000000000000000,-5000.000000000000000) Metadata:   AREA_OR_POINT=Area Image Structure Metadata:   INTERLEAVE=BAND Corner Coordinates: Upper Left  (-17345341.010, 8423784.765)  Lower Left  (-17345341.010,-6131215.235)  Upper Right (19994658.990, 8423784.765)  Lower Right (19994658.990,-6131215.235)  Center      ( 1324658.990, 1146284.765)    So it says the units are degrees but those huge corner coordinates and origin values don't agree.  Any ideas?  My setup: OSX 10.9.4 QGIS 2.6.1 Brighton GDAL 1.11.2 (apparently there are newer versions but this is the latest you can get on OSX without having to compile it yourself)


I have a list in list. All the values are False. I have to change value to True of a very specific one.  s=[[False,False,False,False]    [False,False,False,False]    [False,False,False,False]    [False,False,False,False]]   I want to change it into this:  s=[[False,False,False,False]    [False,False,False,False]    [False,True,False,False]    [False,False,False,False]]   P.s.: I tried doing this:  s[2][1]=True   But i got this:  [[False,True,False,False] [False,True,False,False] [False,True,False,False] [False,True,False,False]]

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


I have the following interface  public interface IQueryBuilder {     SqlCommand Build(IReportDataSource dataSource, List<IReportColumn> columns, List<IReportRelationMapping> relationMappings, IReportFilterMapping filters, List<IReportColumn> columsToSortBy, ReportFormat reportFormat);      string GetSqlClause(List<IReportFilter> reportFilters, ref List<IDataParameter> sqlParams); }   However, I would like to be able to access the method GetSqlClause in the implementation directly.  Here is how I implemented the above   public class QueryBuilder : IQueryBuilder {     public SqlCommand Build(IReportDataSource dataSource, List<IReportColumn> columns, List<IReportRelationMapping> relationMappings, IReportFilterMapping filters, List<IReportColumn> columsToSortBy, ReportFormat reportType)     {         //Do something awsome!!!         string sqlQuery = "";          List<IDataParameter> sqlParameters = new List<IDataParameter>();          return this.GetSqlCommand(sqlQuery, sqlParameters);     }      private SqlCommand GetSqlCommand(string sqlQuery, List<IDataParameter> sqlParams)     {         var command = new SqlCommand(sqlQuery);          foreach (IDataParameter dataParameter in sqlParams)         {             command.Parameters.Add(dataParameter);         }          return command;     }       public static string GetSqlClause(List<IReportFilter> reportFilters, ref List<IDataParameter> sqlParams)     {         string sqlFilter = "";          if (reportFilters != null && reportFilters.Any())         {             //At this point we know there are some filter to add to the list              var firstFilter = reportFilters.First();              foreach (var reportFilter in reportFilters)             {                  var parameter = GenerateDbParameter("p" + sqlParams.Count, reportFilter.FormattedValue, SqlDbType.NVarChar);                 ....                 ....             }         }          return sqlFilter;     }      private static IDataParameter GenerateDbParameter(string parameterName, object parameterValue, SqlDbType parameterType)     {         if (string.IsNullOrEmpty(parameterName) || parameterValue == null)         {             throw new ArgumentException();         }         var parameter = new SqlParameter("@" + parameterName, parameterType)         {             Value = parameterValue         };          return parameter;     }   }   Because I am using static on my GetSqlClause method I get an error     cannot implement an interface member because it is static.   What is a good work around to this problem? How can I access my GetSqlClause directly?

Why was C# designed this way?  As I understand it, an interface only describes behaviour, and serves the purpose of describing a contractual obligation for classes implementing the interface that certain behaviour is implemented.  If classes wish to implement that behavour in a shared method, why shouldn't they?  Here is an example of what I have in mind:  // These items will be displayed in a list on the screen. public interface IListItem {   string ScreenName();   ... }  public class Animal: IListItem {     // All animals will be called "Animal".     public static string ScreenName() {         return "Animal";     } .... }  public class Person: IListItem {      private string name;      // All persons will be called by their individual names.     public string ScreenName() {         return name;     }      ....   }


Let R is finite Ring with 1 and $a \in R \setminus \{0\}$. Show that a is Unit or (Left/right) zero divisior It's obvious that we have to use the mapping: $x \rightarrow ax$ and $x \rightarrow xa$ but what else?

Let $R$ be a finite ring with unity. Prove that every nonzero element of $R$ is either a unit or a zero-divisor.


Several of my servers are running 14.04 with kernel 3.16. The spectre / meltdown patches listed  don't indicate that 3.16 will be patched. Wondering if I should roll these servers back to 3.13? Or am I missing something?

Any questions relating to status updates, or asking if anything is going to be patched for these vulnerabilities should be closed as duplicates of this question.    are in the news right now and sound pretty severe. I don't see any security updates from Ubuntu that cover these vulnerabilities.  What is Ubuntu doing about these vulnerabilities, and what should Ubuntu users be doing?  These are CVE-2017-5753, CVE-2017-5715 and CVE-2017-5754.


In the double integral, for the integrating area element, we have the transformation equality from Cartesian coordinate system $y=y(x)$ to polar coordinate system $r=r(\theta)$: $${\rm d}\sigma={\rm d}x{\rm d}y=r{\rm d}r{\rm d}\theta.\tag{1}$$ But if we let $$x=r\cos\theta,~~~y=r\sin\theta,$$ then $${\rm d}x={\rm d}(r\cos\theta)=-r\sin\theta{\rm d}\theta+\cos\theta{\rm d}r,~~~{\rm d}y={\rm d}(r\sin\theta)=r\cos\theta{\rm d}\theta+\sin\theta{\rm d}r.$$ Therefore \begin{align*} {\rm d}x{\rm d}y&=(-r\sin\theta{\rm d}\theta+\cos\theta{\rm d}r)(r\cos\theta{\rm d}\theta+\sin\theta{\rm d}r)\\ &=-r^2\sin\theta\cos\theta d^2 \theta+r(\cos^2 \theta-\sin^2 \theta){\rm d}r{\rm d}\theta+\sin\theta\cos\theta{\rm d}^2 r.\tag{2} \end{align*} But the result is not correct. What's the reason? I know the right result $(1)$, and I just wonder why $(2)$ is not right.

It is changing the coordinate from one coordinate to another. There is an angle and radius on the right side. What is it? And why?  I got:  $2\,\mathrm dy\,\mathrm dx = r(\cos^2\alpha-\sin^2\alpha)\,\mathrm d\alpha \,\mathrm dr$,  where $x = r \cos(\alpha)$ and $y = r \sin(\alpha)$.  but cannot understand and get the right side. The problem emerged when trying to integrate $\displaystyle \int_0^\infty e^{\frac{-x^2}{n^2}}\,\mathrm dx$ where I tried to change the problem knowing $r^2=x^2+y^2$ but stuck to this part. What is the change in the title called and why is it so?


i am trying to find total pages in building a pager on a website (so i want the result to be an integer.  i get a list of records and i want to split into 10 per page (the page count)  when i do this:  list.Count() / 10   or  list.Count() / (decimal)10   and the list.Count() =12, i get a result of 1.   How would I code it so i get 2 in this case (the remainder should always add 1)

I'm thinking in particular of how to display pagination controls, when using a language such as C# or Java.  If I have x items which I want to display in chunks of y per page, how many pages will be needed?


I've never really understood time. Time is not a force. It isn't energy or matter. Time doesn't MAKE anything do anything. Time doesn't make a clock tick (motion or batteries do). Time doesn't make the earth revolve around the sun (motion/gravity does). I don't think time exists. People say time is used as a form of measurement but aren't we just measuring movement? Even atomic clocks measure the movement of electrons that orbit an atom's nucleus as they "jump" back and forth between energy states. So my question is if I were to stop ALL motion (even movement of electrons that orbit an atom's nucleus) would I stop time? Is time just masquerading as the measurement of motion?  EDIT: This question is not a duplicate of "Does time freeze at Absolute Zero?" Because I am NOT talking about temperature. I am speaking about the motion of ALL things. I am asking if ALL things (photons, energy, matter, forces) stop moving would time stand still? I would have to say yes it would. If ALL motion were to stop for a million years and then start again no one would even know. Atomic clocks wouldn't even miss a step.

Time has many definitions per se, but the basic idea being it's "the measurement of change" so as we know, all matter looses it's ability of changing with the loss of kinetic energy. and the where it becomes zero is the absolute zero (−273.15°C). so my question would be, will time stop/freeze at Absolute zero? and does time get slow while reaching there?


So heres the thing. I have been playing some pokemon go but i cant access ar mode because my phone huawei honor 5x lacks gyroscope. The question here is, can i use ar mode if i enable virtual gyroscope which is made from the data that accelerometer creates.  here is a link where i got the idea. If anyone can help me, please do so. I really would like to exprecience pokemon go with ar mode.

When initiating a battle it starts off in AR mode, but then warns me saying my phone's orientation is not detected. I am then forced to turn off AR mode. Has anybody experienced this? If so, what are the solutions?    Per comments, I am unsure this is a permissions issue. I have everything turned on.


Let $O(n)$ be the group of orthogonal $n \times n$ matrices. Apparently this is a "compact classical group" but I have trouble seeing that it is compact. The topology is the topology is inherits from $\mathbb{R}^{n^2}$ but doesn't this mean the space has to be bounded in order for it to be compact? I feel as if there are orthogonal matrices with entries that can be arbitrarily large. Am I wrong?   Book I am using: Homotopical Topology by Fuchs pg 20.

I have only concept in topology, metric space, and functional analysis. How do I tackle this? Also  I want to know that is the set connected?


I am broken! Well, maybe not me specifically, but I don't see this issue when looking at other people's reputation pages/graphs, so this isn't something specific to the browser I am using.   This issue only seems to occur in Google Chrome 31 and 32 only (the main browser I use). I tested it in Firefox 26 and Internet Explorer 10 and 11 and could not reproduce it.  So here is my reputation graph, as seen :    As you can see, the reputation history graph along the bottom is white, but if you look at the selected bit you can see the white outline of the bars.  Here is a closer look:    So the bars are definitely there. If you select enough of a time frame using the graph at the bottom, the problem also affects the graph at the top as well:    This shows up as complete white just like the bottom graph until you start to mouse over the bars (which causes the little pop up detailing how much reputation you earned on that day).

As you can see, if you go to the reputation graph on your profile on Stack Overflow, the bars in the bottom overview will be white. This makes them invisible unless they are selected.  Eeek!  This does not happen on meta or any other site. Also, I cannot seem to reproduce it on others' profile. Possibly a bug only on your own profile? EDIT: I think I've existed for too long. If I change the CSS on one of the bars to stroke: none, then it becomes green. I think the outline is covering the fill because the bars are too skinny. EDIT2: Confirmed hypothesis by reproducing on Jon Skeet's graph. Proposed solution: enforce minimum bar width and add horizontal scrollbar. EDIT3: Can only repro on Chrome 29.0.1547.57 (Official Build 217859) m (the latest version). Norepro on older versions of Chrome, IE9 (winces), all versions of FF, and all versions of Safari. EDIT4: Can be fixed simply by running the JavaScript $('rect').css('stroke-width', '0') or a userstyle rect { stroke: none }. I may make a user[style|script] to fix this.


In my console browser, I put:     666.66/10   And I get:     66.666   (As expected). But when I put:     6666.66/10   I get:     666.6659999999999   Can someone explain me why this happen? It shouldn't be: 666.666 ?

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


I Have text and I want to use regex expression to find all words come after (Africa is): my code   pattern = r'\africa\sis\s\w+'  re.findall(pattern,a)  the results should contain africa is (some words)  but I got this error  error: bad escape \i at position 0

I am tired of always trying to guess, if I should escape special characters like '()[]{}|' etc. when using many implementations of regexps.  It is different with, for example, Python, sed, grep, awk, Perl, rename, Apache, find and so on. Is there any rule set which tells when I should, and when I should not, escape special characters? Does it depend on the regexp type, like PCRE, POSIX or extended regexps?


So recently I got a new PC, mainly for gaming. I gave my old PC to my brother. Now what I am having trouble with is getting my old steam games on to my new computer, without having to download them. On any other occasion I would have just downloaded them but I live in a very rural area so my internet is pure shit. That being said I also won't be able to share the files over the Internet. So those aren't valid options. All the flash drives in my house are way too small for transporting any games. So there's my question, how do I get these games to my new computer without sucking up all my family's bandwidth and this months Internet?

I have just bought a new computer and I have everything migrated over except for my Steam games.  I looked in Program Files/Steam/ and I found a folder full of the games I have downloaded, but I do not know if it is safe to just copy these folders from one computer to another (seeing as a lot of other applications will not work if you do this), or is there another recommended way?  I don't really feel like re-downloading all my games. I don't have the time nor bandwidth to download 20GB over a 1.5mbps connection.  Is it possible to contact Valve and get a disk with the games on it?


Consider a smooth surface for simplicity. What does its curvature measure? What does its Gaussian/Riemannian curvature measure? What does its torsion measure?  What does the Ricci curvature measure?

I have just begun learning about the , , and  in the context of Riemannian manifolds.  However, I am finding it hard to relate these notions to any sort of geometric intuition.  How can one interpret these differential forms geometrically?  Or at least, what is the motivation for considering such objects?  What sort of information do they provide?  Edit: I should clarify that I think I have somewhat of an intuition for connections, the curvature tensor, and (to a lesser extent) the torsion tensor.  What I am asking about are the connection forms, torsion forms, and curvature forms.


I'm trying to make an array of some objects (another array or dict), like:  a = {"authorName" : 0} b = [a] * numOfAuthors     # numOfAuthors = 300, predefined   My objective is that each element in b should be a copy of a, such that they can be modified independently without affecting each other, but clearly the code shown will result in: modifications to any element in b will be reflected to all others due to the assignment. Hence I tried changing it to:  b = [copy.deepcopy(a)] * numOfAuthors   from this . But it's still behaving in the old way. If I do:  b[0]["Ben"] = 12   then b will be a list of {"Ben": 12}. How should I resolve this?

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


For example replace keystore=".  with keystore="./

I am looking for a way to replace a string in a file with a string that contains a slash by using sed.  connect="192.168.100.61/foo" srcText="foo.bar=XPLACEHOLDERX" echo $srcText | sed "s/XPLACEHOLDERX/$connect"   The result is:  sed: -e Expression #1, Character 32: Unknown option for `s'


The flagging window currently has two different possible reasons to flag a question as offtopic (seen by selecting flag -> "should be closed..." -> "offtopic because"):   This question does not appear to be about the software that powers the Stack Exchange network, within the scope defined in the help center.  Blatantly off-topic (this question has nothing to do with the software that powers the Stack Exchange network)   I've seen these reasons on MSE and on Area 51 Discussion zone, but not on [M]SE or [M]SU, so I'm not sure if this is a SE-wide default or just a coincidence.  What is the difference between these two reason, and when should which be used?

iOS SEß 1.2.2.200  Since when did SE let you double flag?    There are two same flags in here.   Is it possible to be fixed?


When trying to export and import an 58G database yields the following error:     ERROR 1071 (42000): Specified key was too long; max key length is 1000   bytes   Dump created using mysqldump -q --opt and import is just cat bigfile.sql|mysql ...  MySQL versions:   Import: 5.1.49-1ubuntu8.1 Export: 5.1.41-3ubuntu12.10-log (Ubuntu)

while trying to restore a MySql Dump, i get the following error:  ERROR 1071 (42000) at line 25: Specified key was too long; max key length is 1000 bytes   any ideas?


I am looking for an animated TV series which was probably made in the late 90s or early 2000s.  I seem to remember the setting is roughly medieval, except there are also elements of futuristic technology. The main theme of the story has a sort of King Arthur vibe in the sense that the hero is destined to save the kingdom.  The one distinctive thing that I remember for certain is that the central weapon/item of the main character is an artificially intelligent metal staff. Its head is an orb with a glowing yellow bulb or 'eye' on it (not unlike the appearance of the Starkiller Base from Star Wars: The Force Awakens). The shaft of the staff tapers down to a point, which can be plugged into sockets on various devices throughout the world to power or control them. Again with the King Arthur vibe I recall that this staff is his 'Excalibur' - it is implied that he is somehow destined to have it. Either its power or the knowledge contained within its AI is notably unique in-universe. When not doing anything exciting the main character often wore the staff slung over his back on a strap. It did have a voice and often spoke but I can't remember anything about its personality.  Sadly I can't remember any more details about the overarching plot or any of the other characters but I'm hoping this robotic mcguffin is unique enough that somebody recognises it.  Editing as requested: I watched the show in English (I am fairly confident it has a Western / non-Anime origin). I watched it broadcast free-to-air on NZ television probably in the early 2000s

All I remember is that it was between ~2002-2005.  It was about a boy in a dystopian, almost post-apocalyptic world (lot's of brown\cliff\mountains scenes).  He found a staff with a droid on it (who possibly could talk and gave him powers over electricity(?)) or he stole it from a technomage, and he found it in a cave.  The other thing I remember in another episode is that they were on a hovership in a canyon with a dam which closed water access.  I can't remember if it was a good thing or bad guys plan to steal water from good people.  It felt like either sci-fi or steam punk.


Despite following  for .jar file :   java -jar imker-cli.jar   It doesn't work for me :   me@pc:~/Documents/imker$   java -jar imker-cli.jar The program 'java' can be found in the following packages:  * default-jre  * openjdk-8-jre-headless  * gcj-4.8-jre-headless  * gcj-4.9-jre-headless  * gcj-5-jre-headless  * gcj-6-jre-headless  * openjdk-9-jre-headless Try: sudo apt install <selected package>   What is going on ? What should I do to run this .jar file ?

I know that to execute a file, I use the . command, then the file name with a space between them. But I'm trying to execute a .jar file using the . and it does not work. I went into the properties and marked it as executable and made it run with Java.   Is there a way to execute a file with Java in the Bash Terminal?    I am trying to execute the Minecraft.jar file.


Possibly post-apocalyptic, in any case the characters wake up from what may be suspended animation into a common area. I think they may be fed some kind of artificially constituted food and one of the pairs involves a "childlike" non-sexed woman and a handsome guy. I read this in the past decade, but unfortunately further details are not in mind.

I read this series when I was younger but cannot remember the name to save my life. I remember a species of Aliens saves humanity from the ashes of an apocalyptic nuclear fallout and in the resulting event humanity is rendered essentially sterile.   The species has three genders: male, female and ouloi. The ouloi are required for humanity to procreate.   That is all I remember of it.


I have to work with research paper using multivariate outlier detection methods.  Please list the methods for multivariate outlier detection and give some suggestions and ideas....

Suppose I have a large set of multivariate data with at least three variables. How can I find the outliers? Pairwise scatterplots won't work as it is possible for an outlier to exist in 3 dimensions that is not an outlier in any of the 2 dimensional subspaces.  I am not thinking of a regression problem, but of true multivariate data. So answers involving robust regression or computing leverage are not helpful.  One possibility would be to compute the principal component scores and look for an outlier in the bivariate scatterplot of the first two scores. Would that be guaranteed to work? Are there better approaches?


The  is described as having a Legendary Action called Detect: "Detect. The aboleth makes a Wisdom (Perception) check."  What does the Detect action of the Aboleth actually accomplish?

Every Ancient Dragon has Detect as a Legendary Action:     Detect. The dragon makes a Wisdom (Perception) check.   Unless I'm missing something, this seems to be a worthlessly ambiguous action. PHB 174 (under "Ability Checks") reads:     The DM calls for an ability check whenever a character or monster attempts an action (other than an attack) that has a chance of failure. When the outcome is uncertain, the dice determine the results.   In other words, after an action is declared, if it can fail, dice must be rolled. But the Dragon isn't attempting a fallable action; it's just rolling perception dice with no means or ends, with no attempted action attached to them. It's skipping the part where it attempts an action and it's going straight to the dice rolls.  Can the dragon attempt anything that the GM could justify as a perception check? Or does it have a more specific purpose, such as locating a hiding character or identifying an illusion? If so, why is it termed so ambiguously? If not, what does the Detect action actually do?


I'm from the USA, and have a UK tier 4 student visa already issued to me. They made an error on the date that it becomes 'valid', however I received the passport back only a week before flying, and don't have time to go through channels to change it.   I don't need a visa to enter the UK as a tourist (non-visa national, American citizens don't need separate visa to be tourist), so I was hoping I could visit as a tourist for the 7 days before my 30-day vignette in my passport becomes officially valid, then leave for a day and re-enter so that immigration can stamp my visa and officially 'activate it'.   Has anyone got any advice, or experience with this? It isn't my fault at all, I never meant to "sneak around" my visa. I have a full student visa, it's just that my 30-day sticker starts 7 days after it was meant to. I did my application correctly. There's just no time to fix it before I leave in 7 days.  EDIT: NO, this isn't a duplicate or the same as the question indicated, in any way. I ALREADY have the student visa, applied for it from my home country, all that deal. I have the visa. I simply want to know if anyone has any ideas or input regarding my ability to go into the UK as a tourist before the visa becomes valid, or if they'll say that since I currently have a student visa issued to me, despite it not being valid for another 7 days, I cannot enter as a tourist, depsite not needing a visa since USA citizens don't need tourist visas.

As I read in general visitor visa Terms & Condition, I would only be granted to stay up to 6 months in UK. However I am planning to apply for General Student Visa to further my studies. Would it be possible for me to enter UK as visitor for first 6 months/less before I apply for student visa in the same year if I want to travel and study on the same year?


I was building a wall and placed an order to build a timber door. I noticed later that there is a door and a wall overlapping each other.  I tried to dig/mine but to no avail. Any suggestions or a possible way to remove that piece of wall?

How do I remove objects after building them, for example a fence that I placed without taking into account its orientation? I have right clicked on it like you would a structure but nothing happened. I have also tried Shift+Alt+Click and nothing has happened. I couldn't think of any other solutions as this is my first game.


Ubuntu 16.04 is installed on an OLD PC, and should be used headless (without display connected). Due to this fact, when trying to use VNC (x11vnc server is installed) or TeamViewer, its resolution is set somehow to 640x480.  How can I get it changed while it is headless?

I have an Ubuntu 14.04 server that has no external monitor connected.  I use NoMachine to remote control the machine.  When I do so, the Unity/Gnome interface doesn't see any monitors connected, so I can only use 800x600 when connecting with NoMachine.  If I plug in a monitor, I can set the resolution to whatever size the NoMachine window is on the remote computer.  Is there a way to create a "fake" monitor device on Ubuntu so I can set a desktop resolution in Unity/Gnome?


Can I use two or more of 0.25 W resistors to get a 0.5 W resistor? How do I make a 220Ω 0.5 W resistor using 0.25 W resistors (no matter what the value of the resistors). All I know is  V=I×RV=I×R (which we call Ohm's law)  P=I×VP=I×V (sometimes called Watt's law)  am gonna explain more about the project ..  its a metal detector with a pulse induction and the problem was  at the coil poles it must be a 220 ohm 0.5w and the battery was 12 v 70 mA this is the shematic of the project   sorry for my bad english

I want to join 3 resistors connected in parallel into one. Like this   If for the total resistance I use  $$R_t = \frac{R}{3}$$  But what about the power of them?


How do I temporarily enable do-not-disturb mode for 10 minutes?  If I turn on do not disturb, silent mode, or airplane mode then I tend to forget to turn it off. If so, I miss important work messages.  I use WeChat and suffer from flurries of activity. Somebody will start a chat room, pull you in, and then your phone will beep and shake constantly for about 10 minutes.

On Android phones, there are apps (not native functionality) to make the phone silent for the next N minutes starting right now. This is different than setting specific times of day like Do Not Disturb does.  The functionality I'm used to takes one of two forms:   An icon you click that then asks "how long should the silence last" Or, automatically detect that I turned off the sound to zero (via volume rockers or otherwise); and asks the same thing. However, I'm not dogmatic, if iPhone has some other approach to solve this problem I'm open to exploring it.   Is something like this available on iPhone? (6, OS version 10 if it matters).  I prefer native functionality if it exists. Otherwise, an App store app is OK as long as it's free (as in gratis) doesn't require jailbreaking and works on iPhone 6.  Extra plus if it supports both modes described above (trigger with the icon or with setting volume to zero); as well as supposed 100% silence or vibrate-only mode.


I found a circuit that has an led that is blinking in it.  I was interested to see how it works so I took it apart and found that there was no capacitors in IC's in it (here is a picture):  I think the thing under the white circle is a spark gap, but I'm not positive.  My question is how does this LED blink without any capacitors?

In low-cost mass-produced items I often run into black blobs of what looks like resin applied directly on top of something on the PCB. What are these things exactly? I suspect this is some kind of custom IC that is layed out directly on the PCB to save on the plastic  housing/connector pins. Is this correct? If so, what is this technique called?    This is a photograph of the inside of a cheap digital multimeter. The black blob is the only non-basic piece of circuitry present, along with an op-amp (top) and a single bipolar junction transistor.


So, my friend show me prove that $1=-1$ by using this way:  $$1=\sqrt{1}=\sqrt{(-1)\times(-1)}=\sqrt{-1}\times\sqrt{-1}=i\times i=i^2=-1$$  At first sight, I stated "No, $\sqrt{ab}=\sqrt{a}\times\sqrt{b}$ is valid only for $a,b\in\mathbb{R}$ and $a,b\geq0$"  But, I remember that $\sqrt{-4}=\sqrt{4}\times\sqrt{-1}=2i$ which is true (I guess).  Was my statement true? But, $\sqrt{ab}=\sqrt{a}\times\sqrt{b}$ is also valid if one of a or b is negative real number. Why is it not valid for a dan b both negative? If my statement was wrong, what is wrong with that prove?

I know there must be something unmathematical in the following but I don't know where it is: \begin{align} \sqrt{-1} &= i \\\\\ \frac1{\sqrt{-1}} &= \frac1i \\\\  \frac{\sqrt1}{\sqrt{-1}} &= \frac1i \\\\  \sqrt{\frac1{-1}} &= \frac1i \\\\  \sqrt{\frac{-1}1} &= \frac1i \\\\  \sqrt{-1} &= \frac1i \\\\  i &= \frac1i \\\\  i^2 &= 1 \\\\  -1 &= 1 \quad !!? \end{align}


I've tried to make some code for a game in python 3.6.3 and when I try to change a value in a 2d list/array (in a list inside a list), it changes the values of that index in all the lists. Does anybody know why that's the case?  I've abstracted the problem to the exact part of the code that's going wrong. I've tried using different numbers and formats but the problem remains. Debugging tools don't help either.  #Strange error list_1 = [0,0] list_2 = [list_1, list_1, list_1]  list_2[0][1] = 1 print(list_2)  #Working normally list_3 = [[0,0],[0,0],[0,0]]  list_3[0][1] = 1 print(list_3)   The actual result should be that both lists have the same output of [0, 1],[0, 0], [0, 0]. However the first list returns [0, 1],[0, 1],[0, 1] whereas the second list works normally with [0, 1],[0, 0], [0, 0] returned, even though both lists should return the exact same output.

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


I use rsync to backup files to a remote server in a UNIX environment. As my local machine is the only one with write access to the backup files, I know the status of the backup files on the remote machine will not change between my backup cycles.   Can I use this knowledge to avoid comparing the files over the network each time I run my backup? Like storing a local manifest after each backup and comparing the local file system to that manifest instead of the remote filesystem? If rsync can't do this, is there another piece of software, that can?  I am looking for something similar to the --listed-incremental option for tar.   Note: The same question applies to one of my deployment scripts, where I know that the remote files won't change between deployments.   Edit to clarify the difference to #481295:   Question #481295 asks whether the rsync scan speed can somehow be improved. My question is more specific as it states that the remote server files will not change if I do not run my backup. Can I use this piece of information to make the comparing of the file list a local process. (Manifest, …?)

I'm using rsync to transfer application log files from one server to another.  It works fine with the exception that scanning the directories takes forever.  I have around 160,000 log files and a few thousand directories so I can understand why scanning takes so long.  However, only a few of those files changes at any given sync so I'm wondering if there's a more efficient way or rsync option that may speed this up?  The log files themselves are tiny (only a few kb each).   Thank you!


I know that the Jedi are not supposed to have attachments with others (so it doesn't interfere with their work) and that would effect romantic relationships.  However Force sensitivity is, at least sometimes, able to be passed on genetically.    Why hasn't there been some kind of breeding program to encourage more people with a higher level of Force sensitivity from the offspring such a program would create?

I can't seem to find a satisfactory answer to this anywhere on the web. While  poses a related question, I don't think it sufficiently answers mine...  During the opening chapters of Jedi Search, Luke addresses the new Senate on the need to find new Jedi talent, or Force sensitive individuals. During this proposal, he cites that the most fruitful leads of Jedi potential are in the descendants of Jedi Knights: as Force sensitivity is hereditary. The book even discusses the notion that Leia should be comparatively well attuned to the Force, due to her being the child of Anakin Skywalker.  I understand that the concept of the Jedi as a totally celibate and monastic order was something that was retconned into the lore after Episode II: Attack of the Clones, and that there are examples of entire nuclear Jedi families exist (such as Andur Sunrider and Plo Koon)...  But if Force-manipulative ability is passed down genetically (as a potentially mutative property of their genetic makeup), why would the Jedi order be so numerous if they practice Chastity?  Even if procreation is not expressly forbidden (as in the pre-retcon Expanded Universe): why would Jedi need special permission to produce more Jedi potential children?  How are more Jedi created, if not through procreation? Has their profusion been deliberately retarded, and if so why? is there another explanation for their (pre-empirical) plenitude?


I tried to use left:calc(width:/2); but it didn't work. is there any way to use "calc" to controll the left and right css properties? I also tried using webkit, but it didn't work.

How can I horizontally center a
 within another
 using CSS?

Foo foo