According to the .     Whilst it is possible to create Inferi, these are mindless creatures with no soul or intelligence, despite possessing human corpses and hence are not truly "raised" persons. Therefore, Necromancy does not work in this respect and it is indeed known to be impossible to truly resurrect the dead.   However, I am not fully sold on the legitimacy of this article. It seems under developed to me. It also fails to mention any ways besides magic (creatures, items, magical plants) to revive the dead.   Is there any canonical information that has been mentioned either by Rowling or the Harry Potter Universe that either eliminates the possibility, leaves it undetermined, or confirmed it?   *Note: Please do not use the wiki as the main reference in an answer, as I have already looked at that source and feel that it does not answer the question fully.  *Note: I do not feel that this is a duplicate of the other necromancy question. The answer that were given to that were more reanimated dead - zombie oriented, I want dead people becoming living again.

How is Necromancy accomplished in the Harry Potter universe?  I thought that people cannot be raised from the dead in Harry Potter.  Were bodies just use as puppets that can only do simple tasks, for instance when Dumbledore and Harry were getting the locket, the  were there to guard the locket.  Also, besides Inferi were there any Zombies in Harry Potter?


I wish to know if I will need a transit visa to pass through Heathrow Airport. I will be visiting my kid sister in Spain on Friday August 19, 2016 using Norwegian Airlines to be back again in Denmark Sunday August 21, 2016 using British Airways.   My transit time is 4 hours 20 minutes at Heathrow Airport before my departure to Denmark where I have been living for 16 years and have a permanent resident.

Is there a website or some other way to find out if I need a transit visa for a short stop in the UK on my way somewhere else? Ideally this should give me the answer for all nationalities, and take into account any other visas I may have.


I have a slide show use setInterval 5sec, each slide should stop 5 sec.  When user click previous button, slide will go back previous image.  My problem is when user click previous, time still counting. (previous image only stop 3sec not 5sec)  Is any way to reset time when user click?  setInterval(function(){   //start slide... },5000);   $('#previous').click(function(){     //go back to previous slide and reset time });

I am using setInterval(fname, 10000); to call a function every 10 seconds in JavaScript. Is it possible to stop calling it on some event?   I want the user to be able to stop the repeated refresh of data.


In Google Webmaster Tools looking at a new clients site, I'm seeing sitemap errors that I haven't seen before with this message:     Some URLs listed in this Sitemap have a high response time. This may   indicate a problem with your server or with the content of the page.   See the following screenshot:    I submitted the sitemap again but it keeps coming back. Any Ideas what could be causing this?

In my Google Webmaster Tools account, there are warnings about my site.     Some URLs listed in this sitemap have a high response time. This may indicate a problem with your server or with the content of the page.   What is the solution?


#include <stdio.h>  int main(){     int l,m,q,j;     char option;     scanf("%d",&q);     printf("%d\n",q);     for(j=0;j<q;j++){         scanf("%c %d %d",&option,&l,&m);         printf("%c %d %d",option,l,m);     }     return 0; }   Output:  3(Input) 3 C 1 4(Input)   0 -374066224C 1 4   What is wrong with the above code? It is not giving the expected output.

I've been having a lot of problems trying to figure out how to use scanf().  It seems to work fine with integers, being fairly straight forward scanf("%d", &i).  Where I am running into issues is using scanf() in loops trying to read input.  For example:  do {   printf("counter: %d: ", counter);   scanf("%c %c%d", &command, &prefix, &input); } while (command != 'q');    When I enter in a validly structured input like c P101, it seems to loop again before prompting me.  This seems to happen even with a single:  scanf("%c", &c)    in a while loop.  It'll do the loop twice before prompting me again.  What is making it loop twice, and how do I stop it? When I enter in less amount of input that programmatically wouldn't have another character or number such as q, pressing enter seems to prompt me to enter more.  How do I get scanf() to process both single and double character entries?


Hy, I hope everyone is doing well. I just recalled a problem that have been bothering me. I have already posted it here  but it seems that I still can not figure out how to complete the solution formalized by DLeMeur, he used the fact that $\frac{s_{n}}{\sqrt{n}}$ has limit sup $1$ and limit inf $-1$, which is incorrect actually it is $+\infty$ and $-\infty$ so the argument seems to fail.  Is it possible to obtain the estimate $|s_{n}| \leq C(u, \varepsilon) + (1+\varepsilon) \sqrt{n}$ by an other way ? If we manage to do so DLeMeur's idea can still work to solve the problem.   Edit: As pointed out this estimate is false, Any idea to solve the problem ?

Hy, I hope everyone is doing fine. Lately I have been studying the topic of probability, I am aiming to improve on it, recently i came across this hard problem.   Let $(u_{n})$ a sequence of random independent variables identically distributed following Rademacher distribution. And let  $f(x)=\sum_{n \geq 0} u_{n} x^{n}$.  Prove that : $$ f(x)~~\text{almost surely has infinitely many zeros  in}~~ [0,1].$$   I have been stuck on it for weeks now, but I did find out a hint to solve it on a forum by searching about it, Here is the hint:  Construct an increasing sequence $(x_{k})$ such that the event $A_{k}=\{f(x_{0}),...,f(x_{k}) \text{are not zero and have the same sign} \}$ are such that $p(A_{k+1})\leq \frac{6}{7} p(A_{k})$.      I find it difficult to construct by induction such sequence in a way that may permit us to solve the problem. Any proposition is welcome.


I am using Ubuntu 12.04 and have a multitouch capable screen (3M MicroTouch USB controller) but can't get any touch events inside a browser window (Firefox or Chromium).  I see all gestures with geistest -w WINDOWID program. I have a multitouch demo tetris program which works. So basically the touch screen is supported on a lower level, but both browser applications don't get any touch events, only mouse events.  What do I have to do to get a proper setup for this?

Just installed 14.04. It seems to be converting all my screen touch gestures to mouse gestures. And it only supports one point touch. It is supposed to support ten touch points (tested with windows 8.1).  Am I missing something here? Do I have to install some kind of package? Or is it just not supported?  Test - being able to draw here:


I have been struggling to install Ubuntu on my laptop, I want to make a dual-boot Windows/Ubuntu, but I just can't install it. Already changed my BIOS to AHCI and UEFI, but had no effects so far. During the installation processes, I´m not even given option to install alongside Windows. After setting language and Internet connection it jumps directly to this screen.  It is also very strange because I can find it when using sudo lshw -class storage -class disk. What should be my next steps? Just to help you guys this is the data from GParted:      *-storage                   description: SATA controller    product: 7 Series Chipset Family 6-port SATA Controller [AHCI mode]    vendor: Intel Corporation    physical id: 1f.2    bus info: pci@0000:00:1f.2    version: 04    width: 32 bits    clock: 66MHz    capabilities: storage msi pm ahci_1.0 bus_master cap_list    configuration: driver=ahci latency=0    resources: irq:26 ioport:5088(size=8) ioport:5094(size=4) ioport:5080(size=8) ioport:5090(size=4) ioport:5060(size=32) memory:c3617000-c36177ff     *-scsi:0    physical id: 1    logical name: scsi0    capabilities: emulated  *-disk       description: ATA Disk       product: WDC WD7500BPKT-7       vendor: Western Digital       physical id: 0.0.0       bus info: scsi@0:0.0.0       logical name: /dev/sda       version: 1A01       serial: WD-WXA1A9147643       size: 698GiB (750GB)       capabilities: partitioned partitioned:dos       configuration: ansiversion=5 sectorsize=4096 signature=dd6865b6     *-scsi:1    physical id: 2    logical name: scsi1    capabilities: emulated  *-disk       description: ATA Disk       product: SAMSUNG SSD PM83       physical id: 0.0.0       bus info: scsi@1:0.0.0       logical name: /dev/sdb       version: 2D1Q       serial: S0XLNEAC403642       size: 29GiB (32GB)       capabilities: partitioned partitioned:dos       configuration: ansiversion=5 sectorsize=512 signature=17fdf2ea     *-scsi:2    physical id: 3    logical name: scsi2    capabilities: emulated  *-cdrom       description: DVD-RAM writer       product: DVD+-RW DS-8A8SH       vendor: PLDS       physical id: 0.0.0       bus info: scsi@2:0.0.0       logical name: /dev/cdrom       logical name: /dev/sr0       logical name: /cdrom       version: KD11       capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram       configuration: ansiversion=5 mount.fstype=iso9660 mount.options=ro,noatime state=mounted status=ready     *-medium          physical id: 0          logical name: /dev/cdrom          logical name: /cdrom          capabilities: partitioned partitioned:dos          configuration: mount.fstype=iso9660 mount.options=ro,noatime signature=6a6216fc state=mounted

I'm having a problem installing Ubuntu, and Kali as well. I downloaded the iso from the official site & tried installing using USB. I also tried desktop installation, but the problem is same.  It shows a single drive i.e. my total Hard Disk and if I select it, it asks me to create a new partition & shows total space as FREE.  It's with all Ubuntu I downloaded, 11.10 Server, 12.10 and 13.04. I also tried to install BackTrack's new version Kali Linux but again I got the same problem.  I hope I meet thier system requirements. Here's my system details for your ease:   OS: Windows 7 Ultimate Processor: Intel P4 2.80 GHz RAM: 3GB Hard Disk: 320GB No of Local Drives: 4 (1 Primary, 3 Logical) Free Space: 195GB (about) Motherboard: G31 Cache: 1MB Help me, please.


Everything I've heard (including from Microsoft) says you should never shrink a database. Yet a software vendor (Symantec) is telling us to do DBCC SHRINKFILE on the SQL 2012 databases and logs related to a product of theirs called Enterprise Vault.    Should I follow the recommendation of Symantec and shrink or the recommendation of Microsoft and everyone else to not shrink?

I know shrink is the devil: It reverses page order and is responsible for skin cancer, data fragmentation, and global warming.  The list goes on... That being said, say I have a 100 GB database and I delete 50 GB of data -- not on one table, but a general pruning of old data on a database wide level, covering 90% of the tables -- does this constitute an appropriate use case for shrinking the database?  If not, what are the appropriate steps to take to clean house after removing such a high percentage of data from a database?  I can think of two: Rebuild Indexes and Update Stats. What else?


I have a WPA2 WiFi network at my place. My laptop has an unstable WiFi connection with the network. It randomly disconnects, and may or may not connect again. Some times it does not connect at all. Sometimes it disconnects whenever I attempt a relatively heavy download. I have linked two outputs of a diagnosis script.  Vaio running 16.04. Intel(R) Wireless WiFi 4965 driver for Linux.  Connected:   Disconnected:   How can make the connection more stable?

Possible Duplicate:          We run Ubuntu 12.04, 32bit, with the current kernel 3.2.27-generic on an MSI EX700.  I've already added the , without whcih, wireless has been unusable.  Now, it works OK, but speedtest shows:  Windows XP - down 11.68mbps, up 2.07mbps  Ubuntu 12.04 - down 2.06mbps up 2.0mbps   We've disabled ipv6, tried static and dinamic IPs, tried both swcrypto=0 and swcrypto=1 options, none of whcih made any difference.  The problem may be the symptom of high packet loss. For example, here's the output of iwconfig after booting and testing the speeds:  wlan0     IEEE 802.11abg  ESSID:"amu"         Mode:Managed  Frequency:2.462 GHz  Access Point: 00:78:9E:FA:32:C8          Bit Rate=54 Mb/s   Tx-Power=15 dBm          Retry  long limit:7   RTS thr:off   Fragment thr:off       Encryption key:off       Power Management:off       Link Quality=58/70  Signal level=-52 dBm         Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0       Tx excessive retries:11  Invalid misc:3627   Missed beacon:0   I've posted a  before with lots of technical info and outputs.


Let $R$ be Noetherian domain. For $f,g \in R$, define the ideal $I_{fg}=\{h\in R \mid hg\in(f)\}$. Prove $R$ is UFD iff $I_{fg}$ is principal for all $f,g\in R$.   I'm stuck at this problem. The condition for a ring to be UFD on top of my head is Kaplansky's theorem. However I don't think I could make use of that theorem here since it involves considering all prime ideals. Also I don't really know how to make use of $R$ being noetherian. Any ideas to prove this?

Let $R$ be a Noetherian integral domain. For $f, g \in R$, define $(f):(g)=\{h \in R \mid hg \in (f) \}$. Sow that $R$ is a UFD if and only if $(f):(g)$ is principal for all $f,g \in R$.   It is easy to show that $(f):(g)$ is an ideal. For the forward direction, I suspect that I need to use the fact that $R$ is Noetherian to show that $(f):(g)$ is principal. For the reverse direction, I know that if every $(f):(g)$ is principal then the ring $R$ is a PID. But I don't know how to proceed. Any ideas?


Build a set $A\subset \mathbb{R}$ so that for all interval $[a,b]\subset \mathbb{R}$  meets the following two properties:   $\lambda(A\cap [a,b])>0$. $\lambda([a,b]\setminus A)>0$$   Where $\lambda$ is Lebesgue Measure.  The true is thatI do not have any idea how to build this set A. I hope can help me. Thanks!

This is from problem $8$, Chapter II of Rudin's Real and Complex Analysis.  The problem asks for a Borel set $M$ on $R$, such that for any interval $I$, $M \cap I$ has measure greater than $0$ and less than $m(I)$.  I was thinking of taking the Cantor approach: taking $R$ to be the union of $[a,b]$ with $a$ and $b$ rationals, and for each $[a,b]$ we construct Cantor sets inside it. During theconstruction of each Cantor set, in order to have positive measure on it, we need to take off smaller and smaller intervals from it, namely the proportion goes to $0$. As a result, these Cantor sets are extremely "dense" on their ends. If for an interval $I$ it intersects with the Cantor set on $[a,b]$ while $b-a>>m(I)$, we shall expect the measure of intersection to be rather close to $m(I)$ and then we lose control on these cases.  Is there any way to fix this or shall I consider other approaches?  Thank you


I'm working on a PHP based project. I want to secure passwords using my machine's private key - something one shouldn't be giving away anyway. So I thought it might be a good idea. However, the OpenSSL API within PHP is a bit confusing.  Can someone point out a way I can store and later validate a user's password? With "store", I mean that during the user's registration, the password entry is created and stored, and with "validate" I was meaning to pick up the password and validate it against the entered string.  I tried to find a Composer library, but my installation of PHP is missing ext-mcrypt since I did not compile it in.

When a PHP application makes a database connection it of course generally needs to pass a login and password. If I'm using a single, minimum-permission login for my application, then the PHP needs to know that login and password somewhere. What is the best way to secure that password? It seems like just writing it in the PHP code isn't a good idea.


Without going deep into mathematics and simply using symmetry arguments I made the following observations-  An electron has a probability of being at a particular position Let's take the 1s orbital of a Hydrogen like single electron species and a uniform sphere at some distance $r$ from it. By Symmetry we can conclude the electron is equally likely to be present at any point on the sphere. Hence for any point P on the sphere there will be a diametrically opposite point Q passing through the nucleus where the electron is equally likely present. Let's say at 2 different times the electron is actually present there so for those instants the mass of electron is present at that point. All of this happens very quickly in fractions of seconds it can be on some point and then at another so for an observer it would seem it's present at multiple points right? If the observer then tries to calculate the average position of the electron taking symmetry arguments wouldn't it lie on the nucleus itself as the average of two diametrically opposite points is the midpoint of the diameter i.e. the nucleus.  With this isn't this somewhat similar to saying the Centre of Mass of the electron lies at the nucleus as the centre of mass is the point where we can assume the mass to be concentrated and we can take similar symmetry methods to calculate say the centre of mass of a uniform solid sphere to be at the centre. This is just something I thought of a while ago, does this make sense to conclude? Also if I were to extend this to multi electron species how would the reasoning go? How would I incorporate the effects of other electronic interactions? Edit: As pointed out by  in the comments the assumption that the electron is at a particular position is wrong, however even if we leave out that part i still feel the symmetry argument should hold

I read Griffiths EM today and it says something very interesting but a little bothering to me. It states for an atom, the position of center of mass of an electron cloud lies in the center of the proton.  But my question is why? What will happen if this is not true?


I am working on a raytracing Java program for fun. Here's one rendering:   As you can see I still have to implement anti-aliasing (and there are huge geometry problems I won't get in to). How would one go about this in a raytracing program, where the renderer doesn't really render lines, but individual pixels? Is it even possible? For example, in a scanline rendering, you could apply anti-aliasing after filling a triangle. But in a raytraced rendering, the program works pixel-by-pixel, and doesn't know where object's edges are, or where to smooth things out.  Thanks

After reading a few articles online I can confidently say I am clueless on how Anti-Aliasing works when using Ray Tracing.  All I understand is that A Single Pixel/Ray is split into 4 sub-pixels and 4 rays rather than 1.  Could somebody please explain how this is done (preferably with code)?


"What (are:A) you talking (about:B)? (I'm:C) not (understand:D) you."  At first, I thought C, so the sentence would be "What are you talking about? I don't understand you." And I chose C because I believe "understand" is a state verb doesn't accept "ing".  But then some dudes said to me that D is definitely the correct choice, so the sentence would be "What are you talking about? I'm not understanding you."  So what do you say and why?

Which sentence is correct?   What are you talking about? I don't understand you.   or   What are you talking about? I'm not understanding you.


How do I know my image is altered or not? Is there a tool or a method to know all the related stuff to the photo from Metadata or something else?  P.S: Sometimes using a Hex Editor like Hiew will give you more info than Photoshop or exiv2 tool.  EDIT: Why I can See EXTA info with the hex editor like Camera type or Author and can not see them with exiff tools ?

How can I tell if a photo has been edited or manipulated? Are there techniques for distinguishing real photos from fakes?  Are there software tools that can help? Are there things I can do in Photoshop or other imaging software which will help reveal the truth?


I have a Dell notebook that originally had only Windows 10 (~800 GB partition). Then, I've installed Ubuntu 16.04 (200 GB partition) in dual boot with windows. So far so good.  Now, I'd like to remove completely the Windows and the dual boot and add that space to my current Ubuntu partition.  So, what I need, is a way to remove the windows from the HD and make my hd only Ubuntu WITHOUT messing with the current Ubuntu installation (only increase the HD space), so that I don't have to install/configure all my work tool's again.  Is it possible?  Thanks

I have removed Windows 7 using GParted, and want my computer to boot straight into Ubuntu, but I still get the dual boot screen, how can I fix this?


I HAVE tables in this test code:  table WORKER -> name varchar(50)      , spec varchar(50) UNIQYE  table KEYGEN- > id INT AUTO_INCREMENT , year varchar(50)  spec should be like = 2009/54.  CODE: for checking and reseting (truncating) keygen table.  $insertedid=""; //to put last inserted id from keygen  $spec="";   //spec number generated from year + $insertedid in table keygen $year=date("Y");  //current year  $query="SELECT * from keygen WHERE year='{$year}' ";      if($noviRed=$mysqli->query($query))     {         if($noviRed->num_rows==0)         {             $truncate="truncate keygen";                  if($mysqli->query($truncate)) {echo"<h2> TRUNCATING  TABLE OK </h2>";}  else { exit("fatal error");}              $query2="INSERT INTO keygen(year) values('{$year}') ";                 if($mysqli->query($query2)) {$insertedid=$mysqli->insert_id;} else {exit("fatal error");}         }         else         {              $query2="INSERT INTO keygen(year) values('{$year}') ";                 if($mysqli->query($query2)) {$insertedid=$mysqli->insert_id;} else {exit("fatal error");}         }     }     else {exit("fatal error");}   CODE: for inserting data into worker table.  $spec=$year."/".$insertedid; //generating spec number  if($insertedid!="" AND $spec!="")    {     $query3="INSERT INTO worker(name,spec) values('{$name}','{$spec}') ";         if($noviRed=$mysqli->query($query3)){echo"<h1>SUCCES </h1>";}     else {exit("fatal error");} }

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


I was just watching a documentary a few days ago of the most famious boxing match's ever the "Thrilla in Manilla"(between joe frazer and Mohammed Ali), quite an interesting and motivating vedio to watch.   Well in the 13th round (the fight from the 3-13th round was dominated by Joe frazer.) Joe frazer really had Ali against the ropes and was hammering him with right and left hooks, uppercuts and what not , now in the documentary , one of the commentators famiously said      "He(Frazier) was't just 'beating Ali' , he was 'BEATING Ali UP' !!" .   I did't quite understand what that statement meant , whats the difference between "beating Ali" and "beating Ali up" ? Can anybody explain ?   Thank you.

Many times I heard people say that "beat up someone". But on the internet, I can only found this definition which does not seem matching with the word beat up in the above sentence  "beat-up:(of a thing) worn out by overuse; in a state of disrepair."   So, what does the preposition "up" mean in "He got beaten up by other kids in school"?  Note: "beat" means "strike repeatedly" & "beat up" also means "strike repeatedly". So, "up" should have a certain meaning and what is the difference between "beat" and "beat up"?


On a machine I used at my old job, I had a little taskbar app (which I'd configured to be the default browser) installed that allowed me to configure e.g. Slack links to open directly in Slack, and the same for other apps, and all other links to open in Firefox as usual. It helped prevent loads of tabs piling up (e.g. click a link in Slack, it opens a tab in the browser which then opens up some other app, ugh). It essentially acted as a little configurable router for any link clicked in apps. It worked great, but now I'm trying to find it again and I can't remember what it was called or how I found it. Does anyone else know what I'm talking about?

Safari is my default browser, and I like it that way. But I want to open Google URLs (Google Docs, YouTube, etc.) in Chrome by default, e.g., when I click on a link in Mail. Is there a system-level way to set the default browser for a sub-set of domains?


I am stuck trying to find the minimum polynomial of $\sqrt[3]{9} + \sqrt[3]{3} - 1$ over $\mathbb{Q}$. I have tried using  method and  method but none of them seem to be working in this case. Can anyone give me a hint?

Find the minimal polynomial for $\sqrt[3]{2} + \sqrt[3]{4}$ over $\mathbb{Q}$  I havent covered galois theory, this is an exercise from the chapter algebraic extensions in gallian.  I can see that $\sqrt[3]{2} + \sqrt[3]{4}$ $\in \mathbb{Q}(2^{1/3})$, after this I am clueless.  Need hints will finish the proof.


Why >file 2>&1 works but 2>&1 >file doesn't? BTW there is no syntax error.

I was trying to redirect both stdout and stderr to a file today, and I came across this:  <command> > file.txt 2>&1   This apparently redirects stderr to stdout first, and then the resulting stdout is redirected to file.txt.  However, why isn't the order <command> 2>&1 > file.txt? One would naturally read this as (assuming execution from left to right) the command being executed first, the stderr being redirected to stdout and then, the resulting stdout being written to file.txt. But the above only redirects stderr to the screen.  How does the shell interpret both the commands?


I am trying to find a formula that I can use to find out what my consumption will be based on what the temperature might be, based on the comparison of what the consumption/temperature has been in the previous years. How else would I know if I made an energy efficiency improvement has worked?  I can't use energy consumption alone as the savings could have been a product of a milder winter. Which is why it needs to be normalized in comparison to the average temperature for that month.  So, if we made an improvement to the thermal efficiency of the roof and would have previously consumed 300mw of power in the month of December; but instead are consuming only 200mw. How do I mathematically prove that it was due to the efficiency of the new roof and not a milder winter.  Where would I find resources to help me with these types of calculations and formulas?  *note: I understand formulas written in Excel type format better than the customary graphical layout.  Example Historical data is as follows: Year/Avg Temp for Month/Electrical consumption 2014,12c,300mw 2015,-8c,450mw 2016,-4c,400mw


I have earned points on Stack Exchange for Database related. How do I transfer those points to dba.stackexchange?

I use the Stack Exchange sites very often to find solutions to problems and help me with decision-making.  In some sites I have asked question and received answers, and I have more than 15 reputation. On Stack Overflow I have always found answers to my questions and never needed to post a question (avoiding duplicate questions). However, I would like to vote for the answers that helped me but I do not have the ability to do that, due to low reputation.  Posting a question or answering an answer on each site seems like the only way to get enough reputation.  Since I have no input to give in these areas unless they will be counted as duplications, many answers that I have already used are missing my vote.  I suggest to take into account all of the reputations from all Stack Exchange sites for voting, or thinking about a different way to allow votes.


I have asked my friend Auto Hot Key (call him Hottie) to help me with mining unicoins, but he was so fast in clicking, that rocks soon stopped to contain any coins. How I can politely ask them to give coins again?

I'm using the auto-mining script from one of the meta posts here and it doesn't works!  At first I got steady returns but the returns seem to diminish over time. Using Fiddler I confirmed that the server seems to release less and less coins.  This is unacceptable! I am a loyal customer paying nothing and I demand that my auto-mining script continues to yield returns forever!  If you cannot deliver on that please refund what I have payed for using this site.  Plz advise!    In case you didn't notice: This is a parody of over-demanding, leeching askers on Stack Overflow.


Hi While executing the command at root -  apt-get install alien    I get below errors (page not found)  Can you please fix / help   Err http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libc-bin i386 2.15-0ubuntu10.6   404  Not Found [IP: 91.189.91.13 80] Err http://security.ubuntu.com/ubuntu/ precise-security/main libc-bin i386 2.15-0ubuntu10.6   404  Not Found [IP: 91.189.91.14 80]

PPA seems to be constantly offline. Whenever I use sudo apt-get update, this error is shown:  W: Failed to fetch http://ppa.launchpad.net/ 404  Not Found   How do I fix these errors?


While messing with modulus in python,  lomod = [num % 27 for num in [i * 8 for i in range(27)]]   print('Unsorted:', lomod)   lomod.sort()   print('Sorted:', lomod)  I found something interesting. For $a,b\in\mathbb{Z}$, and $a,b$ are relatively prime, and $0 \le x < b$, $A =ax\mod b$, then $A = \{0,1...,b-1\}$ with no repeating integers. For example in the case of $a = 8, b=27$, for values of $x$ such that $0\le x < 27$ $A =8x\mod27$ ,  then $A =$ [0, 8, 16, 24, 5, 13, 21, 2, 10, 18, 26, 7, 15, 23, 4, 12, 20, 1, 9, 17, 25, 6, 14, 22, 3, 11, 19] sorted, $A =$ [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26] Which contains all values from $0$ to $26$ once. However, I don't know how to prove this generally. Is there anyone that can help me?

How can I prove that $\,ax\equiv b\pmod{\! n}\,$ has a unique solution if $\,\gcd(a,n) = 1$?  I suspect that the Bezout identity for $\,\gcd(a,b) = 1$ is the key but I don't see how to proceed.


const updateSearchTopStoriesState = (hits, page) => (prevState) => { const { searchKey, results } = prevState   Can anyone explain to me what does the above do? why is there 2 arrow functions?  This is the whole code  const updateSearchTopStoriesState = (hits, page) => (prevState) => { const { searchKey, results } = prevState; const oldHits = results && results[searchKey] ? results[searchKey].hits : []; const updatedHits = [ ...oldHits, ...hits ]; return { results: { ...results, [searchKey]: { hits: updatedHits, page } }, isLoading: false }; }; class App extends Component { ...

I've seen references to curried functions in several articles and blogs but I can't find a good explanation (or at least one that makes sense!)


According to the accepted answer of , there are only 13 zip codes in two states.  Reading down further on the page, though, you can see that back in 1994, there were 153 zip codes that cross state boundaries.  That response doesn't actually tell you what the 153 anomalous parties are, though.  Another response right above that one from 2016 found and listed 93 multi-state zip codes, but is missing at least one code that I know of.  The more correct answer of 153 is still quite dated, though, so I resubmit the question - how many US Zip codes span state boundaries and what are they?

I'm using a zip code listing, and I am curious to know how many (or which) zip codes map to more than one US state or US city?  For instance I know that Zip Code 42223 resolves to US Army, Fort Campbell which straddles the KY-TN state line. Oddly, the google API only returns TN for that state corresponding to that zip.


I recall that, as a child, I purchased a science fiction anthology of short stories in British Home Stores (BHS) sometime in the mid 1980s. It had a reddish-orange cover with white writing and drawn pictures of aliens, space ships, etc. and I suspect it may have been specially made for BHS as well.  It was about an inch or so thick and must have contained 20-25 stories from various authors.  I never got around to reading most of the stories but one I recall reading was about a ship automatically being prepped and armed, taking off and bombing an enemy city. The conclusion was that all the people had been wiped out and the systems kept the war going automatically because there was nobody left to turn the machinery off.  I've been thinking about that book recently and resolved to find it (or the stories at least) and get around to finally reading it.

I'm trying to find the name of a book I had as a kid back in the 80's/90's that was a collection of science fiction short stories and in particular one story in it.  The book: I remember the cover being mostly orange with the face of an alien taking up most of the cover. Scaly looking 'grey' style alien with hooded green eyes. They may have also been a 60's/70's style space ship in the background with a man and woman.  The story: Was set after all human life had ended in a great war and the story followed one of the many autonomous bombers still flying the skies carrying out their missions repeatedly bombing already leveled cities. At least that's how I remember it.  Any help/clues you can give would be much appreciated as I'd love to share these stories with my kid.  Some other stories it had, if any of these can be identified it might help me find the book:   Two guys talking in a room and one give the other a wooden carving of an apple and starts telling him the history of the object and how it's used to hypnotise people who hold it as they can't resist stroking it and it puts them in a catatonic state. A bunch of robots/machines wandering the post-apocalyptic country side, free of their duties to mankind. Their adventure comes to an end when they run into a hermit living in the country and their programming kicks in and they immediately become his servants. A story about first contact with an alien race, the aliens come to earth and land at the coordinates of an air-force base but upon arrival there is confusion as the humans cannot see the aliens and the aliens cannot see the humans. The aliens complain that they've been tricked and that their ship is sinking. The humans think this is strange until they realise the aliens are incredibly small and have landed in a puddle on the airfield.


If I cast  and my opponent chose money, if I were to target their , can I attack with it immediately?

Note: this is intended to be a canonical question about summoning sickness.  "Summoning sickness", broadly, is the rule that stops you from attacking or paying {T} costs with a creature that you just played. But how exactly does it work? How does it interact with other rules and effects?  For example, if I'm trying to figure out how a creature is affected:   Does the status matter (tapped/untapped, face down/face up, etc.)? What if it came into play, but I didn't cast it? What if it's a token? What if it was on the battlefield when my turn started, but it wasn't a creature? What if it stops being a creature? What if it's a creature and also another card type? What if it's a double-faced card that just transformed? What if it changes control? What if it's a copy of another creature? Which of the creature's activated abilities can I use? Are any of its other abilities affected? Can I tap the creature to pay a cost that is not a {T} cost?   (These examples are primarily taken from questions about summoning sickness that have already been asked on the site)


I wrote this sentence:     Why wouldn't it be valid?   --and I realized that without the contraction it becomes:     Why would it not be valid?    As opposed to "why would not it be valid," as the contraction would imply.  What's going on here? Why can I contract across the middle word this way? Or, to put it the other way, why can't I "de-contract" this without moving the not over by a word?

I have found multiple questions touching on this but not a single one that has a comprehensive answer. The information is all there but in little bits.     etc.   Exactly why is "Do not you sleep?" ungrammatical (except in poetry/with artistic license)? I understand that not can't contract after you: "Do you not sleep?" because not can only contract after a verb, and that it always does after do: "Don't you sleep?" but why does it (why must it) contract if it's placed after the verb in a question?   Don't you sleep? (common form) Do not you sleep? (ungrammatical) Do you not sleep? (less common form)


Due to corona lockdown, I'd like to try macro photography. I have two lenses (18–55 and 35 f/1.8) and a Nikon D5300. As I currently do not have the money to buy a real macro lens, I found 3 cheaper ways:  Reverse Ring adapters, extension tubes, and macro filters. I considered building my own extension tube (I found ), but the problem is that my lenses don't have manual aperture control. Does that mean that I'm fixed to the smallest aperture? I found some sort of switch on the lens that lets you control the aperture, but it will be hidden inside the extension tube?  Any tips? I couldn't find "real" extension tubes with electric contacts for Nikon, at leat not in my price range. I'm also aware that reverse ring adapters and macro filters exist, but I decided to stick to extension tubes due to the rear element exposed with reversed lens and lower image quality with filters.

I was wondering what are the alternative macro techniques people use instead of buying expensive macro optics. I know about single lens reverse macro technique; what other alternative techniques allow you to do quality macro within a budget? If yes:   What is it called? What equipment do you need and (if any) where to buy them? Does it support AF/Aperture dial? What are the risks associated with it? What are the disadvantages of the technique? What are the Advantages in your opinion?   Feel free to add your own comments if you want, following the points.  This is a community wiki post, so please put one answer per post, and feel free to improve an item originally posted by someone else.


Let's say I have a summoned eagle (or anything else with multiple NAs). Eagles have 3 primary attacks (2x Talons, 1x Bite). I want to understand the consequences of the various actions I can take, this is my current understanding:   Full Attack Action: With a full attack action I can take all 3 primary attacks at their regular bonus with their regular damage. All the attacks remain primary attacks and are not considered secondary attacks. Similarly any secondary attacks would still be considered secondary. Standard Action: With a standard action I can make one attack. If the attack is a primary attack it remains so. If the attack is a secondary attack it also remains so. Full Attack Action (with a sword): Let's assume I got my eagle a tiny sword that it can somehow wield (using one of its talons I guess). Now with a full attack action I can stab with the sword at full BAB (+0) and take each natural attack (presumably not including the one in the talon wielding the sword) as secondary attacks (-5 to hit, -1/2 str bonus).   Is this correct?

Okay, I need some clarification. The  state this about natural attacks:     You do not receive additional natural attacks for a high base attack bonus. Instead, you receive additional attack rolls for multiple limb and body parts capable of making the attack (as noted by the race or ability that grants the attacks).   Let's say that I can shape into an . My BAB is +8/+3 and STR 5. An Oliphant has two natural attacks: Gore and Stomp (x2).  Reading the rules, it seems that I can't do two Gore attacks, like:   1st attack: AB +13. DAM 2d8 + 5 2nd attack: AB +8. DAM 2d8 + 5   because I don't get additional attacks for a high BAB. Does that mean I need to combine attacks instead? Example:   (Gore) 1st attack, AB +13. DAM 2d8 + 5 (2 Stomps) 2nd attack, AB +6*. DAM 2d6 + 5 * With the Multiattack feat, reduces secondary weapon penalty to −2.   Also, does the damage from the two stomps equal 2d6 + 5, or should I roll damage for each stomp? (1st foot = 2d6 + 5, 2nd foot = 2d6 + 5).


I am trying to create a view that groups by a particular column (let's say BRAND) and all instances of a 2nd column (let's say COLOR) for each BRAND, grouped in a single cell and separated by semicolon. It's hard for me to put it in words but this is what I am looking for:  FROM THIS TABLE  |BRAND  |COLOR  | |-------|-------| |TOYOTA |BLUE   | |NISSAN |BLUE   | |FORD   |BLUE   | |NISSAN |RED    | |NISSAN |GREEN  | |FORD   |RED    | -----------------   TO THIS VIEW  |BRAND  |COLOR          | |-------|---------------| |TOYOTA |BLUE           | |NISSAN |BLUE;RED;GREEN | |FORD   |BLUE;RED       | |-------|---------------|   I wish I could provide code but I have not come up with any ideas.

Using MySQL, I can do something like:  SELECT hobbies FROM peoples_hobbies WHERE person_id = 5;   My Output:  shopping fishing coding   but instead I just want 1 row, 1 col:  Expected Output:  shopping, fishing, coding   The reason is that I'm selecting multiple values from multiple tables, and after all the joins I've got a lot more rows than I'd like.  I've looked for a function on  and it doesn't look like the CONCAT or CONCAT_WS functions accept result sets.  So does anyone here know how to do this?


In my database I have an entry CARIÑO when I select it in database I get CARIÃO showing when I inspect element in browser. When I try to save it again in database I get error saying:     SQLSTATE[HY000]: General error: 1366 Incorrect string value: '\xC2\x91O' for column   I want to know how to fix this error in a way that it will show CARIÑO in browser and be saved again as CARIÑO into database.   In my database connection I have:  $options = array(PDO::MYSQL_ATTR_INIT_COMMAND => 'mysql:charset=utf8mb4');  //Establishes the connection $this->_connection = new PDO("sqlsrv:Server=IP;Server=$serverName,1433; Database=".DB_NAME."",DB_USER,DB_PASS,$options);   I used sample in  for using the mysql:charset=utf8mb4  And in my select I have:  while ($selected_row = $stmt->fetch(PDO::FETCH_ASSOC)) {      // $selected_row['column'] = $column;      //echo $selected_row['patlast'];//this ouputs CARIÃO      $rows1[] = array_map('utf8_encode', $selected_row);      $rows[] =  array_map('utf8_encode', $selected_row); }   The database I select from is ms sql server.  UPDATE:  After running from :  mb_detect_encoding($selected_row['patlast'], mb_detect_order(), true) === 'UTF-8' ?  $content= $selected_row['patlast'] :  $content= mb_convert_encoding($selected_row['patlast'], 'UTF-8'); echo "patlast: ".$content; // i get patlast: CARIÃ‘O echo "mb_detect_encoding: ". mb_detect_encoding($selected_row['patlast'], mb_detect_order(), true);//i get mb_detect_encoding: UTF-8

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


Should I book Viazul bus tickets on Viazul.com in advance?   There are not so many departure times - can tickets be sold out if I will come to a bus station and will try to buy a ticket few hours before departure?   Is it possible to reserve a ticket in a station for a route which is between different cities than station?   There is similar question about  but it is more about specific routes and Viazul alternatives - taxi colectivos.

I am planning a self-travel itinerary in Cuba. I read a lot already but there are still confusing aspects. As I understand the best intercity transport is Viazul but is has few disadvantages (or maybe I misunderstand how it works):   There are not so many stops (where you can get on or off) along the way, for example, I would like to visit Soroa (in the west) that seems to be along the route  but I don't see it is the list of stops on the official website. Routes are not clear, for example, I want to get to Playa Largo and I don't understand which line is it (Havana - Playa Largo shows nothing). Not so many departure times.   So I read that there is an alternative: taxi colectivo. My question is it a good alternative? Is it more flexible than Viazul? Are there better alternatives?


In Star Trek: Deep Space Nine, one of the characters, Odo is able to shape-shift into other forms, including his humanoid form. When he is in his humanoid form, he is able to form clothing. That makes sense, but what about the comm badge? That is technology and is fully functional. I don't remember that being explained in the series, so this bothers me. Other changelings also pulled this off, like when a changeling impersonated Dr Bashir for a while. To my understanding a changeling should not be able to produce technology when they change shape. But how is that possible?

Odo has a working communicator:    Is that a part of himself (like his clothes)? Or is it real but he conceals it?  I imagine it is the latter (would be hard for him to create) but I don't know if it is ever addressed.


sorry if the answer could be easy, but i really can't understand why this is giving me so much problems... I want to populate a matrix with elements of another list, but when i do Matrix[0][1] = 1 it modifies the second colums of EVERY row, instead of just the first row. I had never happened this problem before, i don't really understand. This is the code: NumAlberi = int(input()) AltezAlb = ["a"] * NumAlberi NumVele = ["b"] * NumAlberi valori = [[0] * NumAlberi] * NumAlberi for c in range(NumAlberi):     AltezAlb[c], NumVele[c] = map(int, input().split()) ListaOrdinata = [[0] * 2] * NumAlberi a = list(AltezAlb) b = list(NumVele) c = 0 print(ListaOrdinata)  while c < NumAlberi:     if c % 2 == 0:         tmp = max(a)         ListaOrdinata[c][0] = tmp         a.remove(tmp)     else:         tmp = min(a)         ListaOrdinata[c][0] = tmp         a.remove(tmp)     ListaOrdinata[0][1] = 1     c += 1     print(ListaOrdinata, a) print(ListaOrdinata)```  This is the output:  [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]] [[5, 1], [5, 1], [5, 1], [5, 1], [5, 1], [5, 1]] [3, 4, 2, 4, 3] [[2, 1], [2, 1], [2, 1], [2, 1], [2, 1], [2, 1]] [3, 4, 4, 3] [[4, 1], [4, 1], [4, 1], [4, 1], [4, 1], [4, 1]] [3, 4, 3] [[3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1]] [4, 3] [[4, 1], [4, 1], [4, 1], [4, 1], [4, 1], [4, 1]] [3] [[3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1]] [] [[3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1]]  for example, at the end of everything, the last line of output should be: [[5, 0], [2, 0], [4, 0], [3, 0], [4, 0], [3, 0]] Thank you in advance

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'm developing a geographic game where you select a country and it highlights. At first I thought about using 196 images (1 for the world, 195 for each country highlight) with the same size, and the country images would only have the country drawn and the rest is transparent. That way they'd overlap perfectly.  This design doesn't feel quite right, and it would cause trouble doing hit detection on cases where a country is inside another one.  What's the best approach for this situation?

Say I had a map like the one displayed above. What would be the best method of creating a collision map for each individual state where I can click individually?


How can I use the diff command to compare 2 commands' outputs?  Does something like this exist?   diff  ($cat /etc/passwd) ($cut -f2/etc/passwd)

I'm trying to compute the difference between the output of two awk commands but my simple attempts at it seem to be failing. Here is what I'm trying:  diff $(awk '{print $3}' f1.txt | sort -u) $(awk '{print $2}' f2.txt | sort -u)   This doesn't work for reasons unknown to me. I was under the assumption that $() construct was used to capture the output of another command but my "diff" invocation fails to recognize the two inputs given to it. Is there any way I can make this work.  By the way, I can't use the obvious solution of writing the output of those two commands to separate files given that I'm logged on to a production box with no 'write' privileges.


I make many batches of crumpets and although they taste okay, I can't seem to get enough holes. I've tried adding bi-carb at various stages of proving, but it doesn't do anything. I've also tried Cream of Tartar. Again, it didn't work. Does anyone have any ideas. The recipe I use is as follows: 320g flour (maida is a plain white flour available here in India) 1 tablespoon instant dried yeast 1/2 teaspoon bi-carb of soda 1 teaspoon salt 1 teaspoon sugar 225ml warm milk 225ml warm water

What causes the texture of bread to be open, ie with lots of large holes, or close, ie a regular, uniform tender crumb with no large holes? How can I achieve either?


Proving that the order of permutations can be written as $ \text{lcm}(n_1,n_2...) $ for $n = \text{order of conjoined cycles}$, I am stuck where it says $ \pi^{n} = \text{identity}$.  Here it is explained in an answer:   I don't get it, though.

If I write (1 3 4 6)(2 3 4)(4 6 1) as a product of disjoint cycles, I get (164)(23), is it true that order of (1 3 4 6)(2 3 4)(4 6 1) is lcm(2,3)=6 (just the order of its disjoint cycles)?


What is the remainder when $4^{96}$ is divided by 6 My approach : When 4 is divided by 6 gives 4 remainder, when $4^2$ is divided by 6 gives remainder 4 ,... is it for the complete series.. that means when $4^{96}$ is divided by 6 gives 4 as remainder or is there any short cut or other answer of this question. Please suggest if there is any sort of short cut to such problems. Thanks.

Most efficient way to do this question?  $25^{37}\cong (mod 55)$  Attempt:  $25^2 \cong 20 (mod55)$  Then I don't know the best way to continue... I know how to brute force it but I'm just curious what the best way is?


I have a Logitech MX Anywhere 2. Whatever I try it seems impossible to disable the "back/forwards" side buttons on it. I've gone into the Logitech software for it and made sure they are set to "None" on both, but they still are hot. I've even tried installing an extension to my browser called BackStop and not even that has been able to disable these devil spawns. Everything as far as I can see is set to not use these buttons, but they are still doing their thing regardless of the settings. Which is more then mildly annoying to me as I'm left handed, and I don't have count of how often I've been in the middle of something and suddenly the browser jumps back so I lose everything.

I have bought Microsoft Bluetooth Notebook Mouse 5000. It's working just as I want it except that "back" button on the left side. I constantly hit it with the thumb and browser goes back. I am not used to this behavior, since my older mouse didn't have such a button. I just want to get rid of it -- disable the button once and forever, so if I clicked it -- nothing should happen.


I understand that (MyType)foo, MyType(foo), and static_cast<MyType>(foo) are somewhat similar in that the first two become the last (EDIT: I have been corrected. The previous sentence is untrue.) My question is which is the idiomatic version to use? Is context a consideration?  Since I know that C style casts are not preferred in C++, it is down to functional casts and static_cast.

I've heard that the static_cast function should be preferred to C-style or simple function-style casting.  Is this true?  Why?


All I know about multivariate regression is that there's multiple outputs.  I'd like to learn more, but I have no idea where to start because all of the tutorials that say 'multivariate regression' are mislabeled and are actually 'multivariable regression', which is completely different.  Anyone have any recommendations for a tutorial? Something like youtube or coursera would be ideal, but I couldn't find anything on youtube or coursera

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


Duplicate:  -- there are conclusive answers there. I searched before asking this, didn't find that question.   I've gone through about 5 posts about this issue. I'll go and fix it and then about a week later it starts up again. I'm sitting 10 feet away from the computer and it just started up again.   It's getting old. I need a list of things to check -- things that might be causing this behavior and how to stop them. I suspect that it is Windows Update helpfully resetting it's ability to wake up and check for updates.   PS C:\WINDOWS\system32> powercfg -waketimers Timer set by [SERVICE] \Device\HarddiskVolume1\Windows\System32\svchost.exe (SystemEventsBroker) expires at 6:46:52 PM o n 1/10/2016.   Reason: Windows will execute 'NT TASK\Microsoft\Windows\Media Center\mcupdate_scheduled' scheduled task that requested  waking the computer.

How do you stop a Windows 10 Desktop waking up from the sleeping/hibernated power state without user intervention?  For lots of users this won't be an issue but, if you sleep in the same room as your PC, then having your machine wake up at 3:30AM to download updates is irritating.


Any ideas on other polynomials I could successfully use for applying regression? My goal is a solution that has fit error strictly based on the noise. Is this possible since it is a bell-like curve? The tails can be long, short or non-existent. Am I looking for the impossible? Please note it has been a while since I have plunged this far into linear regression.   Anyway, my data points do not fit the $ax+bx^2+c$ polynomial well enough. I would like a replacement for this polynomial to apply regression (or different approach). In the following example, each point misses the fit curve by $20\%$ of the $Y$ range on average (of the data points). I looked at splines, but I do not know how to apply the regression since they look piece-wise.   Example $Y$ values (evenly spaced in $X$). It looks kind of like a bell curve. I would be applying 5 to 50 data points to determine the polynomial coefficients. Ultimately, I am interested in the best $X$ location for the peak based on the data points.     X      Y -40    -21142.1111111111 -30    -21330.1111111111 -20    -12036.1111111111 -10      7255.3888888889   0     32474.8888888889  10     32474.8888888889  20      9060.8888888889  30    -11628.1111111111  40    -15129.6111111111


In the following sentence, how would I indicate possession if the word "business'" were replaced by the name of the business: like "Fry's" or "Wendy's"?     Some business' employees are happy.   It seems strange to say that Wendy's employees are happy, since I'm referring to the business, and not just Wendy.

I don't think this has yet been covered in .  There was , however, it was not specifically talking about the case where the proper noun ends in a plural noun.  Feel free to vote to close if I am wrong.  What is the correct way to make a proper noun ending in a plural noun ending in an "s" possessive?  This frequently happens with corporations, e.g., "Dunkin' Donuts."  Should one work off of the fact that the entity is singular—suggesting Dunkin' Donuts's—or should one work off of the fact that "Donuts" is plural and ending in an "s"—suggesting Dunkin' Donuts'?  I expect that the answer might depend on dialect because some regions refer to corporations in the singular form ("Dunkin' Donuts is a company") while other regions refer to corporations in the plural form ("Dunkin' Donuts are a company").  I am specifically interested in American English, but would be interested in hearing answers for other dialects too.


Here's a classic puzzle (I think Martin Gardner talks about it somewhere, though I'm not sure exactly where):     Alice and Bob are co-conspirators. Alice is dealt five random cards from a standard deck; she looks at the cards, and then shows four of them to Bob in some chosen order. Using only the four cards and the order they are shown in, Bob must determine the identity of the fifth card.   The solution that I know of is:      Alice and Bob agree on an ordering of the $52$ cards, and a bijection between $S_3$ to $\{1,\dots,6\}$. With this information, an ordering of any three cards gives an integer between $1$ and $6$ inclusive. Now, Alice uses the pigeonhole principle to find two cards of the same suit. Without loss of generality, their ranks are $r_1$ and $r_2$ where $r_1+a \equiv r_2 \pmod{13}$ and $1 \leq a \leq 6$ (if they weren't originally, swap $r_1$ and $r_2$). Alice puts the card of rank $r_1$ first (naming the suit) and then orders the other three cards in a way that tells Bob $a$ (naming the rank).   Notice that $52$ cards is the maximum possible number that this solution works for, since it depends heavily on there being only four suits and thirteen cards in each suit. However, it seems like it wastes a fair amount of information whenever     the suit distribution isn't 2-1-1-1.   Is there a method to do this which works on a deck containing more than $52$ cards? The obvious upper bound on deck size is that Bob sees a list of four ordered cards and can deduce from it the original five cards Alice was dealt, so it it works for a deck of size $n$ we must have $$ 4!\binom{n}{4} \geq \binom {n}{5} $$ or $n \leq 124$. But that still leaves quite a gap...

Long ago someone demonstrated the following card trick with a standard 52-card deck:  (1) A volunteer selects 5 cards from a shuffled deck, which the performer does not see.  (2) The assistant puts exactly 4 of those in a pile and passes it to the performer.  (3) The performer can then identify the 5th card.  There are a few ways to execute this trick, one of which goes as follows.  (1) The assistant finds a suit common to 2 of the 5 cards, with values $x$ and $y$ modulo $13$.  (2) He then removes one of them, say $x$, such that $x-y \in [1..6]$ modulo $13$.  (3) He then puts the other one at the top of the pile.  (4) And he puts the 3 other cards after that in a permutation corresponding to $x-y$ modulo $13$.  Since (1) works by pigeonhole, (2) works because $\frac{13-1}{2} = 6$, and (4) works because there are 6 possible permutations of 3 cards, the trick succeeds. My question is whether the same trick can work with more than 52 cards. It is not obvious to me how to do so, nor compute the maximum number of (pairwise distinct) cards possible. Also, it seems to me that even if the trick can be made to work for $n$ cards, it may not work for $n-1$ cards! Any ideas?


I have downloaded the Mavericks OS X Installation and found out it did not work. It gave me this message:     This copy of the "Install OS X" application is too old to be opened on this version of OS X.   I wanted to downloaded the public beta thinking it would be nice since I heard there was no problems. I ran into lots of performance problems on the way. I would like to go back to Mavericks.

I have installed the developer preview for Yosemite.  Huge mistake. Everything in my workspace is broken.  I don't have any sort of backup image. I was wondering if I could re-download Mavericks and run the installer - would that effectively downgrade me back to Mavericks?


In the LOTR series elves, men, hobbits and even eagles are a major help to the destruction of the ring and the saving of Middle-Earth. Dwarves didn't seem to be taking much part in this war.  Am I wrong or did the Dwarves keep to themselves During the War of the Ring?

During The Great Battle of the Last Alliance, there were an estimated 100,000 elves that fought with the armies of Isildur. This was one of the first scenes in the first LOTR movie. However, in the trilogy, it appears that only a small number of elves show up to Helms Deep and overall left the majority of the fighting to the humans. Why did the elves not participate during the rest of the war?


I have a small problem where even the output shows that condition is met but in the if-then-else the else block is executed.  import java.util.Scanner; class temp {   public static String name;   public static String gender;   public static String type;    public static void main (String args[]) {    Scanner inp = new Scanner(System.in);    //Get Input   System.out.print("Are you male or female (M/F): ");   gender = inp.next();   System.out.println("");    //Check if it is valid option   if (gender == "M" || gender == "m") {     gender = "Male";   } else if (gender == "F" || gender == "f") {     gender = "Female";   } else {     System.out.println("Incorrect keyword " + gender + " detected. Please try again");     System.out.print("Are you male or female (M/F): ");     gender = inp.next();     System.out.println("");   }    //Print Output   System.out.println(gender);   }  }   I am beginner so any help will be appriciated P.S: Sorry for wrong indents

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


Techincally i know why  class need to implement serializable . Reason is writeObject method of ObjectOutputStream internally checks the "instance of serializable" before writing the state of object.   But my question is what is the need of that? writeObject method can simply write the object state whether object (whose state needs to be written ) implements serializable  or not?  As per  ,a class implements this interface to indicate that its non-transient data members can be written to an ObjectOutputStream. But again question is why class needs to implement serializable just to determine whether field is transient or not. Even a class that does not implement serialiable should be serialized (except the fields marked as transient).  Marking an object as serializable (with an interface) doesn't magically make that object serializable, it was serializable all along, it's just that now you expressed something that the system could have found on his own, so I see no real good reason for serialization being the way it is now.  Why class need to implement serializable marker interface to serialize the class?

We work heavily with serialization and having to specify Serializable tag on every object we use is kind of a burden. Especially when it's a 3rd-party class that we can't really change.  The question is: since Serializable is an empty interface and Java provides robust serialization once you add  implements Serializable - why didn't they make everything serializable and that's it?    What am I missing?


I bought an  (NVIDIA GTX, 1 TB SSD, i7, 16 GB RAM). I want to install Ubuntu with a bootable USB, as I did in my last laptop, but I have read that I will have trouble with NVIDIA and WiFi conflicts.   Also, this machine has some apps that are not available on Linux, such as PredatorSense (fan control), and Waves MaxxAudio (sound control equalizer).   Does anyone knows about a method to install Ubuntu on this machine?

I have a device on which I would like to install Ubuntu. How do I find out if Ubuntu will work on it?


Why "on a plane", "on a bus", but "in a car"?  It's hard to explain. How to explain that to English learners?  This question is not a duplicate. Please, try to understand what I ask.  How to explain that to English learners.  With the examples I gave.

Examples:   In a car, van, etc. On a bus, boat, motorcycle, etc.   How can one decide which preposition to use? Is memorization the only way or is there a better way?  Note: People generally explain this by either distinguishing between open and closed vehicles or between large and small vehicles. However, the examples I've given defeat both explanations.


I wanted to build a little command to show me the different lengths of spaces. Sadly I am having problems with \verb accepting my parameter. \documentclass{article} \usepackage{listings}  \begin{document} % this works: $I\ I$ \verb|'\ '|  % interpretes the spaces %\newcommand{\genLine}[1]{$I#1I$ & \texttt{'#1'}\\}  % doesn't work with command %\newcommand{\genLine}[1]{$I#1I$ & \verb|'#1'|\\}  % package listings has problems with the '\' \lstset{language=Tex} \lstMakeShortInline{|} \newcommand{\genLine}[1]{$I#1I$ & \lstinline|'#1'|\\} \begin{tabular}{rl}     Beispiel & Befehl \\ \hline     \genLine{\,}     \genLine{\:}     \genLine{\;}     \genLine{$ $}     \genLine{\ }     \genLine{\enspace}     \genLine{\quad}     \genLine{\qquad} \end{tabular} \end{document}

I have \newcommand\dd[2]{\item[\texttt{#1}] #2} and later I have   \dd{bc}{text \verb#$(echo 5+4 | bc)# text \verb#$((5+4))# text}   and I get  ! You can't use `macro parameter character #' in math mode. <argument> ...nicht mit \verb ##$(echo 5+4 | bc)## rechnen, sondern die neue... l.74 ...ekten Rechnen, \verb#$((5+4))#, benutzen.} Sorry, but I'm not programmed to handle this case; I'll just pretend that you didn't ask for it. If you're in the wrong mode, you might be able to return to the right one by typing `I}' or `I$' or `I\par'.   How can I get the verbatim into my command without the command interpreting it wrongly?


Given that $a,b,c \in \mathbb{R}^{+}$ and $abc(a+b+c)=3$,   Prove that $(a+b)(b+c)(c+a)\ge8$.   My attempt: By AM-GM inequality, we have  $$\frac{a+b}{2}\ge\sqrt {ab} \tag{1}$$  and similarly  $$\frac{b+c}{2}\ge\sqrt {bc} \tag{2},$$ $$\frac{c+d}{2}\ge\sqrt {cd} \tag{3}.$$  Multiplying $(1)$, $(2)$ and $(3)$ together we reach  $$(a+b)(b+c)(c+a) \ge8abc.$$  Now, I need to show that $abc = 1$.  Again by AM-GM inequality we have  $$\frac{a+b+c}{3}\ge\sqrt[3]{abc} \implies \frac{\frac{3}{abc}}{3}\ge\sqrt[3]{abc} \implies abc\le1$$    Now if we show somehow that $abc\ge1$, we are done and that's where I am stuck. Can someone please explain how to show that?  Other solutions to the above question are also welcomed.


I am looking for an intuitive or example based explanation as to why Galois Fields exist only if the number of elements are a power of a prime. I find most explanations I've read difficult to understand. I am studying this topic from the perspective of Information Theory, and do not wish to delve too deep into the specifics. Thank you.

Possible Duplicate:             If $F$ is a finite field then the number of elements of $F$ is of the form $p^n$ for some $n\in\mathbb N$.   I know that characteristic of $F$ is a prime number $p$ but I don't know how to show the number of elements of $F$ is of the form $p^n$. Can anyone help me?


I have some savings ($35,000 USD) that I'll be living off of for the next 6-12 months. Is it possible to profit from some of this money in the short term before I need to access it?

Say I have a small sum of money, which I have no use for for the following 6-12 months. I don't want to invest it in index funds, because these have a non-negligible risk of decreasing  in this time period, and I need the money available.  What investment plan is better suited for this purpose?  If it matters, I live in Israel.


How to ask what is your number in the siblings or to your parents

I am the third daughter (or son) of my parents.   OR      How should a question that is answered with the above sentences be framed?


We have a SFTP Server and a bunch of users. The users share files over the SFTP Server with us (not the best solution, I know).  Every user is chrooted into a different directory to prevent them from cd to a higher directory and seeing the other users (Folders are named after users). another requirement is, that only SCP(/SFTP) is allowed - so no shell. We also want certificates for authentication.  Until now we used scponly to meet all the requirements. But scponly is deprecated now so we can't use it anymore and need an alternative. Some Googling brought SFTP chroot and rssh to daylight but neither seem to meet all specifications.  EDIT: We are using SLES 12

Possible Duplicate:          Can I confine my users to their /home/%u directory using simply open-ssh configuration? I did the following from what I found on the Internet Stopped the server To the sshd_config file appended the following  Match group sftpusers     ChrootDirectory /home/%u     X11Forwarding no     AllowTcpForwarding no   started the server  FYI I have the users added to sftpusers group  My users can still access entire file structure on my system  Ubuntu Server 12.04 LTS with open-ssh installed


My canon XTi has the following metering modes; Evaluative, Partial, and Center-Weighted Average.  What is the diference between these and what situations would you them in?

What are Multi-Zone/Matrix metering, Center-Weighted metering, and Spot metering? What about Partial?  Is there a good rule of thumb, or a few pointers, on when best to use each exposure metering mode?


I want to check if my string contains  a + character.I tried following code  s= "ddjdjdj+kfkfkf";  if(s.contains ("\\+"){  String parts[] = s.split("\\+);   s=  parts[0]; // i want to strip part after  +  }   but it doesnot give expected result.Any idea?

In Java is there a way to check the condition:  "Does this single character appear at all in string x"  without using a loop?


What is a word in the English language to describe someone who purposely and excessively uses too many complex words, usually looking them up in a thesaurus, to seem more intelligent in their writings?  I found the term "waxing prolix". But, this doesn't seem to cover the fact that the person is doing this purposely to seem more intelligent than they actually are.  An example. "The feature is a pastiche of mediocrity and boorish cynicism. They are a political and artistic hack pandering to an assemblage of bitter philistines." The person could have just as easily said, "I'm not a fan of this movie or it's actors".   They simply sound like they are trying to sound more intelligent by using an arsenal of words that are not often used in the common tongue. Perhaps elevating themselves above their own audience?  Not a duplicate of  because the accepted answer to that question does not describe the word I am looking for.

I'm sure I saw, recently, a word for this, but I can no longer remember, or find, it.


Some interpretations, like the many-worlds interpretation, treat the wavefunction (modulo an overall phase factor) as objective and fundamental. But consider the following example for a qubit: a classical probability distribution over wavefunctions with a 1/2 probability of $|0\rangle$ and a 1/2 probability for $|1\rangle$. Then, consider another classical probability distribution with a 1/2 probability for $\frac{1}{\sqrt 2}\left(|0\rangle+|1\rangle\right)$ and a 1/2 probability for $\frac{1}{\sqrt 2}\left(|0\rangle-|1\rangle\right)$. Both examples are described by the same density matrix $\left(\begin{array}{cc} \frac{1}{2} &0\\0&\frac{1}{2}\end{array}\right)$ and can't be distinguished empirically by any experiment. If wavefunctions are objective and fundamental, why can't we distinguish between both examples?

In quantum mechanics, one makes the distinction between mixed states and pure states.  A classic example of a mixed state is a beam of photons in which 50% have spin in the positive $z$-direction and 50% have spin in the positive $x$-direction.  Note that this is not the same as a beam of photons, 100% of which are in the state $$ \frac{1}{\sqrt{2}}[\lvert z,+\rangle + \lvert x,+\rangle]. $$ It seems, however, that at least in principle, we could describe this beam of particles as a single pure state in a 'very large' Hilbert space, namely the Hilbert space that is the tensor product of all the $\sim 10^{23}$ particles (I think that's the proper order of magnitude at least).  So then, is the density operator a mathematical convenience, or are there other aspects of quantum mechanics that truly require the density operator to be a 'fundamental' object of the theory?  (If what I mean by this is at all unclear, please let me know in the comments, and I will do my best to clarify.)


I am not very good at linear algebra.My problem is that I don't find any motivation to study it.Can you suggest me a good book for Basic Linear Algebra?? I have gone through the Book by Friedberg and the book by Hoffman and Kunze.I know both book are good but I lack motivation.Can you suggest a good book to study linear algebra from basic.I won't mind if the book teaches me the Linear Algebra from the abstract point of view that is using the rings and all the stuff from basic Abstract Algebra!!

Background: Due to some unfortunate sequencing, I have developed my abstract algebra skills before most of my linear algebra skills. I've worked through Topics in Algebra by Herstein and generally liked his approach to vector spaces and modules. Besides a very elementary course in linear algebra (where most of the time went towards matrix multiplication), I have not developed any other linear algebra skills.  But it seems that it is now necessary for me to do so. Most of the topics that I am looking at now require some background of linear algebra and I still lack understanding of ideas like: bilinear forms, invariant subspaces, eigenvalues, requirements for diagonalization of a matrix and so forth.  This brings me to my question (provided there are any)     Question: What are some good texts that develop the theory of linear algebra from a perspective of general algebra?   Are there any texts that develop the key (elementary) ideas of linear algebra in an abstract setting? Thank you for the help!


Is it possible to limit the dates and times a share is available?  For example, I may have a group that needs a share, one to be visible, at certain dates and times.  I do not mean smb or nfs connectivity between Linux and Windows.  I am asking if either OS is capable for doing this.

How can I (in order of preference, descending):   Disable file-server access to a specific share for a user or group based on the time of day. Disable file-server access entirely for a user or group based on the time of day Disable file-server access entirely (server-scope) based on the time of day. This is not at all related to Remote Desktop/RDP access.   For example, Bob is in the group WorkHours. The share "Documents" grants access to users in the group WorkHours. How do I deny access to all files in the share "Documents" from 7PM to midnight, every day, automatically?


Back in the 80's, one of my aunt's used to record a bunch of cartoons off of TV onto VCR tapes for my cousins watch over and over. When they would get bored of them, they would give me the tapes.   One of the cartoons I ended up with was a feature length film about a little unicorn. I don't remember much about it, except that at the end the antagonist was like somehow (I assume magically) turning all of the other unicorns into blocks in some big wall or structure or something. And somehow our hero unicorn was trying to stop him... Honestly, I'm not even sure that it had a happy ending, or at least maybe it was a bittersweet one. It was in English in the US.  This would've been '85 to '90 range when I watched it. It would have been recorded sometime within a year or two before. I know this is obscure, but I've thought about that cartoon a few times over the years and could never figure out what it was.

In the late 80s or early 90s I remember watching an animated series that followed a young unicorn and a demon.   In one episode the unicorn gave the demon his horn, and the unicorn almost died.   In another episode there was a man who was able to turn people into human shaped building blocks and built a huge tower from them.   Those are the two scenes I remember with any clarity.   Does anyone have any idea?


I feel like part is a countable so we have either use it in the singular form a part or the part or in the plural form part. However, I see most of the times it is used with no article in the singular form part.  How is that possible and why do the English treat this word as such?

When should I use "as part of", and when "as a part of"?


iTerm2 always closes the tab/window on error. By contrast, Terminal keeps it open so you can view the error.  How can I prevent iTerm2 from automatically closing the tab/window on error?

I've recently begun to use iTerm2 instead of the macOS Terminal application and I'm really happy with it. I'm very used to use to exit command to close the instance that currently has focus. With instance I mean one of the following: Tab, Window or Split Panel.   How can I write a function exit that closes the instance that is currently running? The following workaround works for windows but neither for tabs nor for split panels:  function exit {     osascript -e 'tell application "iTerm2" to close first window' }   The solution should work with either zsh or bash.


I have trouble even starting on the question because I cannot create any relationships between those 5 numbers.

Prove that for each $n$, there exist $n$ consecutive integers, each of which is divisible by a perfect square larger than $1$. Can any one help with this? I was stuck because I know how to solve for a particular $n$ value, but I was helpless in the generalized form.


Let $C$ be a certain set of pairwise co-prime balanced rectangles in a plane. need to prove that C is a Countable set. The meaning of balanced rectangles is a set of the next form: $$B=<x,y>\in \mathbb{R}^2:a\le x\le b, c\le y\le d$$ for $a,b,c,d$ such that: $a<b \ and \ c<d$.  I need to use the density of $\mathbb{Q} \ in \ (\mathbb{R},\le)$.   I don't know how to even start proving. Therefore, I will be happy to get some help.

If we say that $\mathcal{S}$ is a family of disjoint triangles on a plane, is $\mathcal{S}$ a countable or an uncountable set?  I believe that it is an uncountable set since $\mathbb{R}$ is uncountable and our triangles' corner coordinates are $\in \mathbb{R}$, but I cannot prove this formally, any tip would help.


Ok, so given the following automaton:    I need to find the language that accepts it (no need for formal prove, a short intuitive explanation is good enough). I think the answer here is {$a^{11+6k}, k≥0$}. I can explain why the shortest word that can be received here is $a^{11}$, and I can explain that this language contains the language {$a^{11+6k}, k≥0$}, but I don't know how to explain that this is exactly the language {$a^{11+6k}, k≥0$}. How can you explain that it doesn't conatin more words, for example?

I have the following PDA and I can't figure our what words it accepts, would like to get some help with figuring this out.    Of course it only accepts if that stack is empty in the accepting state.


how to set my own message here, on my own language Whatever is set as returnValue the resulting message is Changes you made may not be saved. window.addEventListener("beforeunload", function(event){     if(saved == false){         event.preventDefault();         event.returnValue = "You didn't save changes";     } });

I need to warn users about unsaved changes before they leave a page (a pretty common problem). window.onbeforeunload = handler  This works but it raises a default dialog with an irritating standard message that wraps my own text. I need to either completely replace the standard message, so my text is clear, or (even better) replace the entire dialog with a modal dialog using jQuery. So far I have failed and I haven't found anyone else who seems to have an answer. Is it even possible? Javascript in my page: <script type="text/javascript">        window.onbeforeunload = closeIt; </script>  The closeIt() function: function closeIt() {   if (changes == "true" || files == "true")   {       return "Here you can append a custom message to the default dialog.";   } }  Using jQuery and jqModal I have tried this kind of thing (using a custom confirm dialog): $(window).beforeunload(function () {     confirm('new message: ' + this.href + ' !', this.href);     return false; });  which also doesn't work - I cannot seem to bind to the beforeunload event.


my question about Ubuntu Server 19.04 is that my root isn't activating.  I did anything I could find.  Problem is when I want to login on my Server with Root it pops-up "Access denied".  Also when I want to transfer files from my PC to Server it says access denied.  Can someone just help me by typing commands that I need to insert to enable Root, set-up password for it and make it just activated and work.

I would like to enable the root account on my Ubuntu installation.  I realize the security implications of this.


File:  TABLE1  1234  9555     87676   2344   Expected output:  Description of the following table: TABLE1  1234 9555 87676 2344

I've been looking around sed command to add text into a file in a specific line. This works adding text after line 1:  sed '1 a\   But I want to add it before line 1. It would be:  sed '0 a\   but I get this error: invalid usage of line address 0.  Any suggestion?


I am asking this question because every single other page on SO I've Googled on the subject seems to devolve into overly simple cases or random discussions on details beyond the scope.  class Base:     def __init__(self, arg1, arg2, arg3, arg4):         self.arg1 = arg1         self.arg2 = arg2         self.arg3 = arg3         self.arg4 = arg4  class Child(Base):     def __init__(self, arg1, arg2, arg3, arg4, arg5):         super(Child).__init__(arg1, arg2, arg3, arg4)         self.arg5 = arg5   This is what I've tried. I get told that I need to use a type and not a classobj, but I don't know what that means and Google isn't helping.   I just want it to work. What is the correct practice in doing so in Python 2.7?

In Python 2.5, the following code raises a TypeError:  >>> class X:       def a(self):         print "a"  >>> class Y(X):       def a(self):         super(Y,self).a()         print "b"  >>> c = Y() >>> c.a() Traceback (most recent call last):   File "<stdin>", line 1, in <module>   File "<stdin>", line 3, in a TypeError: super() argument 1 must be type, not classobj   If I replace the class X with class X(object), it will work. What's the explanation for this?


I am currently creating a script to automate the treatment of some Excel files. I am working on Excel (.xlsx) files and modifying them with the library Pandas. I need to get the creation date of one of those files so I can insert it into another file and I don't have the slightest clue on how to proceed.   I am currently using Python 3.3.5, Pandas 0.15.2 and I can't use any library not currently in Spyder (I work in a big company where we aren't allowed to update versions or to install anything not approved first and approving something takes months)   Thanks,

I have a script that needs to do some stuff based on file creation & modification dates but has to run on Linux & Windows.  What's the best cross-platform way to get file creation & modification date/times in Python?


I need some help to ease me understanding this equation. I have tried to write but Miktex is bugging. Can someone tell me how to improve it in order to let it working?  \documentclass[10pt]{article} \usepackage{graphicx} \usepackage{amsmath}   \begin{document}  \[ DeltaCanada_{t} =  \begin{cases}     -1.40(0.02) - 0.58(1.5e-8)w_{t-1} - 0.53(0.14)\DeltaCanada_{t-1}+ 0.169(0.03)\DeltaBritishColumbia_{t-1} & \text{ if $w_{t-1} \leq 0.62$} \\    -0.73(0.76) - 0.15(0.17)w_{t-1} - 0.99(2.5e-7)\DeltaCanada_{t-1} + 0.24(0.13) \DeltaBritishColumbia_{t-1} & \text{$w_{t-1}>0.62$}                                       \end{cases}                         \ ]  \end{document}

I want to write this equation in this way down but I have been unsuccessful. How can I improve this codes in order to get the equation below?  \[ DeltaC{t} = \left\{ \begin{array}{ll}  -1.40- 0.588w_{t-1} - 0.5351\DeltaC_{t-1}+ 0.169\DeltaBC_{t-1} & \mbox{ if $w_{t-1}<- 0.62$} \\ -1.40 - 0.588w_{t-1} - 0.5351\DeltaC_{t-1} + 0.169\DeltaBC_{t-1} & \mbox{$w_{t-1}>0.62$} \end{array} \right. \]


Hello everyone I have a website which was hosted in digital ocean server and now i changed it to AWS. After changing the nameserver, when i access the domain i get error saying  refused to connect. ERR_CONNECTION_REFUSED. Is it normal to get this error after changing Nameserver? I did research on aftereffect of changing nameserver and came to know about domain propagation. So is this the error message i get when its in propagation state? Or problem could be something else? I checked the domain in intodns.com and it shows record of new nameservers and IP ie AWS, but when i check with dig NS mydomain.com it show old IP and nameservers ie digital ocean. Any idea what might be causing this? Solutions?

This is a  about Connection Refused    We see a lot of questions to the effect      When I try to connect to a system I get a message      Connection refused      Why is this ?


How can I install Ubuntu alongside Windows 7, because the option to install Ubuntu alongside Windows 7 does not show me? I want to install the hard disk partitioning manually. How can I do it?

Why don't I have this option?    here's my disk layout  sudo fdisk -l  Disk /dev/sda: 640.1 GB, 640135028736 bytes 255 heads, 63 sectors/track, 77825 cylinders, total 1250263728 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x5b53cc54     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *        2048      409599      203776    7  HPFS/NTFS/exFAT /dev/sda2          409600  1153767021   576678711    7  HPFS/NTFS/exFAT /dev/sda3      1216962560  1250050047    16543744    7  HPFS/NTFS/exFAT /dev/sda4      1250050048  1250261679      105816    c  W95 FAT32 (LBA)  Disk /dev/sdb: 4005 MB, 4005527552 bytes 32 heads, 63 sectors/track, 3880 cylinders, total 7823296 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x20d8782d     Device Boot      Start         End      Blocks   Id  System /dev/sdb1   *          63     7822079     3911008+   c  W95 FAT32 (LBA)


Does an electrical spark / arc cast a shadow?  For example, if you shine a flashlight through the sparks generated through a tazer, will it cast a shadow on the wall?  Unfortunately I don't have a tazer handy to conduct my own experiment here.  I know from google searches that fire does not cast (much of) a shadow, but have not been able to find out how light passes through sparks yet.  Edit: This is a bit different than fire (here, talking about an electrical arc or spark vs. fire, which may or may not behave the same).

Light has always been a mystery for me. When we do a simple experiment of holding a lighter in one hand and a light source behind it, it shows no shadow on the wall at all. Why is this happening? Is it because the flame is pure energy and doesn't have matter in it, or is it due to light passing through the flame and not getting reflected? If it is, why isn't the light getting reflected or retracted?


I'm considering upgrading from a 9-speed, 12-26 cassette on a 2006 Lemond Alpe D'Huez.  I have a triple front chairing with a Shimano 105 groupset, with one exception - an Ultegra rear derailleur.  Can I do this by changing both derailleurs, the chain, the cassette, and the hub on my existing rear wheel?  I have a lot of hills in my area, which is why I'm looking into possibly a 10 speed, 12-30.  Thanks for the help!

I'm thinking of changing the 9-speed Tiagra rear mech on one of my (road) bikes to something, still Shimano, but 10-speed.  The obvious replacements I'll need are cassette, right-shifter and chain. But I reckon because of the narrower chain I'm also looking at a new chainset and rear derailleur. However I think the front derailleur and left-shifter should be safe (still keeping the front mech the same). Ditto the bb, regardless of whether I need a new chainset  Has anyone actually done this conversion and is able to confirm (or put me right)?  Thanks  Update  Decided in the end that going from 9- to 10- was too much to spend all in one go. But I used a service as an excuse to change the cassette (to a 9-speed ultegra) and the chain (dura ace) at quite minimal cost. Can upgrade other parts as and when, although I'm basically looking at Shim's 6500 range here so all quite dated now.


So, I am trying to be a vigilant member of Stack Overflow.   I flagged a few posts, and noticed that some of them were rejected/disputed.   Of course, my little ego was bruised (just joking) and I went back to check the flagged posts.   I still stand by my flags, but I apparently can't re-flag them.   Is there a way I can get a moderator's attention in that scenario?   Here are some examples :    In this case, the OP himself says that the answer is not related to his question. Yet, my flag (not an answer) was declined.     These flags were mainly raised when I was reviewing 'Late Answers'. So, from what I understood, you just don't down-vote irrelevant posts, you flag them too (if necessary), when doing the reviews?

What is the "Not an Answer" flag and what is its purpose? When should I use this flag? When should I not use this flag? But I'm still not sure if I'm using the flag correctly... An answer is "Not an Answer", but the flag was declined or disputed!   See also:


I would like to solve the equation : $$i^2+j^2 = x^2+1$$ for $x, i, j \in \mathbb{N}$ and $\gcd(i, j)=1$  It's obvious that $(i, j, x) = (x, 1, x)$ and $(i, j, x) = (1, x, x)$ are solution yet are there other solutions ?  Is it possible to list them ?

I was reasonably certain I've seen this before, but I was wondering how to solve the Diophantine equation  $$a^2+b^2=c^2+d^2$$  I tried a web search and found nothing on this one.  I'm trying to avoid another library trip to a less than local library (maybe I should have taken better notes on that chapter...).  I'm not quite sure how to handle this one.  The only thing I can figure out with this equation, if I remember correctly, is that the sum on either side may only contain prime factors of 2 or odd primes congruent to 1 mod 4.  And if I don't want a and b equal to c and d, the sum can't be prime as I believe a prime congruent to 1 mod 4 can be represented as the sum of 2 squares in exactly one way.  But that doesn't give me any insight into actually solving this problem.


A few months ago I noticed that on my HDD there is a folder called WindowsApps and I tried to delete it because I know that it wasn't system related because my OS is on my SSD. I had no perm over it and couldn't enter the folder or change it's perms but I have all perms.  Few days ago I deleted my antivirus because it kept giving me false reports and deleting files that had no viruses. After 2-3 days the virus inside WindowsApps was activated and it kept setting the homepage to viceice.com on all my browsers. Soon enough it started opening false programs like taskMgr.exe or SkypeApp.exe and this are all fakes. When I used Open File Location on the processes it opened up the WindowsApps folder but I couldn't open it any other way and I couldn't delete it's content. Whilst trying to shutdown this false processes they would keep activating.  I never download anything with viruses and I'm sure of it. My thoughts are that it was transferred via WiFi because I use my neighbours WiFi.  I had to reset my Windows 10 and lose many programs but WindowsApps was still there and I still couldn't delete it, open it or change it perms. Currently it is not functioning and the antivirus I downloaded is hopefully keeping it from doing so. I tried using the Unlocker program to delete it but it said that it can't do it and will try on the next reboot but it did nothing. So I need a way to delete this because I don't want it destroying my PC. Thank you in advance.

What should I do if my Windows computer seems to be infected with a virus or malware?  What are the symptoms of an infection? What should I do after noticing an infection? What can I do to get rid of it? how to prevent from infection by malware?   This question comes up frequently, and the suggested solutions are usually the same. This community wiki is an attempt to serve as the definitive, most comprehensive answer possible. Feel free to add your contributions via edits.


After running sudo apt update, I have this error:  GDBus.Error:org.freedesktop.systemd1.UnitMasked: Unit -.mount is masked.   What is? How can I solve it?

Linux Distro: Lubuntu 19.04  My system is working fine but I just get distracted when I update my packages because of this error which I don't know how to fix. I've been finding some related topics and I tried their solution but still fail to fix the error.  sudo apt update Hit:1 http://repo.steampowered.com/steam precise InRelease Hit:2 http://packages.microsoft.com/repos/vscode stable InRelease               Ign:3 http://dl.google.com/linux/chrome/deb stable InRelease                    Hit:4 http://dl.google.com/linux/chrome/deb stable Release                      Hit:5 http://archive.ubuntu.com/ubuntu disco InRelease Hit:6 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu disco InRelease Hit:8 http://archive.ubuntu.com/ubuntu disco-updates InRelease            Hit:9 http://archive.ubuntu.com/ubuntu disco-security InRelease           Hit:10 http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu disco InRelease Error: GDBus.Error:org.freedesktop.systemd1.UnitMasked: Unit -.mount is masked. Reading package lists... Done Building dependency tree        Reading state information... Done All packages are up to date.   Edit: Here is the results of the terminal whenever I use update. Sorry for inconvenience.


If you edit another user's message in chat, it removes the reply arrow from that message, so you can no longer reply to it (although you can with the drop down from the left side, but who wants to click twice?). If that user then re-edits his message, the reply arrow comes back.  Interestingly, if a mod mod-edits your message, it doesn't add a new reply arrow. So this really only affects mods who edit others' messages.

Here's this message from Sathya:    It usually shows like this in the rooms when you're in another chat room:    I edited the post to change a word repetition that sounded weird (Can you tell I'm bored and we don't have any flags in our queue?), and suddenly it changed the author to me:    What happened here?


I am having a bit of trouble with constructing the biijection here. I know that the bijection has to be a piecewise function with one component being $f(x) = x$ when $x$ does not equal $1/n$. But the other component is a bit more tricky, none pass the horizontal line test. Could the other component be $2/n+2$ or how would I go about figuring that component out?

How to define a bijection between $(0,1)$ and $(0,1]$?   Or any other open and closed intervals?   If the intervals are both open like $(-1,2)\text{ and }(-5,4)$ I do a cheap trick (don't know if that's how you're supposed to do it): I make a function $f : (-1, 2)\rightarrow (-5, 4)$ of the form $f(x)=mx+b$ by \begin{align*} -5 = f(-1) &= m(-1)+b \\ 4 = f(2) &= m(2) + b \end{align*} Solving for $m$ and $b$ I find $m=3\text{ and }b=-2$ so then $f(x)=3x-2.$  Then I show that $f$ is a bijection by showing that it is injective and surjective.


i am struggling with an error which i get when trying to compile my C++ Programm which is using templates and typenames. Here is the Code which i have problems with:   template <typename Key, size_t N = 10> class ADS_set { public: class Iterator; using key_type = Key; . . . private: std::pair<Iterator, bool> next_idx(Bucket &bkt, const_reference key, bool split);  }; // End of class template <typename Key, size_t N> std::pair<ADS_set<Key, N>::Iterator, bool> ADS_set<Key, N>::next_idx(Bucket &bkt, const_reference key, bool split) {   No, the problem lies on the definition of my next_idx Method. Somehow i do not define the template parameters of my std::pair correctly as far as I do understand. I would ask you if you could provide me a correct solution and an explanation why this was wrong so that i could possibly understand this better in the future!   The error(s) which i get do say the following:   ADS_set.h:428:42: error: type/value mismatch at argument 1 in template    parameter list for ‘template<class _T1, class _T2> struct std::pair’ std::pair<ADS_set<Key, N>::Iterator, bool> ADS_set<Key, N>::next_idx(Bucket &bkt, const_reference key, bool split) {                                       ^ ADS_set.h:428:42: note:   expected a type, got ‘ADS_set<Key, N>::Iterator’ ADS_set.h:428:44: error: prototype for ‘int ADS_set<Key,  N>::next_idx(ADS_set<Key, N>::Bucket&, ADS_set<Key, N>::const_reference, bool)’   does not match any in class ‘ADS_set<Key, N>’ std::pair<ADS_set<Key, N>::Iterator, bool> ADS_set<Key, N>::next_idx(Bucket &bkt, const_reference key, bool split) {   Thanks a lot for you help!

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


I have an iso file for ubuntu 19.04 and a SHA256SUM file. How do I run the iso test?

I've just downloaded a CD image of Ubuntu. I know the installer has a check CD option, but how can I check that the image is good before burning it to CD?