Why doesn't either side in the Wizarding War use Felix Felicis?

I was thinking about an answer to an older question about HBP, and it dawned on me: merely getting a confirmation that there were 7 Horcruxes was important but hardly the most critical endeavour of the entire War (actually getting and destroying Horcruxs was). So why was Felix only used once, in that specific case?  We know  Felix Felicis is hard to make, but we also know that it's possible to make. Slughorn can, for example.  Why doesn't either side in the War pay someone like Slughorn to make Felix for them?  A critical mission - like Dumbledore going to Gaunt shack, etc... - would be well worth the price no matter how expensive the potion is. And Slug likes his creature comforts, so he would be more than willing to put in the effort if paid well.   Hell, it is not so super priceless and rare and hard to make that Slug wasn't willing to give one as a prize to one of his students!  The obvious reasons don't seem to work:   Money is no object. Either side has wealthy wizards who can pay (Malfoy, Harry, Longbottom). For that matter, even if Dumbledore is not himself wealthy, he's a great enough wizard that he can trade some magical favors/inventions to Slughorn or another potion maker of his caliber. Felix is not some deeply held secret. It's listed as prohibited aid for sporting events. The fact that at the very least Slughorn is an advanced potion maker who can do it is also not exactly a secret - he told Harry's class he can make it, and probably told prior students of his (Tom Riddle included). "... highly toxic in large quantities" . But there's a difference between frequent use/large quantities; and strategic rare use for critical missions (e.g. retrieving/destroying Horcruxes). Both Dumbledore and Voldemort possess enough willpower to enforce that (and DEs wouldn't even care too much in the first place)   I would strongly prefer canon based or JKR answers.


Why do Solar Systems form in a disc shape?

This has been asked before, but I still don't get some points about all this. From what I've gathered so far, it's something like this: A molecular cloud with some initial spin starts collapsing due to gravity. Because it collapses it starts spinning faster, following conservation of angular momentum. This eventually creates bigger centripetal forces, thus pressing the mass outwards. Also, up and down / vertical movement cancles itself out, so all movement is horizontal. I dont't really understand why this explains that the original sphere flattens into a disc, though. Why can't it be multiple disc shaped objects "stacked" over each other, creating a cylindric shape, rather than a single flat disc? Bonus question: Where does the initial spin from the collapsing gas cloud come from? Maybe you can help me with this question! Cheers Anton


Unable to locate package phpmyadmin - Ubuntu server 14.10

I have installed my old pc with UBUNTU SERVER 14.10  I run the command sudo apt-get install phpmyadmin  But is shows Unable to locate package phpmyadmin  Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package phpmyadmin   I searched in askubuntu and tried many ways. But no use.   Please help.


I've got a junk directory where I toss downloads, one-off projects, email drafts, and other various things that might be useful for a few days but don't need to be saved forever.  To stop this directory from taking over my machine, I wrote a program that will delete all files older than a specified number of days and logs some statistics about the number of files deleted and their size just for fun.  I noticed that a few project folders were living way longer than they should, so I started to investigate.  In particular, it seemed that folders for projects in which I had used SVN were sticking around.  It turns out that the read-only files in the .svn directories are not being deleted.  I just did a simple test on a read-only file and discovered that System.IO.File.Delete and System.IO.FileInfo.Delete will not delete a read-only file.  I don't care about protecting files in this particular directory; if something important is in there it's in the wrong place.  Is there a .NET class that can delete read-only files, or am I going to have to check for read-only attributes and strip them?


Nested click event handler causing issue of running handler multiple times on a single click

I am building a multi-level menu which has click events attached to menu items which have child items under them.  My demo JSFiddle below shows my issue.  When a parent menu item has a child item witch also has a child item it them triggers my click event handler 2 times.  Each level deep it goes will trigger the event +1 times.  How can I make this demo only handle 1 click event regardless of which level the menu item is on?    Right now the click event is attached to the CSS class .tag-menu-arrow so when a child item has its own child items it makes multiple levels with the .tag-menu-arrow class nested under each other resulting in the click handler firing multiple times.  Demo   HTML Menu

 JavaScript

 ElementJS

 Marketing

 jQuery

 WebDev

 NodeJS

 Templates

 PHP

 ElementJS

 Marketing

 Marketing

   JavaScript  $( document ).ready(function() {   $( '.parent-tag-menu' ).on('click', '.tag-menu-arrow', function() {     $(this).next().next().toggleClass( 'open' );   }); });


jQuery - refresh or trigger all events for same class

I've this element     And this code  $(document).ready(function() { $('.imgclass').click(function(){     alert('Works!!!');     }); //click // I need to load something in other moment $(something).load(function(){     $('').addClass('imgclass').insertAfter('img');     }); });   If I click first IMG, it works, but second, nothing. How colud i refresh classes event without copying all the function?  The example:   Thanks,


My friend has been raising a ruckus about the abuse of the word "utilize" in place of the word "use." He complains that it just makes your sentences sound pretentious.  u·ti·lize [yoot-l-ahyz]    verb (used with object), -lized, -liz·ing.  to put to use; turn to profitable account: to utilize a stream to power a mill.    utilize. (n.d.). Dictionary.com Unabridged. Retrieved April 06, 2011, from Dictionary.com website:   Today we saw this  which uses "utilize":     each app vendor may utilize unique policies for app pricing."   He claims that this isn't a very good sentence to use "utilize" in. I don't disagree but what determines whether or not you should use "utilize" in place of "use?"


I am desperate to caulk over bad grout, for a short fix

I keep reading "do not just caulk over bad grout", "do it the right way", "take out the grout is the only way to do it"... do it "right", yes. But I need to caulk it.  We havent used the shower in years, after learning it had not been properly renovated, with the intention of tearing the entire thing out ... but what if I am 35 weeks pregnant, on bed rest and am sick of my husband not getting on top of this one thing I wanted done before baby (to take a shower in my master bathroom). Why? Because my MIL will be staying with us and using the only other bathroom in the house and I dont want to share a bathroom with my MIL right after delivery.  Can I just caulk this kind of problem for a short while, somehow? A month maybe? The owners before us did a bad job on it and it is falling apart at the edges and corners. So we have not used it in years. Once I can get around after delivery - this reno project is getting DONE! In the meantime I want to be able to take a shower in my own room. Its a bathroom on 1st floor, with a cement floor. I dislike the entire thing. We want to just put in a fiberglass tub/shower but my husband has not given a lick about doing it before baby. And I am on bedrest. So, its been a sore situation as normally I am the one to initiate these projects. The whole house has been a project so it has just been frustrating.


Parameterization of a curve equal to the intersection of a sphere with a plane

In the task it is necessary to calculate the curvilinear integral. But I was faced with the fact that I can not parameterize this curve in any way. How can I parameterize a curve? $x^2 + y^2 + z^2 = a^2 , x+y+z=a$


I've got 18.5 GB of trash in my trash, I've tried emptying it, but it won't work, even when I navigate to trash folder as root within nautilus.


Does Domain and Hosting Transfer affect search engine ranking?

Im planning to transfer my domain from my current provider since there have been problems with hosting,webmail and poor support.  Will transferring the domain and changing the host affect my search engine ranking and SEO in anyway?


Damaged site icons on chat.stackexchange.com

There are damaged site icons on chat.stackexchange.com popup:


What happens in these end-game situations?

This is intended to be a canonical question regarding possible endings of the game.  For each question, assume a single proper strike was made, and note where an improper strike would change the game outcome (beyond an additional point for the opponent).  If the Queen has been covered:     What happens if I pocket my last C/m and the Striker? What happens if I pocket my opponent's last C/m? What happens if I pocket my opponent's last C/m and the Striker? What happens if I pocket both players' last C/m? What happens if I pocket both players' last C/m and the Striker?     If the shot covers the Queen:     What happens if I pocket my last C/m and the Queen? What happens if I pocket my last C/m, the Queen and the Striker? What happens if I pocket my opponents' last C/m and the Queen? What happens if I pocket my opponents' last C/m, the Queen and the Striker? What happens if I pocket both players' last C/m and the Queen? What happens if I pocket both players' last C/m, the Queen and the Striker?     If the Queen is left on the board:     What happens if I pocket my last C/m, leaving the Queen? What happens if I pocket my last C/m and the Striker, leaving the Queen? What happens if I pocket my opponent's last C/m, leaving the Queen? What happens if I pocket my opponent's last C/m and the Striker, leaving the Queen? What happens if I pocket both players' last C/m, leaving the Queen? What happens if I pocket both players' last C/m and the Striker, leaving the Queen?


Could someone please explain gimbal lock?

I have read , and am still confused about the entire matter.  My understanding is that, using a local coordinate system, if you rotate a model about its X axis then its Y and Z axes experience gimbal lock, and become "locked" together.  However, my understanding is that if you rotate the X axis, then both the Y and Z axes rotate with it, and as such remain separate.  Wikipedia, as always, while a good resource is difficult to understand on this topic.  Could someone please endeavor to explain this to a person who does not have a Master's in physics or mathematics?


Ubuntu server Cannot write to '' (No space left on device)

I'm running a Ubuntu server and this evening since rebooting it I am not getting the error message Cannot write to '' (No space left on device).  Earlier I did unzip a large directory in to /root which created around 100 files, I then removed these using rm /root/*. I did check ls prior to doing this and the only files in /root were the actual ones that I wanted to remove. Did I do something wrong here?  Here are some outputs:  df -h  root@localhost:~# df -h Filesystem      Size  Used Avail Use% Mounted on /dev/xvda        47G   47G     0 100% / none            4.0K     0  4.0K   0% /sys/fs/cgroup devtmpfs        494M  8.0K  494M   1% /dev none             99M  192K   99M   1% /run none            5.0M     0  5.0M   0% /run/lock none            495M     0  495M   0% /run/shm none            100M     0  100M   0% /run/user   df -i  root@localhost:~# df -i Filesystem      Inodes IUsed   IFree IUse% Mounted on /dev/xvda      3129344 52147 3077197    2% / none            126527     2  126525    1% /sys/fs/cgroup devtmpfs        126232  1410  124822    2% /dev none            126527   792  125735    1% /run none            126527     4  126523    1% /run/lock none            126527     1  126526    1% /run/shm none            126527     2  126525    1% /run/user   du -Pshx /* 2>/dev/null  root@localhost:~# du -Pshx /* 2>/dev/null 9.1M    /bin 4.0K    /boot 4.0K    /dev 6.8M    /etc 31M     /home 29M     /lib 4.0K    /lib64 16K     /lost+found 8.0K    /media 4.0K    /mnt 4.0K    /opt 0       /proc 76K     /root 192K    /run 7.6M    /sbin 4.0K    /srv 0       /sys 12K     /tmp 611M    /usr 541M    /var   Can someone please suggest something here, as I'm out of ideas?


Please recommend a version of Ubuntu or other linux which can run on the 6th generation intel i5 core

Just set up a new desktop with the 6th generation intel i5 core (6500) processor, 16GB RAM, and use the on-chip GPU for display. I tried to run Ubuntu 14.04 TLS 64bit version without installation, but I was only able to see the center aligned "Ubuntu ...." screen with purple background. After that it ended quietly at a completely black screen.


Android studio get value from HashMap and assign to the class

I have a problem which is I can get the value in the HashMap but I cannot send this value to my class. My error is void com.paket.okulduyuru.Model.Duyuru.setPid(java.lang.String) on a null object reference.  My setter method is:   public void setPid(String pid) {         this.pid = pid;     }    Activity:  Calendar calendar = Calendar.getInstance();          SimpleDateFormat currentDate = new SimpleDateFormat("MMM dd, yyyy");         saveCurrentDate = currentDate.format(calendar.getTime());          SimpleDateFormat currentTime = new SimpleDateFormat("HH:mm");         saveCurrentTime = currentTime.format(calendar.getTime());          duyuruRandomKey = saveCurrentDate + saveCurrentTime;          final HashMap<String, Object> duyuruMap = new HashMap<>();         duyuruMap.put("pid",duyuruRandomKey);         duyuruMap.put("date",saveCurrentDate);         duyuruMap.put("time",saveCurrentTime);         duyuruMap.put("context",duyuru_context);         duyuruMap.put("title",duyuru_baslik);         duyuruMap.put("bolum",duyuru_bolum);         duyuruMap.put("yazar",duyuru_yazar);         String pid = (String) duyuruMap.get("pid");         duyuru.setPid(pid);


Zoom to Selected Feature Keyboard Shortcut

When working with quality assessment fishnet tiles in ArcMap most of the time couple of thousands i have to double click each record to move from one fishnet to the other. Instead of that i am looking for a keyboard shortcut which can do first go to the next record line and also at the same time zoom to that feature to a fixed scale. In the ArcMap attribute table view Ctrl + Enter will take you the next row record the missing one is how to zoom to that feature in the map view with keyboard shortcut at the same time.   I do not have that much programming know how.


Existence of elementd of infinite order in finitely generated infinite group

Let $G$ be a finitely generated group of infinite order. Then is there always an element $g$ of infinite order in $G$?


How can I use /testfor to see if someone is holding a diamond in their main hand?


ID a book about a mirror world and 4th dimension

I read a book about 10-15 years ago about a boy and a girl who find a mirror. What made the mirror special was, they were able to enter the reflection and be a part of the reverse image world. They end up going to school and when asked to write something on the board, it ends up being backwards, but to them looks normal.  Later, the two end up in a world with 4 dimensions. With the added dimension they can't see as they normally could. If one moved a certain way the other would see their insides. Eventually a native of that dimension made some type of device that lets them see regularly.  Other than that my memory is blank. If I remember anything else I will be sure to edit it in.


Factors to consider in registering an international domain

I would like to register a ".ee" domain. I live in the US. I have checked the rules for domain registration and looks like I am able to register without issue. I would like this site to be my home on the web.  If someone looks up my name on a search engine from anywhere in the world (primarily US), would a ".ee" domain still be preferred given that the domain is registered in a different country. Wondering if search engines prioritize domains local to the search country.  Should I have concerns of the reliability of top level domain administration for relatively less popular domains like ".ee"?


Is it stupid to purchase AF Nikkor 50mm f/1.8D over AF-S NIKKOR 50mm f/1.8G to save a few bucks?

I own a Nikon D5300 body, but wish to upgrade to a Pro FX body in future (not any time soon).  Between  and , I prefer to buy the former, but at the same time, skeptical about my purchase decision.  The reasons I'd like to choose the former are:   The former is a lot cheaper I don't want to spend for what I won't need if I upgrade. I believe all Pro FX bodies have AF motor built inside the body. Hence, SWM in 'AF-S' lens is redundant The former is a bit lighter (~30gms) The former is dimensionally a bit smaller The optical performance, especially the Bokeh are    The reasons I hesitate before making the purchase are:   The later is said to have a better build quality (How better is the later compared to the former?) The former has an aperture ring which I am not at all familiar with (Is there any drawback of having an aperture ring apart from making the look of the lens messy?) The focus ring of the former turns when you focus. You can't touch it without disabling autofocus first   Can anybody please clarify my doubts? Apart from the points I have highlighted, is there any other major/minor concern which I have failed to take care of?


How do I check the MD5 and SHA1 of an ISO file? It's a Windows 7 iso.


How do you handle multiple instances of setTimeout()?

What is the most recommended/best way to stop multiple instances of a setTimeout function from being created (in javascript)?  An example (psuedo code):  function mouseClick() {    moveDiv("div_0001", mouseX, mouseY); }  function moveDiv(objID, destX, destY) {    //some code that moves the div closer to destination    ...    ...    ...     setTimeout("moveDiv(objID, destX, destY)", 1000);    ...    ...    ... }   My issue is that if the user clicks the mouse multiple times, I have multiple instances of moveDiv() getting called.  The option I have seen is to create a flag, that only allows the timeout to be called if no other instance is available...is that the best way to go?  I hope that makes it clear....


After entering the correct passphrase at the command ecryptfs-mount-private, I am getting this error:  torben@torben-nettop:~$ sudo ecryptfs-recover-private INFO: Searching for encrypted private directories (this might take a while)... INFO: Found [/media/0f417b42-11a0-4539-9cae-e11ce3b289c3/home/.ecryptfs/   torben/.Private]. Try to recover this directory? [Y/n]: y INFO: Enter your LOGIN passphrase... Passphrase:  Error: Unwrapping passphrase and inserting into the user session keyring   failed [-5] Info: Check the system log for more information from libecryptfs torben@torben-nettop:~$    Syslog has this information:  ecryptfs-insert-wrapped-passphrase-into-keyring:     Incorrect wrapping key for file [/home/torben/.ecryptfs/wrapped-passphrase]   ecryptfs-insert-wrapped-passphrase-into-keyring: Error attempting to unwrap   passphrase from file [/home/torben/.ecryptfs/wrapped-passphrase]; rc = [-5]   --> Given that I am absolutely sure that I am entering the correct passphrase, what can I do to fix this problem so that I can read the encrypted home folder?  Some background:   I have installed Ubuntu 11.04 on a new drive and I want to copy my home folder from the old drive, which is encrypted (I have the passphrase). With the help of , I followed  yesterday and successfully gained access to the encrypted home folder. This proves that my passphrase does indeed work.  I then started the machine on copying from the old encrypted home folder to the new unencrypted home folder and went to bed. When I returned to the computer, I saw that it had suspended itself :( and had not finished copying the folder.  I rebooted the computer, and removed the temporary /recovery folders, then followed the exact same steps again, but this is when I encountered the error given above. I tried this several times; always the same result. I am absolutely sure that I am typing the passphrase correct.


I have the following method:  public class RangeFilter<T> : Filter<T> { }   Is there a way to restrict T to the following types:  bool  byte, sbyte  char, string decimal, double, float int, uint, long, ulong short, ushort


Why does the subwoofer hum when no source is connected?

The hum at 60Hz stops as soon as an audio source is connected and came with a 2 pin connector. I tried to connect any part of the subwoofer with the ground of a socket. The buzzing stops when no device is connected. I can then connect my phone normally with an aux cable and listen to music. When I try to do this with my laptop, a strange beeping sound is emitted. The problem occurs on all sockets and therefore I suspect that the power supply has a problem. It is important to note that the subwoofer is a few years old. In the pictures you can see the components of the device. Which component could be the source of the problem?


I have always been amazed by the continued fractions for $\pi$. For example some continued fractions for pi are:  $\pi=[3:7,15,1,292,.....]$ and many others given .  Similarly some nice continued fractions for $e$ and it's derivatives are given .I have tried to prove that the are indeed the continued fractions but did not get very far.If any one can can help it would be great(especially if there is some easy way to get continued fraction of derivatives of e from the original continued fraction of e).Here derivatives of e I mean $\sqrt e,\frac{e-1}{e+1} $ etc.


Let $M$ be a flat $S^{-1}A$-module. I want to show that $M$ is flat as an $A$-module.    $\newcommand{\tp}{\otimes}$ My "best" attempt is the following: Let $$0 \to N_1 \to N_2 \to N_3 \to 0$$ be exact (of $A$-modules). Then, $$0 \to S^{-1}N_1 \to S^{-1}N_2 \to S^{-1}N_3 \to 0$$ is exact, and as $M$ is flat, $$0 \to S^{-1}N_1 \tp_{S^{-1}A} M \to S^{-1}N_2 \tp_{S^{-1}A} M \to S^{-1}N_3 \tp_{S^{-1}A} M \to 0$$ is flat, and due to $S^{-1}N_i \tp_{S^{-1}A} M = S^{-1}N_i \tp_{S^{-1}A} S^{-1}M = S^{-1}(N_i \tp_A M)$ $$ 0 \to S^{-1}(N_1 \tp_A M) \to S^{-1}(N_2 \tp_A M) \to S^{-1}(N_3 \tp_A M) \to 0 $$ is exact. But I don't know why $$ 0 \to N_1 \tp_A M \to N_2 \tp_A M \to N_3 \tp_A M \to 0 $$ is exact, which would imply the flatness of $M$ as an $A$-module.


Can anyone explain me how time can bend according to Einstein in simple way?

I am just 16 and curious to learn about Theory of Relativity. Can any one explain it simple enough for me to understand? I read that it is bending of time-space or space-time that causes gravity. How can bending of time takes place?


What is the difference between c=a,b and c=(a,b)?

What is the difference between the 4th and 5th lines? int main()  {     int a = 3, b = 5, c, d;      c = a, b;      d = (a, b);      printf("c=%d d=%d", c, d);      return 0; }  Output: c=3 d=5


Large File Should read line by line or load by file_get_content

Currently, We are getting large file average size is 60 MB .  Here, We have to ways in terms of file processing.  I have two option for doing this:  1. Use File_get_content 2. Use file line by line using fopen   My concern is, How we can save in terms on memory, speeding. So we can utilize resource better.  Another thing, If we use PHP generators (yield) will benefit in this case.  Kindly mentor on this.


Reimplement a virtual function from base class in a derived template class

I have a base class which has a virtual function :  class Base {    ...    virtual void myFunction() { assert(0 && "not implemented yet"); }  }   and a derived (template) class of Base :  DerviedClass.hpp :  Template<typename T> class DerivedClass : public Base, public T {    ...   void myFunction();  }   DerivedClass.cpp :  template <> void DerivedClass<ClassA>::myFunction() {  //Something ClassA is suppose to do }   This compiles. But when I try to instanciate a DerivedClass<ClassB> I get the error :  IProject.o:-1: erreur : undefined reference to `DerivedClass<ClassB>::myFunction()'   Why do I have this error? Why it does not take Base::myFunction instead of forcing me to implement a generic myFunction in DerivedClass or a specialized function DerivedClass::myFunction?  Note : the assert in myFunction is because ClassB is not supposed to call myFunction during runtime. For exemple if myFunction is getRadius, DerivedClass<Circle>::getRadius() is okay but DerivedClass<Square>::getRadius() should not be called.  Note 2 : The other topics I found were not clear about this point


Is it possible to pause a job listing on Stack Overflow Careers?

I've got a job listing running with the standard 30-day term.  I'd like to pause the listing for now because we are about to conduct some interviews and are not interested in any further applicants for the time being.  Currently there doesn't seem to be a pause option. Is there one? Have I missed it?  Can I do something else that is effectively pausing the job listing?


How do I correctly find out, what size the array of structs is?

I have the following minimal example and I don't get, why my struct sizes are wrong. I'm expecting the output to be 50, instead I get 1. What am I doing wrong?  #include <stdio.h> #include <stdlib.h>  typedef struct prod {     char *x; } prod_t;  typedef struct obj {     prod_t *things; } obj_t;   #define LARGE_BUF 100 #define CHAR_BUF 20   obj_t *func1(obj_t *t) {     t->things = malloc(sizeof(prod_t) * LARGE_BUF);      for (uint16_t i = 0; i < 50; i++) {         t->things[i].x = malloc(sizeof(char) * CHAR_BUF);         t->things[i].x = "hello";     }      return t; }  int main(int argc, char **argv) {     obj_t *var = malloc(sizeof(obj_t));      var = func1(var);      printf("%lu\n", sizeof(var->things)/sizeof(var->things[0]));      return 0; }   Since I don't have the number of entries, the function generated for me (it's 50 now, but it could change dynamically), how do I free(..) this up?  Is the only option to introduce a field in the struct, to keep track of the actual array size?


VAC ratings & VDC ratings from components

i've been looking at switches and have noticed a few of them only note their voltage / current ratings for AC but dont mention DC ratings at all. Is there a reason to this and if so is there a equation/ general rule to get an idea of its DC limitations ? Example a (dc rating)  Example b (ac and dc)


What affiliation to put on an academic paper for alumni authors?

I finished my B.Sc in CS about 6 month ago and now I am writing a paper for a conference. before when I was a student I put my university and department name below my name as an author. but now I am not a student. I saw somebody put their IEEE membership on the paper something like "member of IEEE Computer society" or something similar, but I am not a member in any society yet!  What I used before:  Sajjad Gerami Department of Math and Computer Science, Shahid Bahonar University, Kerman, Iran Email: my.email@gmail.com   What I may use now:  Sajjad Gerami Email: my.email@gmail.com   Can I do that? Can I publish a paper just by my name and email (which is a Gmail one) without any institutional affiliation?  Update: For information about email address check these questions:


Which memory settings to use for this MySQL server?

I've been looking in a lot of places so far but I couldn't find any articles about how much memory to allocate to MySQL based on server size.  I am about to deploy a website on a relatively small vserver with the following specs: 500 mb ram 20 gb SSD Ubuntu 14.04 64bit 1 virtual CPU (my provider doesn't specify speed).  With the server running idle (i.e website has no traffic), I get these values after rebooting:     It runs exclusively apache+mysql. The number of concurrent users is expected to be low for starters (<20).   What should be some sensible values for mysql's memory allocation for this case? And are there any other settings I can use to make sure the server resources are being used to their full extent?


Every time I mine I either find redstone, coal or iron. I understand coal and iron but what is the purpose of redstone?


I am in my second year of my PhD and am about to get married. I plan to take on my husband's name with my name and not keep my maiden name. But I have two publications already. What can I do so that I can associate my publications even after my surname change. Also, if I keep on publishing with my maiden name and use my husband's surname socially, and also change my surname in passport, won't there be a conflict when I apply for visa to attend conferences due to the two different surnames?


Stop PayPal from setting up automatic payments

Often when I want to pay a bill using PayPal it automatically sets up future payments which I rarely want to do. Here is what the payment screen looks like (some personal information has been whited out):    As you can see a the bottom it says "Use PayPal for future payments to XXX". There seems to be no way out of this. I have to explicitly go to a specific screen which involves multiple button pushes and then "Cancel" my "preapproved payment". As a result of this insanity I have dozens "cancelled" subscriptions in my "preapproved payments" list.  Is there any way to stop PayPal from doing this? I want to pay the vendor ONCE only. How do I do this and prevent a "preapproved subscription" from being set up?


Working on the proof that outer measure is countably subadditive in Royden   For a set $A \subset X$ we define the outer measure:   $$\mu^{*}(A) = \inf\left\{ \sum_{n=1}^{\infty} \tau(T_n): \space T_n \in \mathcal{T}, \space A \subset \bigcup_{n=1}^{\infty} T_n \right\} $$  We want to prove that $\mu^{*}$ has the property of subadditivity: for a sequence $\{ A_n\}_{n=1}^{\infty}$ the following is true:  $$\mu^{*}\left( \bigcup_{n=1}^{\infty} A_n \right) \le \sum_{n=1}^{\infty} \mu^{*}(A_n)$$  $\mathbf{Proof}$: The first step is that there exists $(n,j)$ such that $A_n \subset \bigcup_{j=1}^{\infty} T_{(n,j)}$ and $ \sum_{j=1}^{\infty} \tau(T_{(n,j)}) \le \mu^*(A_n)+\frac{\epsilon}{2^n}$  ~~~~~~~~~~~~~~~~~~~~~~~~~~  I'm confused as to how we know that such an open cover $T_{(n,j)}$ exists, especially subject to the condition that $ \sum_{j=1}^{\infty} \tau(T_{(n,j)}) \le \mu^*(A_n)+\frac{\epsilon}{2^n}$ How would such an open cover be constructed? If anyone could help me develop some intuition for this step, that would be great


This is a bug. It ain't April Fools Day or is a new update to the SE sites. For some reason, I can't comment on a duplicate question on a closed question on the Samsung Galaxy 2, browser is Google. The situation is that I can't find the "Add Comment" button:   I understand that you can't answer but you should be able to/can comment on that post. You can still edit, share, etc. as usual but can't comment. So why can't I comment on a duplicate post, whether it is an answer or question?  Note:      Never, Never Ever argue with Oded. Learned that the hard way...   And I can comment on closed posts. Just not duplicates


R: linear regression: very small coefficient and R-squared but significant P values

I've got a very small coefficient (-0.04) and R-squared (0.028) but a significant P value (<0.0001). My question is:   Is my result still meaningful? How to interpret it?   The result is from a linear regression model in a big database in R.  The independent variable (B) has more than 200 values, whereas the dependent variable (A) has 13 values.   The potential correlation is below:   So, I ran a linear regression model between A and B and the result is:  >mod1<-lm(A~B)          Call:         lm(formula = A ~ B)           Residuals:              Min      1Q  Median      3Q     Max           -63.174 -11.816  -1.651  10.184 118.001            Coefficients:                        Estimate Std. Error t value Pr(>|t|)              (Intercept) 132.274547   0.303723 435.511  < 2e-16 ***          B            -0.036675   0.009052  -4.052 5.13e-05 ***          ---         Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1          Residual standard error: 18.52 on 8093 degrees of freedom            (123 observations deleted due to missingness)         Multiple R-squared:  0.002024,  Adjusted R-squared:  0.001901          F-statistic: 16.42 on 1 and 8093 DF,  p-value: 5.134e-05   As you can see, the coefficient of B is only -0.03 and adjusted R squared is only 0.1% but with a p value <0.0001. Is my result reasonable and countable? Surely, my database is larger (8000 records) and even a very small effect size will show a significant P value. But how would I interpret this?


How to boot and install windows 7 back? Removing Ubuntu

I need to revert back to Windows7 for some reasons, I have Ubuntu 14.04 installed. I have extracted my windows7 iso and copy it to a pen drive but when I restart my laptop I cannot boot it, F12 wont work.  I've been searching around but I don't understand how to fix this issue, what is the simplest way to go back to Windows7?


Can I transfer my content to another user account?

Due to the recent PSN outage and I am getting rid of my PS3.  I bought my PS3 back in 2007 and I have purchased a bunch of games and add-ons over the years.  Is there any way to recover this content and sell it/transfer it to another PSN user account?  Also, is there a way to restore the PS3 back to it original factory settings?


I have a question, I have a Lenovo PC, I Want to know if Ubuntu have drivers 100% compatibles


What happens if you overcharge a 3V supercapacitor to 5V?

Is there any physical risk of damage, such as fire or explosion, with overchargering such a low rated capacitor to 5V?  Assume the Capacitance of the supercapacitor is 5F. You can further assume it's this .


Prove that there exists a one-color $K_3$ in a $K_{17}$ which is colored with three colors

Assume that we have a $K_{17}$ and we color every edge of it with 3 colors ( Like Red, Blue & green ).    Prove that for every coloring of $K_{17}$ with 3 colors, After coloring, We have a one-color $K_3$.    Note 1: What i tried is that i picked and vertex like $v$ and i fixed it.  Then I said this vertex is connected to $16$ other vertices ($v_1,\cdots,v_{16})$. By the pigeonhole principle we know that there exists a color that at least 6 of the edges between $v$ and $v_i$'s. Without loss of generality, We say that color is blue and that 6 vertices are $(v_1,\cdots,v_6)$. Now we see the edges between $v_i$'s. If there exists a blue edges between these vertices, We are done !  What i'm stuck on is what to do if there is no blue edge between $v_i$'s.    Note 2: Don't use ramsey numbers.  Thanks in advance.


My Ubuntu 16.04 goes into a state of limbo when suspended

It goes into a black screen and then the only option left is to force shutdown (using the power button) and turn on again. Please help as it is really annoying and I have to shut down every time I need to close the laptop or transport it.  Laptop Model: Acer Aspire E 15 (E5-573-5108)


How to enable natural scrolling on Ubuntu GNOME 16.04

I have just installed ubuntu-gnome-16.04 flavor on my notebook and am quite pleased with it.  But natural scrolling was not really working. I have followed some answers on these questions:        After installing xserver-xorg-input-libinput,  in particular gave me what I wanted, but only until I reboot. How can I make this permanent?  Why this is not a duplicate: I am not looking for a way to run this command every time I boot ubuntu. I am looking for a proper way of change the settings without the need to run this command arbitrarily every time I boot. Specially, I am trying to avoid putting this command to change a setting anywhere it doesn't belong. I had previously managed to make it work by making the command run on by appending it to ~/.bashrc. But leaving it there felt unnatural. Maybe I am wrong, but I have the feeling this is not the proper place to make this setting change even if it does work


How do I replace caps in URL in Google Analytics

I have a Google Analytics account for a site I now am helping with. There is a history where no filters were applied and I would like to apply a filter to make all the URLs lowercase to match them up.  I see plenty on removing querystrings and such but nothing along the lines of replacing all uppercase chars with lowercase ones.  I already have a filter for data going forward but need to do it with older data  if I can.  Is it possible?


Converting ArrayList  to String[] does not take correct elements to put into the String[]

I have a method in a program that takes an ArrayList objects:  private ArrayList<T> list;   and subsequently can use this method to take all of the items, copy them to a String Array, and then remove the items from the original list.  Here is the method:  public String[] takeAll() {     if (this.list.size() <= 0)     {         throw new NoSuchElementException("Unable to take elements from empty array list");     }//checks if list is empty      String[] targetArray;     targetArray = list.toArray(new String[list.size()]); //adds the Objects to the String[] targetArray      list.clear();      return targetArray; }   Main that tests this:      public static void main(String args[]) {     SimpleList a;     a = new SimpleList(Position.FIRST, Position.LAST);     String[] b;     a.list.add("thing1");     a.list.add("thing2");     a.list.add("thing3");     a.list.add("thing4");     b = a.takeAll();     System.out.println("The String Array b contains: " + b); }   When I run it, it returns something odd:  The String Array b contains: [Ljava.lang.String;@15db9742  What would I have to change to actually print out b where it should display {"thing1", "thing2", "thing3", "thing4"} ?


Is there any other example of this omission of the letter 'b'?


How do I playback a DVD in Ubuntu 17.10? I have so far:  sudo apt-get install ubuntu-restricted-extras sudo apt-get install libdvd-pkg   There used to be something called Fluendo in the Ubuntu repository but it doesn't appear to be there any more. Am I the only person left using Ubuntu?  I followed advice given in various other question on Ask Ubuntu and on the Ubuntu man pages  but was still unable to play DVDs.


Book with problem sets that will go well with Dennery and Krzywicki's Mathematics for Physicists?

Does anyone have any book/problem sets that would go well with Dennery and Krzywicki's ? I like the style of the book compared to usual texts like Riley, Arkfen, or Hobson and Bence, and would really like to study from it. The thing is this book has no problems sets and without doing problems, it's worthless to do a math methods course.   So, any pointers to other books, problem sets from professors, your own stuff would be much appreciated!


I have two tellraw commands  /tellraw Froggygamingmc {text:"Thanks For Using",color:red}   and  /tellraw Froggygamingmc {text:"Vend U.S.A.",color:green}   but whenever I execute them it says      Invalid json: malformed JSON at line 1 column 3.    Does anyone know how I can get the /tellraw command to work?


Extend main APFS partition fails with "target disk is too small for this operation"

/dev/disk0 (internal, physical):    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      GUID_partition_scheme                        *251.0 GB   disk0    1:                        EFI EFI                     209.7 MB   disk0s1    2:                 Apple_APFS Container disk1         125.7 GB   disk0s2    3:                  Apple_HFS Storage                 100.0 GB   disk0s3  /dev/disk1 (synthesized):    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      APFS Container Scheme -                      +125.7 GB   disk1                                  Physical Store disk0s2    1:                APFS Volume Macintosh HD            122.9 GB   disk1s1    2:                APFS Volume Preboot                 19.9 MB    disk1s2    3:                APFS Volume Recovery                506.6 MB   disk1s3    4:                APFS Volume VM                      2.1 GB     disk1s4   I checked the different similar questions and tried the suggested solutions but in vain. Disk utility doesn't help at all.  I tried running this command from the terminal as suggested.  sudo diskutil apfs resizeContainer disk0s2 0   Error: -69771: The target disk is too small for this operation  I have more than 25 G of free space:


So I was playing around on Area 51 hoping for further news on the private beta for ebooks, and noticed that my avatar (a hand) was missing. Also the Area 51 has the old toolbar. So I looked at the flair page. The network flair has my hand, the Area 51 flair has a quilt. OK, so time to upload a new image, and WordPress -- WordPress -- I don't want to login to WordPress. Any idea what's up with that?  The following questions did not help, and have different causes and symptoms:


How to create a new file merging the columns from two separate files  with the same beginning information, but different number of lines   For example:   File 1:  *row*   *col*   *A*     1       0      23  1       1      34  1       2      34     File 2:  *row*   *col*   *B*   1       0      100  1       2      110     Merged file:  *row*   *col*    *A*    *B*  1       0       23     100                1       1       34  1       2       34     110


Failed to connect to socket /com/ubuntu/upstart: Connection refused: Errors were encountered while processing: runit

I'm using Ubuntu 15.04. Whenever I tried to install any package, I got the error message in the title. How can I get rid of this annoying error message?  :~$ uname -a Linux LongerVision001 3.19.0-25-generic #26-Ubuntu SMP Fri Jul 24 21:17:31 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux   :~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 15.04 Release:        15.04 Codename:       vivid   Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up runit (2.1.2-3ubuntu1) ... start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused dpkg: error processing package runit (--configure):  subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing:  runit E: Sub-process /usr/bin/dpkg returned an error code (1)


PHP | How to get headers from GET Request?

I want to display the received headers from the GET Request that I send,  PHP:  <?php $opts = array( 'http'=>array( 'method'=>"GET", 'header'=>"User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:51.0) Gecko/20100101 Firefox/51.0" )); $context = stream_context_create($opts); $url = "http://spys.me/proxy.txt"; // instead of file_get_contents $data = getallheaders($url, false, $context);  echo $data;


Is k=$\sqrt{6+\sqrt{6+...}}$ monotonically increasing?

Is  k=$\sqrt{6+\sqrt{6+...}}$ monotonically increasing or is not ? i know it converges to $3$.


Where does gravitational waves' energy go?

Following the measurement of gravitational waves, many sources described them and explained they carry energy away. What I don't get is how this energy will get transfered back to anything else.  If the fabric of space-time itself is vibrating, it would seem to be in impossible for any physical object to gain this energy.    What am I missing?  How would one hypothetically get energy out of gravitational waves?  If impossible, does the universe end up with nothing but GW?


Create a different kind of LOT (list of tables)

So.... in brazilian regulated academic works we have a distinction between tables where the lines are separated by borders and tables that have all borders enable; I dont really know how to translate that to english, so I will just refer to one kind as SMALL TABLES and BIG TABLES; The thing is: I need to indicate the ocorrency of those kinds of tables in different list of tables; so I would need a list for the small tables and a different one to the big tables; Its there a way to create this different set of tables so that I can display this two types in different lists?


I am using csvsimple package to embed csv files as tables into my latex document. It looks like long cell contents break the rendering: tokens.csv: method,corpus,tokens MI,Quran,"allah, thou, thi, punish, believ, ye, thee, messeng, unbeliev, guid" MI,OT,"allah, jesu, christ, thi, king, israel, believ, thou, lord, thee" MI,NT,"jesu, christ, allah, ye, discipl, lord, thing, faith, israel, peter" CHI²,Quran,"allah, punish, believ, messeng, unbeliev, guid, beli, disbeliev, vers, clear" CHI²,OT,"allah, jesu, christ, thi, believ, king, israel, lord, thou, world" CHI²,NT,"jesu, christ, discipl, ye, faith, thing, paul, peter, lord, allah"  main.tex: \csvautotabular{tokens.csv}  Renders as  I'm assuming because the third cell has long contents (other CSV embeds with shorter cell contents are rendering properly in my document) How can I fix this? The CSV files come straight out of other programs so I'd rather not have to edit them at all, or at least not make them incompatible with standard CSV format.


Are all the slaves paired with the same master?

In bash in lxterminal  $ tty /dev/pts/2 $ ls /dev/ptmx -l crw-rw-rw- 1 root tty 5, 2 May 26 09:38 /dev/ptmx   On Ubuntu, is there only one master for all the processes, and all the slaves are paired with the same master?  If different slaves are paired with different masters,    why is only one master   shown above? how can I find out the master for a given slave, and find out the slave for a given master?   Thanks.


How to change a Windows username using the command prompt?

I'm a Windows 7 user i used to change the username from the control panel. But I would like to know how to change it using the CLI not the GUI I have searched alot but didn't find the answer or it was unclear. A simple explanation to the code would be great


Is it possible to do two PhD's in the same field one after another?

I am PhD student in an area of business in India. I am dissatisfied with the coursework and research guidance available at my university and feel that I won't be a very good PhD post completion of this PhD. That is why I am thinking of applying to business schools in the US and Europe after completion of my first PhD but I am worried if they would even consider my application or look at it unfavorably as I will already have a PhD.I want to apply in the same area I study in my first PhD. Any thoughts on this are welcome.


Is there a way to specify a rigid body's initial velocity or rotation?


I am working on an price optimization problem for a Real Estate company. Basically, we'd like to optimize their rental price to maximize revenue on their properties. I have submarket level data such as rental price, occupancy rate, comparable units, operating expenses (fixed cost) in the market, etc. So for a given set of prices p = {40....60}, the objective is to find the optimal price point i.e the point where marginal revenue => marginal cost. The first answer on this question is one of way of doing it, however, I may not always have probability distribution and the relationship between price and predicted occupancy is non linear:  Simple Linear: 𝑝𝑟𝑖𝑐𝑒(𝑠𝑖)=𝑏+𝑐×𝑝(𝑠𝑖) where 𝑐 is a scaling constant. Implies that price and probability are linearly related.   I have attempted to use log-log regression to calculate elasticities: import statsmodels.formula.api as sm  mod = sm.ols(formula = 'np.log(Occupancy) ~ np.log(Rent) + np.log(Income) + np.log(unemp) + np.log(comparable)', data=df).fit()  mod.summary()   The regression above fits price and economic control variables on occupancy rates. With R-Square of 0.94, I am suspicious of this model and there is likely an endogeneity problem. What non-linear methods can I fit to find the optimal rental price. Open to any other ideas/suggestions as well.


Disabling SSLv3 but still supporting SSLv2Hello in Apache

Many SSL clients, notably JDK 6, use the SSLv2Hello protocol to handshake with the server.  Using this protocol does not mean you are using SSL 2.0 or 3.0 for that matter; it is merely a handshake to determine which protocol to use.  [  However, in Apache, if you disable SSLv3 support, this apparently removes support for the SSLv2Hello protocol.  Apache Tomcat has explicit support for SSLv2Hello; that is, you can enable that, but not enable SSLv3.    Is there any way to do this in Apache?    [Update]   This is my protocol config:    SSLProtocol +TLSv1 +TLSv1.1 +TLSv1.2 -SSLv3


Image of connected set is connected implies continuity?

Let $f\colon \mathbb{R} \mapsto   \mathbb{R}$ be a function with the property that the image of every connected set is connected. Is $f$ necessarily continuous?  I've recently learned the definition of connected set and i'm still not totally confortable with it. I thought about the function $f(x)=\sin(1/x)$ for all real non zero $x$ and $f(0)=0$ (obviously discontinuous) for a counterexample but i'm not certain that the image of every connected set is connected...  Thank you in advance for your help!


I exported y design as obj file. Here is the render view. Then when I try to run my obj file in another program ( Vizard), its dark and looks horrible. I attached the screen shot. What am I doing wrong?


Given a function $f(x)$ and a sequence of $n+1$ distinct nods, let $p_n(x)$ to be a polynomial interpolant of degree at most $n$, if we've been given equally spaced nodes then show that the error term is as follows: $$\prod_{i=0}^{n}\left|x-x_{i}\right|\le\frac{h^{\left(n+1\right)}n!}{4}$$ where $x_{i}=a+ih=a+i\left(\frac{b-a}{2}\right)$ and $0\le i\le n$. I tried to use this  to follow the steps , but still I'm not able to get what I want since I really hard tried for this object so knowing the proof is so valuable for me and any help is greatly appreciated.


I have one .txt file which has more than 1 million record inside. (rownum from 1 to 1 million) I need to divide this file into two 500k files in linux. (file1 = rownum from 1 to 500k and file2 = rownum from 500k to 1 million).    How can I do it?


Prove that the sequence $\{f_n\}_{n \in \mathbb{N}}$ is uniformly convergent on a compact space $X$

Let $X$ be a compact space and $f_n: X \rightarrow \mathbb{R}, n \in \mathbb{N}$ are continuous and $f_{n+1}(x) \le f_n(x),\lim\limits_{n\rightarrow \infty} f_n=0, \forall x \in X $.  Prove that the sequence $\left\lbrace f_n\right\rbrace$ is uniformly convergent on $X$.  I'm trying to prove that with $G_n=\left\lbrace x \in X: f_n(x) < \epsilon\right\rbrace \Rightarrow \exists n_0: \forall n \ge n_0: G_n=X$ but I didn't succeed. Any solution is appreciated. Thank you.


In /etc/group what is the meaning of the second field?

A sample /etc/group file contains the following entries:  root:*:0: adm:!:4:logcheck antoine:x:1000:   The man pages I've read (Debian & OSX) says the second field is to store a group password.  As they are rarely used, an asterisk * or a x is usually placed in it rather than leaving it blank.  The shadow man page also says that this second field should store the result of the crypt function.  And if an invalid result is stored (such as * or !) it means the password cannot be used as authentication method.  Does that hold true for the group file as well?  Why do I end up with 3 different characters in my group file all having the same meaning?  Can I safely change all to *?


Why do we say "last night" and not "yesterday night"?

As from object, is there a rational reason for saying "last night" rather than  "yesterday night", though you would say "yesterday morning" and "yesterday afternoon"?


Let $$x=\sqrt{a\pm\sqrt{b}}$$ We know that $$x=\sqrt{\frac{a+\sqrt{a^2-b}}{2}}\pm\sqrt{\frac{a-\sqrt{a^2-b}}{2}}$$ But, what about cubic root? Let $$y=\sqrt[3]{a\pm\sqrt{b}}$$ Is there any formula to find $c$ and $d$ such that $c,d\in\mathbb{Q}$ and $c\pm\sqrt{d}=y$ if $c$ and $d$ exists? For example, let $$a=\sqrt[3]{45+\sqrt{1682}}$$ It can be solved factoring terms: $$a=\sqrt[3]{45+29\sqrt{2}}=\sqrt[3]{27+27\sqrt{2}+18+2\sqrt{2}}=\sqrt[3]{(3+\sqrt{2})^3}=3+\sqrt{2}$$ Is there any formula for cubic root like square root?


Can not update packages in Tex Live Utility after installing Tex Live 2015

since Tex Live 2015 was released these days, I updated it. I´m using a Mac.  Now I wanted to check for package updates in the Tex Live Utility. But that does not work, unfortunately. First strange thing is that I have to choose the repository address by hand. Normally, this worked automatically. But even if I do so and choose an address, Tex Live Utility would show the following error message:  "The repository at  has TeX Live 2015, but you have TeX Live 18446744073709551615 installed.  You need to switch repositories in order to continue."  And there is also an error message regarding an "internal error".   Does anyone know what I have to do to get this working again? I guess it has something to do with updating to Tex Live 2015?  Thanks very much in advance.


Wifi Problems with Intel Centrino Wireless-N 2230 on Ubuntu 12.04

So I have searched high and low and nothing seems to work.  I bought this Lenovo p500 IdeaPad, got rid of Windows8 and threw Ubuntu 12.04 on here.  My Centrino Wireless-N 2230 card seems to be giving me trouble.  It will be at full speed at times (25MB down / 5.5 MB up) then drop to almost nothing (~2MB down / `0.5MB up) for no reason what so ever.  Usually within 5 minutes of rebooting.  I have tried everything out there on the web.  I have disabled Wireless N, I have turned off Power Management, I have disabled ipv6, etc etc.  Most changes seem to work initially and then not at all.  So is there a solution someone may have or help in the matter.  It has been a couple years since I have used Linux, so any help with commands and trouble shooting would be greatly appreciated.  Here are some terminal stuff:  rfkill list   1: ideapad_wlan: Wireless LAN     Soft blocked: no     Hard blocked: no 2: ideapad_bluetooth: Bluetooth     Soft blocked: no     Hard blocked: no 4: hci0: Bluetooth     Soft blocked: no     Hard blocked: no 5: phy1: Wireless LAN     Soft blocked: no     Hard blocked: no   iwconfig   eth0      no wireless extensions.  lo        no wireless extensions.  wlan0     IEEE 802.11bg  ESSID:"Birchcrest"             Mode:Managed  Frequency:2.437 GHz  Access Point: 68:7F:74:D4:0A:FA              Bit Rate=54 Mb/s   Tx-Power=16 dBm              Retry  long limit:7   RTS thr:off   Fragment thr:off           Power Management:off           Link Quality=50/70  Signal level=-60 dBm             Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0           Tx excessive retries:130  Invalid misc:203   Missed beacon:0


Why didn't the machine affect Bond in Spectre?

In the newest Bond movie, Spectre, there is a scene where bond is hooked up to a torture machine. He is told that       the first action will damage his eyesight and the the second action will cause him to forget all the faces he knew.   Both these actions occurred, but      he still remembers everyone's face, and 5 minutes later he is making precision shots from a large distance.   So it seems like the torture device had literally no effect on him. Is there a reason for this, or is it just poor movie making?


Explicit homeomorphism between open and closed rational intervals?

Sierpiński's theorem states that every countable metric space without isolated points is homeomorphic to $\mathbb{Q}$. (A proof can be found  and a discussion ).   An immediate corollary is that the rational intervals $[0,1],(0,1),[0,1)$ are homeomorphic. However, the theorem's proof is not very constructive and in fact quite complicated. (It's not a trivial theorem).   Is there a way to construct an explicit homeomorphism between these intervals?


How to remove address , page no date from HTML Print

I am using the below code to print a specific part from a Page.
  THIS PART WILL NOT BE PRINTED

    THIS PART WILL BE PRINTED
   Problem is still page no , web address date shows in the print . I want to remove these . Check the attached image . I want to remove yellow parts     Any idea ?


I have plenty of cemeteries and crematoria, and no significant traffic issues. Why so many dead people?


Disprove or prove $\sum_{n\ge1} \frac{\vert{\sin n}\vert}{n} $ is divergent.

I want to prove or disprove $\displaystyle\sum_{n\ge1} \frac{{\sin n}}{n}$ is absolutely convergent.  I can prove $\displaystyle \sum_{n\ge1} \frac{{\sin n}}{n}$ is convergent by dirichlet's test (Can I prove that $\displaystyle \sum_{n\ge1} \frac{{\sin n}}{n}$ converges without dirichlet's test), but I can't prove or disprove that $\displaystyle\sum_{n\ge1} \frac{\vert{\sin n}\vert}{n} $ converges.  Any help would be appreciated.


Freezes during or just after login on Dell XPS 15 9560

I installed 18.04 LTS and it froze on the lock screen. Yesterday I tried 18.10 and this got stuck after about 20 seconds of using it.   What could be the problem, and how can I fix it?


Is there a good (preferably comprehensive) list of which conjectures imply the Riemann Hypothesis?

I wanted to prepare a presentation for the students I tutor on the .   This is directed at the  and the Generalized Riemann Hypothesis.  The  is good at showing how many conjectures be come true if RH or GRH is proven to be true:   $GRH \implies Conjecture\;X$.   What am looking for is list of possible solution paths where; if something is true then the GRH (or the RH) is true or something is equivalent to GRH (or the RH):   $Conjecture\;X \;\implies GRH$. $Conjecture\;X \iff GRH$.   The Wikipedia article is a good reference for the first bullet point, but not for the last two.  I am looking for references to fill out a list regarding the last two bullet points for my presentation.


Given a cylinder surface $S=\{(x,y,z):x^2+2y^2=C\}$. Let $\gamma(t)=(x(t),y(t),z(t))$ satisfy $\gamma'(t)=(2y(t)(z(t)-1),-x(t)(z(t)-1),x(t)y(t))$. Could we guarante that $\gamma$ always on $S$ and periodic if $\gamma(0)$ on $S$?


Short sci-fi story involving a metal bar and a wormhole

I believe this story was from the same anthology as this other one:   I vaguely remember that an attempt is made using a metal bar to do something to the space on the other side of the wormhole (destroy it?), but at the very end, the characters realize that someone on the other side might in fact be doing the same thing to them.


GCC inline assembler, mixing register sizes (x86)

Does anyone know how I can get rid of the following assembler warning?  Code is x86, 32 bit:  int test (int x) {   int y;   // do a bit-rotate by 8 on the lower word. leave upper word intact.   asm ("rorw $8, %0\n\t": "=q"(y) :"0"(x));   return y; }   If I compile it I get the following (very valid) warning:  Warning: using `%ax' instead of `%eax' due to `w' suffix   What I'm looking for is a way to tell the compiler/assembler that I want to access the lower 16 bit sub-register of %0. Accessing the byte sub-registers (in this case AL and AH) would be nice to know as well.   I've already chosen the "q" modifier, so the compiler is forced to use EAX, EBX, ECX or EDX. I've made sure the compiler has to pick a register that has sub-registers.  I know that I can force the asm-code to use a specific register (and its sub-registers), but I want to leave the register-allocation job up to the compiler.


My wife has a Schengen Visa which was issued in Feb 2016 and is valid until Feb 2017. She has already been in Germany for around 80 days but not at a stretch and has been to other countries within these 80 days. She is now in India and wants to go back to Germany again for a month. Though on her current visa she will overshoot her Total 90 day stay. Can she get her current visa (Valid till Feb 2017) cancelled and re-apply for a fresh visa so that her 90 day clock resets? Would greatly appreciate any help.


Passing a value type (int) to async method don't make a copy of the value

static void Main(string[] args)     {         Program p = new Program();         p.TestAsyncInLoop();     }      private void TestAsyncInLoop()     {         var tasks = new List<Task>();         for (int i = 0; i < 20; i++)         {             //tasks.Add(Task.Run(() => PrintNo(i)));             var ii = i;              tasks.Add(Task.Run(() => PrintNo(ii)));         }          Task.WaitAll(tasks.ToArray());     }      private async Task PrintNo(int no)     {         Console.WriteLine(no);     }   Inside the for loop, I'm calling an async method "PrintNo(int no)" passing a parameter "i" which is value type (int). When the method starts to execute, the value of "no" equals to the current value of i (which is probably 20) not the value that was sent initially in the loop! A solution I did is copying the value of "i" before sending to a new variable "ii". This solution worked fine, but can you explain why the value of "i" was not copied to the method as in sync methods? (not working code is //commented)


In a question like this:  Say the block $M$ moves up with a velocity $v$, then which relation is correct:  $u\cos\theta=v$ or $v\cos\theta=u$  This is really confusing, is there any way to visualize this? I think that since rope moves with a velocity $u$ so $M$ moves up with a velocity $u\cos\theta$, but it's wrong, why? Help needed.


How can I show given a field $K$ that $(K[x,y,z]/(x^2+y^3+z^7))_{(x,y,z)}$   is a UFD?   I found that statement in a Wikipedia page so i'm not 100% sure it's true, maybe it's true for some field only?


Help Identifying Time Series Model From ACF and PACF graphs

I have a dataset of the popularity of a certain word on the internet, and they are weekly counts from 2010-09-05 to 2015-09-27 and has an upward trend. I'm having a hard time identifying the model from its graphs, and I would love some help to interpret its ACF and PACF models. Thanks in advance!


null pointer exception when accessing array with null reference

my method is supposed to compare a cat's name from the entire cat array. This is because my array will have nulls between created objects. for example [0(cat 0), 1(cat 1), 2(cat 2), 3( empty null), 4(cat 4), 5(cat 5)] I think the reason I am getting a null pointer exception is because I try to return a null and compare it to the param (String catName). How could I avoid this while still searching the entire array? /**  * @param catName to search for cat name  */ public void searchCatByName(String catName) {      if (cats[0] != null) {          if(catName != null) {             int index = 0;             while (index < cats.length) {                                   if(cats[index].getName() != catName) {                      if(index == cats.length - 1) {                          System.out.println(catName + " was not found in the cattery.");                         break;                     }                     index++;                 }                  else {                      System.out.println(cats[index].getName() + " is in cage " + index);                     break;                 }              }         }     } }


I just deleted a file and I want to recover it. I have seen many similar questions in here suggesting using Photorec but this recovers everything and has an estimated search time of more than 4 hours in my case.  I just want to find a specific file by using its name. Is that possible with Photorec or other software?


In PHP, is there an easy way to get the first and last date of a month?

I need to get the first and last day of a month in the format YYYY-MM-DD given only the month and year. Is there a good, easy way to do this?


PHPMailer sends email to spam in hotmail

I have problems with sending email with phpmailer in hotmail accounts. There are some answers here in stack overflow but none of them can solve my problem. I have the same smtp user and from, i do not include 'spam phrases' etc.. here is the code:  require 'phpmailer/PHPMailerAutoload.php';       $mail = new PHPMailer;   $mail->isSMTP(); $mail->Host = 'localhost';  $mail->SMTPAuth = true;                                 $mail->Username = 'xx@kk.com'; // SMTP username                  $mail->Password = 'yy'; // SMTP password $mail->setFrom("xx@kk.com"); $mail->addAddress(zz);                $mail->isHTML(true);                                 $mail->Subject = "sub"; $mail->Body     = "<!DOCTYPE html>"; $mail->Body    .= ""; $mail->Body    .= ""; $mail->Body    .= "
Thank you for using the Model. Your code is:
"; $mail->Body    .= "
FB-".$x."X".$z."X".$y1."X".$y2."-".$kind."-H".$y3."
"; $mail->Body .= "
ForenBox: ". $kind2; $mail->Body .= "
Long sides: ".$x."mm"; $mail->Body .= "
Height of Long sides: ".$y1."mm"; $mail->Body .= "
Short sides: ".$z."mm"; $mail->Body .= "
Height of Short sides: ".$y2."mm"; $mail->Body .= "
Height of Corners: ".$y3."mm
"; $mail->Body    .= ""; $mail->Body    .= ""; $mail->send();   Thanks!


Accept anything except than a specific string in middle with regex

I am trying to create a "simple" regex to match any string except a specific string in middle. Lets assume that the specific string is apple, Here are results that I expect:  apple -> false foo-apple -> false foo-apple-bar -> false empty-string -> true foo -> true   I tried:  ^(?!apple)$ ^(?!apple$) ^.*(?!apple).*$ ^(.*(?!apple).*)$   but none of them worked as I expected.  looks similar but the accepted answer is not working.


How to reference to a statement that itself is referenced by a paper other than original paper?

When I read a statement in a paper that is itself derived from another paper, how should I reference it when I use it in my own article? Should I reference the original article or the second article, or both?


Testing the series $\sum\limits_{n=1}^{\infty} \frac{1}{n^{k + \cos{n}}}$

We know that the "Harmonic Series" $$ \sum \frac{1}{n}$$ diverges. And for $p >1$ we have the result that the series converges $$\sum \frac{1}{n^{p}}$$ converges.   One can then ask the question of testing the convergence the following 2 Series:  $$\sum\limits_{n=1}^{\infty} \frac{1}{n^{k + \cos{n}}}, \quad \sum\limits_{n=1}^{\infty} \frac{1}{n^{k + \sin{n}}}$$ where $ k \in (0,2)$.  Only thing which i have as tool for this problem is the inequality $| \sin{n} | \leq 1$, which i am not sure whether would applicable or not.


Is it ok to say “Your barracks is finished”?

In the online game , the following sentence is used:     Your barracks is finished. A good step towards world domination.   Shouldn’t it instead be:   Your barracks are finished.   or    Your barrack is finished.


Returning redirect as response to XHR request

What happens if the browser receives a redirect response to an ajax request?


What good software is available for editing RAW photo files?

I have a DSLR (Canon 550D) and since I'm taking my first steps in the world of RAW photography I don't know which would be a good program to use to edit these files. I've tried  and  but wasn't satisfied. I'm sure there must be better software out there...


I have set a Debug Log in my sandbox Org but it did not capturing any logs.  Please advice what it my be the reason for it.


Where's Application Management in Sharepoint 2013 Online?

I've created a Publishing site using SharePoint 2013 Online, and want to allow anonymous users have access to the site.  My research on the internet has brought me to identical tutorials on how to do this, but I get stuck right at the beginning.  So the instructions follow as such:    "Navigate to Application Management in SharePoint Central Administration and click on Manage web application."    But, after logging in to Sharepoint's Central Administration, I can't find the Application Management section!   Where is it? Do I need to activate some kind of Collection feature to have access to it?  Here's the link to one of the tutorials I tried following:    Thank you! Nuno Vidal


Could somebody explain me how to sum the following series $$ (x-1) + (x-2) + ... + 1 = ? $$ I got above series as a part of equation and was wondering how to simplify it. As a matter of fact, we have arithmetic progression here which can be easily summarized. I used  to calculate the sum like . However, Wolfram did something which I don't understand. It simplified the equation and gave me the following result: $$ \sum_{k=0}^{x} \big(1-k \big) = -\frac{1}{2} (x-2)(x+1) $$ Don't see how to get the right-hand side of the sum. It looks like there is a theory behind the scene, but I don't know where to start looking from. My guess is it somehow connected with generating functions, but I'm not sure. Can somebody hint me?


I've completed the guns part of Barclay Mills but after a certain point doing the "garbage" cleaners missions there are no longer any missions on the map and I can't talk to Maria. Is there something I'm missing and it's not appearing......... any solutions?


remove links from gnome pannel - ubuntu 16.04

how to remove icon links from gnome panel?


Can't install software using apt-get install : hash sum mismatch and failed to fetch errors

I have a Ubuntu 16.10 64 bit machine.   When I try to do sudo apt-get install cmake, I get the following error:  After this operation, 20.8 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://us.archive.ubuntu.com/ubuntu yakkety/main amd64 cmake amd64 3.5.2-2ubuntu1 [2,779 kB] Err:1 http://us.archive.ubuntu.com/ubuntu yakkety/main amd64 cmake amd64 3.5.2-2ubuntu1   Hash Sum mismatch   Hashes of expected file:    - SHA256:28f7a54d94e32027321460169ddf7c66d627e96a275612e371064192b4f1fe75    - SHA1:be57190df55b20ddfc192570cd225436fa60caf0 [weak]    - MD5Sum:454e05c9e6ae224d3416b04f2a876699 [weak]    - Checksum-FileSize:2778872 [weak]   Hashes of received file:    - SHA256:d3981d14c6c2d2d0c42cc7dd00b42264e5e94f7bb2d5908ae3bbcc707e8a881b    - SHA1:9c2716a4ff17005f7a9f4c9b6cf9c370a5a813ef [weak]    - MD5Sum:9118651936fd4509d1dd98b662678ac6 [weak]    - Checksum-FileSize:2778872 [weak]   Last modification reported: Wed, 29 Jun 2016 15:10:18 +0000 Fetched 2,779 kB in 7min 48s (5,926 B/s)                                        E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/c/cmake/cmake_3.5.2-2ubuntu1_amd64.deb  Hash Sum mismatch    Hashes of expected file:     - SHA256:28f7a54d94e32027321460169ddf7c66d627e96a275612e371064192b4f1fe75     - SHA1:be57190df55b20ddfc192570cd225436fa60caf0 [weak]     - MD5Sum:454e05c9e6ae224d3416b04f2a876699 [weak]     - Checksum-FileSize:2778872 [weak]    Hashes of received file:     - SHA256:d3981d14c6c2d2d0c42cc7dd00b42264e5e94f7bb2d5908ae3bbcc707e8a881b     - SHA1:9c2716a4ff17005f7a9f4c9b6cf9c370a5a813ef [weak]     - MD5Sum:9118651936fd4509d1dd98b662678ac6 [weak]     - Checksum-FileSize:2778872 [weak]    Last modification reported: Wed, 29 Jun 2016 15:10:18 +0000 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?   When I run sudo apt-get update I get the following error.   #lot of lines like the next two lines Get:30 http://us.archive.ubuntu.com/ubuntu yakkety-updates/multiverse amd64 Packages [4,653 B] Get:32 http://us.archive.ubuntu.com/ubuntu yakkety-updates/multiverse Translation-en [2,076 B] Fetched 816 kB in 23min 40s (574 B/s)                                           Reading package lists... Done E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/yakkety-updates/main/dep11/icons-64x64.tar  Could not open file /var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_yakkety-updates_main_dep11_icons-64x64.tar.gz - open (13: Permission denied) [IP: 91.189.91.26 80] E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/yakkety-updates/universe/dep11/Components-amd64.yml.gz   E: Some index files failed to download. They have been ignored, or old ones used instead.   Can anyone kindly point me to a solution for this problem? Thanks.


How to dynamically create generic C# object using reflection?

In C# I have the following object:  public class Item { }  public class Task<T> { }  public class TaskA<T> : Task<T> { }  public class TaskB<T> : Task<T> { }   I want to dynamically create TaskA or TaskB using C# reflection (Activator.CreateInstance). However I wouldn't know the type before hand, so I need to dynamically create TaskA based on string like "namespace.TaskA" or "namespace.TaskAB".


How to disable shutdown/reboot/suspend/hibernate?

I have an Ubuntu 10.04 LTS Desktop PC with GNOME.   How can I fully disable the reboot/shutdown/suspend/hibernate functions in GNOME or even with root? So that the root gives out the "reboot" or "pm-suspend" command it doesn't do anything, and the machine goes on. How can I fully disable these basic "features"?


Evaluating $\int_{I^n} \left( \min_{1\le i \le n}x_i \right)^{\alpha}\,\, dx$

Let $\alpha \in \mathbb R$ and let's call $I:=[0,1]$. Evaluate   $$  \int_{I^n} \left( \min_{1\le i \le n}x_i \right)^{\alpha}\,\, dx.  $$   Well, the case $n=1$ is easy and the integral equals $\frac{1}{\alpha+1}$, for every $\mathbb R \ni \alpha \ne - 1$.  I've done also the case $n=2$ and, if I'm not wrong, it's $\displaystyle \frac{2}{(\alpha+1)(\alpha+2)}$.  My big problem is that I cannot understand how to deal with the general case. Any ideas?   Thanks in advance.


How to get the C# compiler to find HashCode?

I need to calculate a composite hash code from an array of object references. (Not an array of bytes.) It looks like there is something tailor-made for this:  So I have written some code to use it: public override int GetHashCode() {     var h = new HashCode();     foreach (var x in data)         h.Add(x);     return h.ToHashCode(); }  And it looks fine in Visual Studio 2019; no red underlines anywhere. But when I try to run an actual build using my build script: call C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat csc -debug -out:boot.exe -r:System.Numerics.dll Boot.cs lib\*.cs  I get an error message:  lib\VList.cs(96,21): error CS0246: The type or namespace name 'HashCode' could not be found (are you missing a using directive or an assembly reference?)  What am I missing? CSC was working fine with everything up to now. CSC /version says:  3.5.0-beta4-20153-05 (20b9af91)


"Wide" vs "Long" Database Structure - Is there a logic when to use which?

I'm currently setting up a database to house records for an application I'm writing and am trying to come up with the most efficient DB structure to use... Of course I know that there are as many answers to this as there are people with opinions, but there has to be some kind of logic as to what to do for different situations.  So, as a simple example of my situation. Suppose I was creating the DB in, say SQL Server, to store data about people. Currently there are is a set of, say, 100 characteristics I am storing per person (Some static such as, say, name, sex, etc - Some RELATIVELY static such as age, address, height - and some variable, sich as, say, weight, last_worn_pice_of_clothing... whatever) and I also want the architecture to be flexible enough to be able to accommodate any future characteristics that may come about (this won't happen "too often", but will happen).  So, my logic is that I could go with one of the following storage ideas:  (1)  People_Chars_Table:  Person_Id:    RunDate:    Name: ...<all the other chars> ... Char100: 1             2014-01-01  John Johnson ....                  Val100   In other words, store all the characteristics in a very wide table and every time I have a new characteristic to add, I simply add on a new column.    (2)  Person_Table:  Person_Id:   Characteristic_Table:  Char_Id:    Char_Name:    Char_ValueType: 1           Name          String 2           Age           Integer ....   People_Table:  Person_Id:    RunDate:     Char_Id:     Char_Value: 1             2014-01-01   1            John Johnson 1             2014-01-01   2            23 ....     What (2) seems to allow for is for characteristics to be added very quickly and easily, but it seems like querying out the data will always involve some kind of pivot operation that might slow things down (The 2 things that might also be important to know, by the way, is that this data will be queried fairly often and that the table would have about 100000 new people records added monthly - each with about 100-150 characteristics).  And, then, of course, there is a hybrid option of the person table having some of the pre-set characteristics and then using the rest from option (2).  Overall, I'm just wondering if there is any logic about what is the best practice or, aside from these 2 options I'm seeing, is there another way of handling this completely?  Any advice would be greatly appreciated!!! Thanks!!!


Is there a world that indicates the "zero-th" value in the series single, double, triple, ... ?  This came up in a humorous discussion of a double entendre. An interlocutor was accused of making a double entendre, to which they countered it was a "zeroth entendre", because there was no double-meaning, nor any straight forward ribald meaning (single entendre); therefore it was a _________ entendre, meaning that no improper interpretation could be made of the utterance.  I thought about "null", but I wonder if there is an official word in the series. Or, at least a word that fits the pattern better.  Edit Since a couple of comments have noted that a 0th entendre would technically have no meaning, please allow me to describe the context.  First, keep in mind that a double entendre is almost exclusively used to describe a situation where a phrase has a sexual innuendo meaning, despite the literal meaning of the phrase. In fact, it's probably a mischaracterization to describe a phrase with two possible meanings, neither of which are sexual, as a double entendre, according to common understanding. (I would be interested to see any references to the phrase double entendre used in a situation where neither meaning has sexual innuendo.)  The situation in which this question developed was one where it would be inappropriate to make any sexual remarks. Speaker A made a comment that, with some imagination, could be said to be a double entendre, by a stretch. Speaker B humorously noted this, and Speaker A quickly denied any sexual implications. Extending the joke, Speaker B then asked if it was a single entendre, meaning a straight-forward sexual comment, which would have been highly inappropriate in the situation, and perhaps indicate some negative consequences for Speaker A (please remember, the comment was only a double entendre by the longest stretch). Speaker A, wanting to end the conversation, stated emphatically that it was a 0th entendre, meaning that no sexual meaning whatever could be construed from the phrase.   As a humorous, playful use of language, entendre in this sense means "sexual meaning". "Zero-th entendre" would be "no sexual meanings whatsoever".


Is it possible to draw the diagram using latex?

Can I draw the diagram using tikz? If not, which software should I use for such diagrams? Thanks.


How do I give the ability in my addon panel to change this options in the particle settings?


Product symbol, order of multiplication if factors are not commutative?

Regarding the product notation... if we have non-commutative things (for example matrices): $$\prod_{i=1}^N {\bf A}_i$$ Is it by default assumed to mean $${\bf A}_1{\bf A}_2\cdots {\bf A}_N$$ or $${\bf A}_N{\bf A}_{N-1} \cdots {\bf A}_1$$ or maybe even an arbitrary order?


I have a really large tikz image which is difficult to fit onto one single page. My workaround was to load enumitem, but that makes my list crash:  \documentclass{beamer}  \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage{svg} \usepackage{enumitem} \usepackage{tikz} \usetikzlibrary{chains, positioning, shapes.symbols} \usepackage{etoolbox} \usepackage{enumitem}   %\usepackage{gensymb} %\usepackage{siunitx}  %\sisetup {     %locale = DE,     %per-mode = symbol %}  % THEME AND COLOR SETUP \usetheme{CambridgeUS} \usecolortheme[RGB={205,0,0}]{structure} \setbeamertemplate{items}[triangle] \setbeamertemplate{sections/subsections in toc}[square]  \newcommand{\quoted}[1]{     \glqq#1\grqq } \date{27. June 2018}  \mode<presentation>{}   \tikzset{start/.style = {signal, draw=#1, fill=#1!30,          text width=16mm, text=black, minimum height=23mm, font=\tiny,          signal pointer angle=150, on chain},      cont/.style = {start=#1, signal from=west, text=black}     }  \begin{document} \beamertemplatenavigationsymbolsempty   \setlist[itemize]{leftmargin=*}  \title{MS Powerpoint and TeX} \author{Narusan}  \begin{frame}     \frametitle{Revision}         \begin{center}         \begin{tikzpicture}[         node distance = 2mm,          start chain = going right,          mylabel/.style={anchor=north west,font=\bfseries\tiny, color=black}              ]      \node[start=gray!60!white, label={[mylabel]north west:Meldebogen}] {         \begin{itemize}                  \item {\color{black}{einziger Anhaltspunkt f\"{u}r Verfahren}}                  \item \"{U}berpr\"{u}fung der Angaben schwer                                \end{itemize}                };     \node[cont=gray!60!white, label={[mylabel]north west:Anklage}] {    \begin{itemize}                     \item \color{black}{Einflussreiche Nazis konnten Anklage entgehen}                 \end{itemize}           };     \node[cont=gray!60!white, label={[mylabel]north west:Beweisaufnahme}] {                 \begin{itemize}                     \item \color{black}{Kl\"{a}ger ermittelt kaum}                     \item Persilscheine                     \item Zeitdruck                 \end{itemize}                };     \node[cont=gray!60!white, label={[mylabel]north west:Urteil}] {              \begin{itemize}                     \item\color{black}{Gerichte nicht unabh\"{a}ngig}                     \item Laiengerichte                     \item \"{o}ffentlicher Druck             \end{itemize}       };     \node[cont=darkred!80!black, label={[mylabel]north west:Revision}] {               \begin{itemize}                         \item \color{black}{Gerichte sind im Nachhinein oft nachl\"{a}ssig}                         \item Einstufung aufgrund wirtschaftlicher Bedenken                     \end{itemize}                           };           \end{tikzpicture} \end{center} \end{frame}  \end{document}


Null Pointer Exception at 'if' statement

Im getting furious, because Im still getting an error at my code:  myVar = getFiles(); (...) public ArrayList<HashMap<String, String>> getFiles(){     File dir = new File(new String("/sdcard/"));      if (dir.listFiles(new myFilter()).length > 0) {         for (File file : dir.listFiles(new myFilter())) {             (...)         }     }     return myList; }   at if statement:  if (dir.listFiles(new myFilter()).length > 0) {   This is what i get:  01-13 22:28:42.313: W/dalvikvm(13776): threadid=1: thread exiting with uncaught exception (group=0x40c5a1f8) 01-13 22:28:42.318: E/AndroidRuntime(13776): FATAL EXCEPTION: main 01-13 22:28:42.318: E/AndroidRuntime(13776): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.remotedevice/com.example.remotedevice.Player}: java.lang.NullPointerException 01-13 22:28:42.318: E/AndroidRuntime(13776):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1967) 01-13 22:28:42.318: E/AndroidRuntime(13776):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1992) 01-13 22:28:42.318: E/AndroidRuntime(13776):    at android.app.ActivityThread.access$600(ActivityThread.java:127) 01-13 22:28:42.318: E/AndroidRuntime(13776):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1158) 01-13 22:28:42.318: E/AndroidRuntime(13776):    at android.os.Handler.dispatchMessage(Handler.java:99) 01-13 22:28:42.318: E/AndroidRuntime(13776):    at android.os.Looper.loop(Looper.java:137) 01-13 22:28:42.318: E/AndroidRuntime(13776):    at android.app.ActivityThread.main(ActivityThread.java:4511) 01-13 22:28:42.318: E/AndroidRuntime(13776):    at java.lang.reflect.Method.invokeNative(Native Method) 01-13 22:28:42.318: E/AndroidRuntime(13776):    at java.lang.reflect.Method.invoke(Method.java:511) 01-13 22:28:42.318: E/AndroidRuntime(13776):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:980) 01-13 22:28:42.318: E/AndroidRuntime(13776):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:747) 01-13 22:28:42.318: E/AndroidRuntime(13776):    at dalvik.system.NativeStart.main(Native Method) 01-13 22:28:42.318: E/AndroidRuntime(13776): Caused by: java.lang.NullPointerException 01-13 22:28:42.318: E/AndroidRuntime(13776):    at com.example.remotedevice.Player.getPlayList(Player.java:120) 01-13 22:28:42.318: E/AndroidRuntime(13776):    at com.example.remotedevice.Player.onCreate(Player.java:56) 01-13 22:28:42.318: E/AndroidRuntime(13776):    at android.app.Activity.performCreate(Activity.java:4470) 01-13 22:28:42.318: E/AndroidRuntime(13776):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1052) 01-13 22:28:42.318: E/AndroidRuntime(13776):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1931) 01-13 22:28:42.318: E/AndroidRuntime(13776):    ... 11 more   I've read this topic :  but havent find answear, which I could use to my code :/ I've tried few 'solutions' but still getting this error :( PLEASE HELP!


Help with the functional equation $f(x - f(y)) = f(f(y)) + 2 x f(y) + f(x) - 1$

I am asked to find all $f : \mathbb{R} \to \mathbb{R}$ such that $f(x - f(y)) = f(f(y)) + 2 x f(y) + f(x) - 1$, which I solved and got that $f(x) = 1 - x^2$ -- a correct solution and everything.  What puzzles me is how do I find all solutions. I wrote that all functions $g : \mathbb{R} \to \mathbb{R}$ which map in the same way as $f$ are solutions, but is there something I'm missing here?  Have an awesome day, all of you.


This is an employee-management-system. Which has some cool functions(methods)like searching for an employee by the index position, registering users by index position etc. Now at its last functionality, I face a big issue and don't know where the problem could be.   Will share the method and the error message but could also share the whole code if someone is interested, but keep in mind I am sure that it lays somewhere hidden in the method:   public static void sucheL(String[] nN) {         Scanner sc = new Scanner(System.in);         System.out.println("Geben Sie den Text ein: ");         String nn = sc.nextLine();         boolean gefunden = false;         // check for all the entries in nN         // if the entry starts with the entered String or         for (int i = 0; i < nN.length; i++)             if (nN[i].startsWith(nn)) {                 System.out.println("Der Name " + nN[i] + " beginnt mit " + nn);                 gefunden = true;                 // break;                 // if it contains the entered String             } else if (nN[i].contains(nn)) {                 System.out.println("Der Name " + nN[i] + " enthält " + nn);                 gefunden = true;                 // break;             }         if (!gefunden) {             System.err.println("Es wurde kein Name gefunden, der mit dem eingegebenen Text beginnt oder ihn beinhaltet");         } else {             System.out.println("Es wurde mindestens ein Name gefunden, der mit dem eingegebenen Text beginnt oder ihn beinhaltet");         }     }   Error message:  Exception in thread "main" java.lang.NullPointerException     at PersonalVerwaltung.sucheL(PersonalVerwaltung.java:148)     at PersonalVerwaltung.main(PersonalVerwaltung.java:54)


Why are most scientific articles locked behind a paywall?

Can someone give me a legitimate, convincing argument as to why scientific papers should be locked behind subscriptions and paywalls? That unless you happen to be on a campus, you can't get view a manuscript without paying an often extortionate amount?


How to convert a colored file to mail readable in bash?


Can you omit the return type in main function?

Are there some special rules with respect to the declaration of the main function?  According to  this is legal C++:  main()  // As opposed to int main() {    return 0; }   On the other hand, normal functions do not seem to have the privilege to avoid the return type:  f(){}   int main() {     return 0; }   Gives the error:     prog.cpp:1:3: error: ISO C++ forbids declaration of 'f' with no type   [-fpermissive]  f(){}    ^   Is the main function special in this case?


Show that (x-1)^2 is a factor of.......?

Show that $(x-1)^2$ is a factor of $x^n-nx+n-1$  Here's my approach:- Letting $P(x)=x^n-nx+n-1$ I tried putting $P(1)=0$ but it would only prove for $,(x-1)$  Here's what I can think of, $x^n-1-nx+n=(x^n-1)-(nx-n)=(x-1)(x^{n-1}+x^{n-2}+x^{n-3}................+x+1)-n(x-1)$  Because $x^n-y^n=(x-y)(x^{n-1}+x^{n-2}y+x^{n-3}y^{n+1}................+xy^{n-2}+y^{n-1})$  $=(x-1)[x^{n-1}+x^{n-2}+x^{n-3}................+x+1-n]$  But I am not able to proceed any further neither I am able to get $(x-1)^2$ as common factor.


An object reference is required for the non-static field, method, or property System Entity

So here is my call   Guid deliveryId = p.DeliveryDomainId; string test = "TEST"; Guid realDeliveryID = Changepoint_Entities.P_BOOST_GENGetCodeDetailId(test, deliveryId);   And this is the method I try to call wich is an SQL procedure, the code is auto generated from a dmx file so I can't change this :   public virtual ObjectResult<Nullable<System.Guid>>P_BOOST_GENGetCodeDetailId(string codeType, Nullable<System.Guid> codeDetail) {     var codeTypeParameter = codeType != null ?         new ObjectParameter("CodeType", codeType) :         new ObjectParameter("CodeType", typeof(string));      var codeDetailParameter = codeDetail.HasValue ?         new ObjectParameter("CodeDetail", codeDetail) :         new ObjectParameter("CodeDetail", typeof(System.Guid));      return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<Nullable<System.Guid>>("P_BOOST_GENGetCodeDetailId", codeTypeParameter, codeDetailParameter); }   I get this error when compiling :      Error 30  An object reference is required for the non-static field, method, or property 'EBE.Entities.Changepoint_Entities.P_BOOST_GENGetCodeDetailId(string, System.Guid?)'  d:\userfiles\aorset\documents\gitrepo\dpaebe\ebe_final\ebe_final\controllers\datacontroller.cs  462 39  EBE_Final   I am a bit of a noobie in C# so I don't really what I am doing wrong.  Do I need to use statics or something ? Because the call is in a for loop so I don't know what to do. Thanks in advance :)


What objects are interactive on the playing board?

When playing against slow opponents I spend most of my time clicking the interactive areas of to boards like the catapult, bonfire and farm.  I have multiple times though I had found them all but then found a new place to click.  So what are the places you can click on each board to have something happen?


How could all versions of Neo look identical?

In Matrix: Reloaded, the wall of screens inside the Architect's room shows various versions of Neo screaming and cussing as the Architect reveals that the prophesy is a lie and that there have been in fact five versions of Neo before him.  All the faces on screen look identical. How can this be if a person's residual self image inside the Matrix is a close approximation of that person's real physical appearance? Were all the "One"s clones, or are there people whose RSI is different from their real appearance or did the screens show something other than the previous versions of Neo?  Edit:   Reopening the question after watching the scene again. As Neo says "There were five ones before me?", those on the screens are heard saying "Four?", "Two?" etc. It seems they're the predecessors.


How am I able to insert an ArrayList into a constructor that accepts List?

I have this class:  public class TestSubject {     public TestSubject(List<Integer> list) {     } }   I'm instantiating it like this and somehow it's working, even though I'm inserting an ArrayList<String> into a constructor that accepts List<Integer>:  List<String> strings = new ArrayList<>(); strings.add("foo"); Constructor<TestSubject> constructor = TestSubject.class.getConstructor(List.class); TestSubject test = constructor.newInstance(strings);   This is what I see after instantiation:    How can this be possible?  Also, how can I make sure from the instantiation code that the correct type of list is being used?


SSH: Disable FTP(sftp) for certain users?

I'd like to know how to disable sftp or FTP access in general for a certain user through SSH. I've found many articles describing how you can enable sftp without SSH access, but sadly no article on how to do the opposite.


Trichromelibrary was suddenly downloading from Google Play Store

From nowhere, my friend got a notification that com.google.android.trichromelibrary was downloading together with a progress bar.  Why?


How to export tangent data from blender with python

I an trying to implement normal mapping in opengl es for which i need the per vertex tangent data. Is there some means to get that from python blender api


I'm asking myself a question about how to warm my house up, and the efficiency of such a thing :  I live in a theater, and we got plenty of 1000W lighting fixture, mostly Tungsten incandescence things, like . According to my research on the web, the energy efficiency of those thing is  So, if I assume that the rest 95%+ is wasted on heating, that might means they are not far away from typical heaters. Bonus point is, it gives me some light.  But I'm not sure it really works that way.  So the question is : where is really all the wasted energy of a tungsten incandescence fixture really spend on ?


I am not sure how to use using statement correct. I try like this: [HttpDelete("{ClubId}", Name = "DeleteOpenings_Club")] public async Task<IActionResult> DeleteClub_IsOpening([FromRoute] string ClubId) {         using (_db_ClubIsOpen)         {             var result = _db_ClubIsOpen.ClubIsOpen_TBL.Where(x => x.FK_Club == ClubId);              foreach (var item in result)             {                 _db_ClubIsOpen.ClubIsOpen_TBL.Remove(item);             }              _db_ClubIsOpen.SaveChanges();              return Ok();         } }


How to Setup the Workspace for Mavensmate

I've tried like they mentioned on GitHub. I am not able to set up the workspace for my work laptop. The error is says:     Your [mm_workspace] setting is not configured properly. Please ensure any locations specified in mm_workspace exist on the system, then try your operation again.   I created the folder on my desktop called MavensMate. I installed Package Control and I set up the "mm_workspace" to:   "/Users/oyl956/Desktop/workspaces/mavensmate"


Is there some CUDA support in the 'nouveau' driver?

From what I understand the 'nouveau' driver does not support CUDA. I compiled a very simple CUDA program and was very surprised that it did actually run successfully. Is there now some CUDA support in the 'nouveau' driver?  Edit: What I did was building a simple CUDA program that allocates and initializes a number of arrays of floating point numbers, launches a saxpy kernel and compares the result. In fact the program ran fine (main returned 0) which had me concluded that also all other part of the program ran fine. Since I'm running the nouveau driver I further concluded that some CUDA support is available. What I did not pay attention to was the fact that the program's result was actually wrong. It looks like the program didn't launch the compute kernel but did everything else. I didn't consider this a possibility.  This is Ubuntu Desktop 20.04 with GFX1070 on Intel based PC.


I want in following examaple change the day of week according the inputted day. When I use dia in the document work, but when I use inside newcommand doesnt (look the example)  \documentclass{article} \usepackage{etoolbox}  \makeatletter \def\dia#1{\ifstrequal{#1}{monday}{thuesday}{something}} \makeatother \newcommand{\dayone}{monday} \newcommand{\daytwo}{\dia{\dayone}} \def\daytwo{\dia{\dayone}} \begin{document}  If variable dayone is monday the resul must be thuesday, and is \daytwo \\  But if I use dia the result is correct.\\  \dia{monday}\\  \dia{asdasd}\\  \end{document}


I'm planning to buy a phone that support the ubuntu platform.Please help me to select one from the list.  1.Asus Zenfone 4 A450CG  2.Lenovo A526  3.Lenovo A390  4.Lenovo A680  which of these provides hassle-free ubuntu experience? please help me


App crashing when trying to open gallery Android pie

I am trying to select image from gallery and code is working well on devices upto andorid nogut(7). I have added provider.xml also. This is my code     public void processSelectionOfImage(int code) {     Intent intent = new Intent();     intent.setType("image/*");     intent.setAction(Intent.ACTION_PICK);      Uri fileUri = getOutputMediaFileUri(MEDIA_TYPE_IMAGE);     intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri);      try {         intent.putExtra("return-data", true);         startActivityForResult(                 Intent.createChooser(intent, "Select Picture"), code);     } catch (Exception e) {         e.printStackTrace();     }  }   I am getting NullPointerException    java.lang.NullPointerException: file     at android.net.Uri.fromFile(Uri.java:453)


What is my spell save DC as a level 1 Assassin archetype rogue? (I have no spells)

What is my spell save DC?    I am a level 1 Rogue (going Assassin archetype) and have no spells.    My stats are as follows:   STR: +1   DEX: +3   CON: +2   INT: +1   WIS: +0   CHA: +2


Would a Windows 10 install overwrite Linux/Grub?

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