Are normed vector spaces with countably infinite algebraic dimension never complete?

I'm not quite sure about this but I wrote down during a lecture that a normed vector space with an algebraic basis containing a countably infinite number of elements is never complete.  What I mean by algebraic basis is that the elements of this vector space are the finite combinations of those from the basis.  I'm wondering whether the statement should actually contain "infinite" instead of "countably infinite" but I'm not even sure.  Can anyone tell me whether this statement is true or correct me if it's close to being true ?


Comment first, then answer, what's the etiquette?

I have come across this scenario on several occasions where a user posts a comment that answers the question. When they receive positive feedback, they post it as an answer. Is this bad practice? In my own case, if I am not 100% sure I will comment first and see if that worked for the OP. Sometimes there are more than one problem and that is why I don't post an answer immediately. Here is an example  that illustrates the issue. Should the first commenter get the credit, or the first answerer?


How to model text with ridges (car badge)

So I've been learning some blender the past few months but up until now I have never really used edit mode or made some hardsurface modelling. I am trying to replicate this  First I used solidworks to set the correct dimension and make the contour, however I cannot do the bevelled top on solidworks because they are not that regular (at least i do not know how to do it). Simply adding a bevel does not work since the inside and outside bevels are not that regular... so I threw it into blender to try this out. However hardsurface modelling is not as easy as i tought ... After importing my stl into blender I have this topology  I have cleanned it out using decimate geometry and limited disolve to end up with this  All of them except the 0 looks ok, but when i try to apply a bevel it goes haywire...  Dunno whythat happens... does anyone know an easier way to achieve what I want ? Basically there is an offset centerline on each of the characters (it is not centered it tends to be closer to the inside part of each letter) and the outside and inside bevels must coincide with it.


Not able to install unity-tweak-tool in Ubuntu 14.04

Installation of Unity-tweak-tool is stuck at 0% and showing nothing. I've to press CTRL+C to stop. I've checked internet connection and it is working fine.


Are Desktop Environment and Desktop Managers same thing on Linux, if yes how to know which desktop manager I'm using from my terminal?  Is task manager also the same desktop manager?


Messing with time in the Avengers: Endgame climax

Did the Avengers timeline change after stark snaps his finger and kills "Thanos from the past"?  if "Thanos from the past" if killed in the movie ending in the present, then that would mean there would be no Thanos in the past who'll collect stones and wipe out half the universe right?  And that alters the timeline?   Not only this, when Cap from the present goes back to restore the infinity stones and  decides to live his life fully... doesn't that mean there would be two Caps now in the present... One who'll go through Hydra, icing, and all that we know and the other one who lives his life with Margaret?


What is the proper way of giving a program network interface privileges without hard-coding the sudo password?

I'm developing a small tool to record some sensors in GNU/Linux. Some of the sensors transmit their data over UDP, so I'm using  to capture it.  I would like to control the sensors start/stop from a webapp, but listening to a network interface requires root privileges. I don't like the idea of hard-coding  a sudo-password to run the sniffer every time a button is clicked and I would rather avoid running all my processes as root, but surely must be a proper way to give interface access permissions to a process so the sniffing can be started from, let's say, a python or bash script.  Can someone give me any hint?


Where is the reputation list required for permissions to do stuff on Stack Overflow?

I would like to know how many reputation points I need to perform each possible task in Stack Overflow. Is there a publicly available page on Stack Overflow from where I can get this information?


Does usb 2.0 port differs from usb 3.0 port on pc case

My main board has only usb 3.0 ports. If I connect those ports to USB 2.0 ports on pc case will they work as USB 3.0 port (with full speed) or will they work as USB 2.0 ports (with lower bandwith). In other words do 2.0 ports differt from 3.0 ports on computer casing?


Sandbox modifies subject on email sent from trigger

I am writing a trigger in a sandbox, and am sending an email through the sandbox. I've added a the Account Name to the Subject in my trigger.   When the email is sent from the trigger, Salesforce appends "Sandbox:" before the subject I wrote in apex.   Is there a way to remove the "Sandbox:" subject from emails send out of a sandbox?


Prove by induction that ∣z1+z2+⋯+zn∣≤∣z1∣+∣z2∣+⋯+∣zn∣ for all n∈ℕ n N .

the question is as above, I don't know how to write ic and ih. can anyone give a complete answer? appreciate it


Using find with grep, one can locate files that match a pattern:  # find | grep error ./solr-modifiedSolr4/SolrPhpClient/phpdocs/errors.html ./error_log ./includes/classes/error_log   However, using find alone the first file is not found:  # find . -name error* ./error_log ./includes/classes/error_log   Why doesn't find locate the errors.html file when not used with grep? How is find used to show this file as well?


I'm having trouble installing virtualbox 5.1 via the CLI .. my software install is not installing the Deb package

I tried to follow another question that had the same problem but the command:  sudo apt-get install linux-headers-$(uname -r) build-essential virtualbox-5.1 dkms returns E: Package 'virtualbox-5.1' has no installation candidate Can anyone help me with this?   I had this all working then I rebooted and my virtualbox installation had vanished .... which I'm sure is a whole another can of worms. I just want Virtualbox installed. Please help.  Just FYI I try and install this through Ubuntu Software (after downloading 5.1) and the Install button goes gray for about two seconds then in my launcher an icon comes up and says "waiting to install"  A solution to either of these problems would suffice .. help.


Derive Parameters for Unknown Flyback Transformer

I am designing a 1.7 kV @ 6 mA flyback power supply. The issue I have is that it seems to be extremely difficult to find any type of high voltage flyback transformers for the design. I bought a cheap generic CRT flyback to experiment with, but being generic it has no datasheet to speak of. I assume I can derive the winding ratio easily enough, but what about the other parameters? For example, to figure out the optimum frequency can I just do a frequency sweep until I find the highest output voltage?


How Closure is getting applied in this code?

In this code, nextVal seem to be remembered by the function but i am unable to understand.  var gimmeSomething = (function(){         var nextVal;          return function(){             if (nextVal === undefined) {                 nextVal = 1;             }             else {                 nextVal = (3 * nextVal) + 6;             }              return nextVal;         };     })();      gimmeSomething();       // 1     gimmeSomething();       // 9     gimmeSomething();       // 33     gimmeSomething();       // 105


Custom Rotation for a tilted aircraft flap

I've been modeling an F-15, but when I rotate the flaps on Y-Axis the Flaps offset from the wing and they look like they are about to fall out, so I end up correcting it by rotating in the X and Z-axis to align them correctly.  However when I rotate them back from the Y-Axis they look distorted again because I did rotations on the X and Z axis. I tried riding it, no help. I saw something about custom orientation to fix it but that was not clearly explained and it was done on an ideal plane that was (0,0,0); mine is pre-rotated on all axis.   I'll take scripts if needed and I'm using Blender 2.8.  When I rotate it on the Y-Axis:    Fixing it using X and Z rotation:    Rotating it back on the Y distorted it again:    Here's the wing with ailerons and flaps:


Cannot add to list in a class-collection framework

New to collections and trying out the below code, I am getting the below excpetion:     Exception in thread "main" java.lang.NullPointerException      at org.first.collectionsframework.CollectionsFirsttest.addCountytolist      at org.first.collectionsframework.CFTmain.main(CFTmain.java:16)    My classes are as shown below, can some onepoint me to what I am doing wrong:     1st: CollectionsFirsttest       2nd: CFTmain   public class CollectionsFirsttest {    String name;   int employeeID;   String city;   List<String> county;  /* constructor*/ public CollectionsFirsttest(){ }  public String getName() {     return name; }  public void setName(String name) {     this.name = name; }  public int getEmployeeID() {     return employeeID; } public void setEmployeeID(int employeeID) {     this.employeeID = employeeID; } public String getCity() {     return city; } public void setCity(String city) {     this.city = city; }  public void addCountytolist(String x) {     this.county.add(x);     System.out.println("County added is:" +x); }   }      2nd: CFTmain  public class CFTmain {  public static void main(String[] args) {     CollectionsFirsttest CFTobject1=new CollectionsFirsttest();     CollectionsFirsttest CFTobject2=new CollectionsFirsttest();     List<Object> objlist= new ArrayList<Object>();      CFTobject1.setName("Dummy");     CFTobject1.setEmployeeID(001);     CFTobject1.setCity("Wonderland");     CFTobject1.addCountytolist("cvs1");     CFTobject1.addCountytolist("cvs2");     CFTobject1.addCountytolist("cvs3");      CFTobject2.setName("Pumkin");     CFTobject2.setEmployeeID(002);     CFTobject2.setCity("Wonderland");     CFTobject2.addCountytolist("mtv1");     CFTobject2.addCountytolist("mtv2");     CFTobject2.addCountytolist("mtv3");      objlist.add(CFTobject1);     objlist.add(CFTobject2);      display(objlist);  }        public static  void display(List<Object> l) {             System.out.println(" The values in list:"+System.identityHashCode(l));             for (Object d: l)             { System.out.println("the values in the first object  is"+System.identityHashCode(d));                 System.out.println ("The name in"+ d.getClass());             } } }   To some people my error might be pretty simple, but since I am new, hope its eating me up. I am running into error as soon as I am trying to enter county into the List. CFTobject1.addCountytolist("cvs1");


If $a_1,a_2,a_3$ are roots $x^3+7x^2-8x+3,$ find the polynomial with roots $a_1^2,a_2^2,a_3^2$

If $a_1,a_2,a_3$ are the roots of the cubic $x^3+7x^2-8x +3,$ find the cubic polynomial whose roots are: $a_1^2,a_2^2,a_3^2$ and the polynomial whose roots are $\frac{1}{a_1}, \frac{1}{a_2}, \frac{1}{a_3}.$ Not really sure where to go. Hints appreciated.


regex, force a digit to match \d and not \w or dot

Good morning everyone,  Here is my issue: I have the file name test1.pdf and I want to check if the last character before .pdf is a digit. If it is, I want to extract it. The following regex work:  (\D*)(\d?)(\.pdf)   I get my 3 elements: test/1/.pdf  But now my file is named test1test1.pdf. So I try this regex;  (\w*)(\d?)(\.pdf)   My regex isn't working anymore because I get: test1test1/.pdf instead of test1test/1/.pdf. So the last digit before the .pdf is included in (\w*)  This regex will solve this issue:  (\w*)(\d{1})(\.pdf)   But it won't work if there is no digit before the .pdf. It won't match test1test.pdf for example.  I know some regex that will fix my problem but I find them not really elegant. Is there a way to force a digit to match \d rather than \w or dot, or is there a way to specify "end of parenthesis" like "end of string" with $?  Thank's for your help or tips (btw I'm using PHP and the preg_match() function)


Over the last month, on some of the sites I visit regularly there seems to be a marked decrease in new questions and answers.    I personally have not noticed as much on work related sites, like dba.se but on personal hobby and development sites, there seems to be a sharp decline.  Is it possible to define what the level of post activity has been in the last month compared to other related times (i.e. same month last year, last year overall)?


Why do I need to pass the class instance or object to a function definition inside a class?

Say I have a class:  class myM():     def __init__(self):         print("original")   I then instantiate this class  a=myM() From which I can call  a.__init__() However, if I use the class itself to call __init__, myM.__init__() results in an error.  These 2 options work however: myM.__init__(myM) and myM.__init__(a) where a=myM().  Question:  Why do I have to pass myM or a as an argument to __init__, for myM.__init__ to work?  Why dont I need to do that if I call a.__init__() instead?


Xubuntu X11VNC and Vino VNC - broken text and menus

Text in menus looks broken when I connect to my Ubuntu 14.04 installation via X11VNC or Vino  Image:


Why is the careers section only open to Programmers/Developers?

Looking at the first page of the careers section, I can see that 3/4 of all jobs are for pure developers, but the other 1/4 is for Linux Engineers, Product Managers, Program Managers, ...  So, I've got an extremely simple question:  "Why is the careers section only open to developers???" :/  Some background:  If you're not a Stack Exchange Inc. policy maker, please do be so kind as to refrain from answering as this is a pure policy question...  :(  Yes, I know I can still look for jobs on careers and then contact the companies directly... >:)


Pass different values as componentvalue to  in

<apex:repeat value="{!blocksThatAreComponents}" var="key">
                               <apex:dynamicComponent componentValue="{!PageComponentsMap[key]}" />
 </apex:repeat>   I am trying to use apex:repeat and display a number of dynamic components. Problem is the key variable in {!PageComponentsMap[key]} evaluates to null for reasons I do not understand. On the div, it evaluates well but not on the dynamic component.  If I change {!PageComponentsMap[key]} to {!PageComponentsMap['somekey']} where (key == 'somekey'), it works.   I found out that due to visualforce page execution order, dynamic components are rendered first before any other thing on the page so by the time they are rendered, key is null. To solve that, I set the invokeAfterAction attribute of dynamic component to true.   <apex:repeat  value="{!pageComponents}" var="pc">                   {!pc}         <apex:dynamicComponent invokeAfterAction="true"  componentValue="{!pc}"/>  </apex:repeat>   That way the other things in the page are rendered before the dynamicComponent. Problem with this is that it uses the last value of pc for all the components which means that it renders the same thing many times  public class getPageContent {             public List<ApexPages.Component> pageComponents { get; set; }         public getPageContent() {                   pageComponents = new List<ApexPages.Component>();         pageComponents.add(new Component.c.GSCMS_ChatterFeed());         pageComponents.add(new Component.c.GSCMS_SVGExample());         pageComponents.add(new Component.c.SampleComponent());                 }          }       How do I make it use the different values of pc that I have  Update to the question :  Though there are distinct values of Page components it renders only the last added component as below.


I was going to upgrade to 20.04 from my recently install 19.10, but when I run sudo do-release-upgrade it tells me there is no LTS version to install. Is 20.04 not ready for server installation? I am running a cloud server with Ubuntu.


I am downloading a very large package and my internet connection isn't the fastest, so browsing the web at the same time is a pain. How can I limit the bandwidth apt-get uses?


Book based on "Around the World in 80 Days", with the main character travelling quickly around the world in a balloon

I recall reading a novel length work 30+ years ago.  It was loosely based on  I recall the Jules Verne story being mentioned in this work, but as fact not fiction. Something like "I realized I could beat the record of 80 days to get around the world".  A male character is traveling by balloon (or there is a balloon at the end, or both), some how gets most way around the world very quickly and lands on an island where a group of people have a futuristic society mostly based on good use of current technology. It may also have been that he was shipwrecked on the island and left in a balloon, traveling fast when the volcano erupts.   I recall one scene where the tables and chairs in the dinning hall, sink into the floor, leaving the table tops flush with the floor for quick easy clean up.    The island is a volcano and diamonds from the volcano play a part some how. I have Googled around for it, but I can't remember the title, author or how many days it took.  There are a lot of hits related to "Around the world".


Error in getContentResolver when not uploading image

i want to ask about error of my project. My project (add data) have a uploading image function, when i not uploading the image, why my project get error ???   It's my script  for(int x = 0; x < 1; x++){         String outFileName = DB_Path + sNama + x + ".jpg";         InputStream myinput = null;         try{                 myinput = getContentResolver().openInputStream(selectedImage[x]);           }catch(FileNotFoundException e){             //e.printStackTrace();         }         OutputStream myoutput = null;         try{             myoutput = new FileOutputStream(outFileName);         }catch(FileNotFoundException e){             e.printStackTrace();         }         try{             IOUtils.copy(myinput, myoutput);         }catch(InterruptedException e){             e.printStackTrace();         }catch(IOException e){             e.printStackTrace();         }          try{             myinput.close();         }catch(IOException e){             e.printStackTrace();         }          f1 = sNama = "_" + x + ".jpg";          sFoto1 = sNama + "_" + 0 + ".jpg";         }      }   and it's the error  11-18 13:20:45.855: E/AndroidRuntime(1214): java.lang.NullPointerException 11-18 13:20:45.855: E/AndroidRuntime(1214):     at android.content.ContentResolver.openInputStream(ContentResolver.java:303)  error is  myinput = getContentResolver().openInputStream(selectedImage[x]);


Im having trouble figuring out that, if I'm in let say the directory /home/test/test2 but I want to find the number of files in the /home directory, how would I do it.   I know how to do it if it was the other way around, like in your home directory, list files in /home/test/test2, you would do:  ls /home/test/test2 | wc -l   but how would I do it if I was in the test2 directory and wanted to find the number of files in the home directory.  Thanks


"I don't know nothing" vs "I don't know anything"

Possible Duplicate:             I'm not a native English speaker, and this question may be very basic, but I want to learn English better, so don't hurt me with downvotes.  What is the difference between "I don't know nothing" and "I don't know anything"?  Do they have the same meaning or opposite ones?


I know the range of poisson's ratio is -1 to 0.5 but how do you arrive at this expression? I am a 11th grade student and I am not too familiar with advanced physics


Find a Minecraft SMP server seed based on known locations

Is it possible to find the seed of a 1.4.5 map without having the .dat file by using landmark coords? Is there a program that can come up with a list of possible seeds by entering the coords of dungeon spawners or villages or temples,etc?


Word to describe the quality of being optional or mandatory

Something like 'Optionality' or 'Ordinality'? (It's similar in kind to the words "Arity" and "Cardinality")  Example: "Fred listed the XXXity of each parameter, noting whether it was optional or mandatory"  Follow-up question: What part of speech is this?


Rounding decimal place with 5 in the last digit

I want to round the number below to two decimal places. The result must be 33.39 but Python gives 33.38 because the 5 rounds to even and hence to 8. round(33.385, 2)


Giving citrus fruit to a baby that is just starting on solids is discouraged on several places online, however i cannot find any solid reasoning behind this advice.  Has there been any scientific research on this, or is it an (often repeated) old wives tale?   I ask because my 6 month old son loves mandarines.


Is there a code snippet in Visual Studio community IDE?

Is there a way to generate custom code in Visual Studio COMMUNITY IDE (NOT Visual Studio CODE). Can you create custom code snippets in Visual Studio IDE? For example, I type main and it generates // int main() {  return 0;  } //


Convergence and sum of geometric series $(e^{3-2n})$ as $n$ goes from $2$ to $\infty$

I have simplified the expression to:  (e^3 / e^2n)  This particular question asks to answer whether or not the series converges by virtue of |common ratio| < 1 alone, without using any other tests (besides checking if the limit DNE or does not equal 0), and then to find the sum using the formula first term/(1-r).  The limit appears to go to 0, so the series does not diverge.  As I cannot fit the the expression in the form a(r)^(n), I'm currently unable to either say whether or not the series converges and what the sum is.  I just need help manipulating the expression to the form a(r)^(n), then I can answer the rest.  Thanks!


SharePoint 2013 REST display lookup fields?

I am using SharePoint 2013 REST to show data from my list,  one of my field in announce list is AnnouncedBy which is a user packer field  or is a lookup field   how can I display it or get it using SharePoint 2013 REST?   var app = angular.module('SmartphoneOSList', ['ngSanitize']);    app.controller('ListController', function ($scope, $http) {    $http({       method: 'GET',       url: "https://myserver/_api/web/lists/getByTitle('announce')/items?$top=2&$orderby=Modified desc",       headers: { "Accept": "application/json;odata=verbose" }      }).success(function (data, status, headers, config) {        $scope.items = data.d.results;       }).error(function (data, status, headers, config) {       //...     });   });


Calculating the probability of two consecutive heads occuring N times in M coin tosses?

I know the binomial distribution is used to calculate the probability of N heads in M coin tosses. But what if I want to calculate the number of ocurrences of particular pair of events, such as 'HH', in a random string?


Explanation of Proof that field sum of more than 2 elements is 0.

"Suppose the field $F$ is finite. If $f\colon F\to F$ is any bijection, then we can conclude that $\sum_{x\in F}x=\sum_{x\in F}f(x)$. Let $\alpha\in F$ such that $\alpha\ne 0$. Then $x\mapsto \alpha x$ is a bijection. We conclude that $\sum_{x\in F} x=\sum_{x\in F}\alpha x$, i.e. $(1-\alpha)\sum x=0$. If $F$ has more than two elements, we can pick $\alpha\in F\setminus\{0,1\}$ and are done."  1) How can you just assume F to F is a bijection, and  2) What is going on when there is an $\alpha$ picked from F, as seen in the last line, and can you go into more detail about how that proves our point?  Please explain it to someone who's not too comfortable with fields yet.


Finding neighbours in a two-dimensional array

Is there an easy way of finding the neighbours (that is, the eight elements around an element) of an element in a two-dimensional array? Short of just subtracting and adding to the index in different combinations, like this:  array[i-1][i] array[i-1][i-1] array[i][i-1] array[i+1][i]   ... And so on.


'In the Fox Theater' or 'In the Fox theater' or 'In The Fox Theater'

I am confused over the use of 'the' and capitalization.


Error when I upgrade my Ubuntu 14.04 to 16.04 and download new packages

When I upgrade my Ubuntu 14.04 to 16.04 and download new packages, I saw the following error message:  Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/f/fonts-noto-cjk/fonts-noto-cjk_1.004+repack2-1~ubuntu1_all.deb Size mismatch


$n^{th}$ derivative of a tetration function

I stumbled upon this very peculiar function last summer, namely: $f(x)=x^{x^{x^{...^{x}}}}$, where there is a number $n$ of $x$'s in the exponent, I tried to find the derivative for the function and I was successful, it turned out not to be the most elegant formula but it worked. (Firstly, I invented a new notation, namely, a function such as $f(x)$ we can write it as the following: $f(x) =x^{\langle x \vert n\rangle}$ where $x$ is the exponent that is getting "powered" up $n$ times.) The formula I obtained by pattern matching was: $$f^{\prime}(x)=x^{\langle x \vert n\rangle +\langle x \vert n-1\rangle -1}\left[1+\prod_{i=0}^{n-2}x^{\langle x \vert i\rangle}\cdot \ln(x)^n+\sum_{j=1}^{n-1}\prod_{k=n-1-j}^{n-2}x^{\langle x \vert k\rangle}\cdot \ln(x)^j\right]\tag{$n\geqslant 2$}.$$ I know this looks like a mad mess and I am aware that people  have done it more elegantely, but now for the question. This is only the first derivative of the function, is there a way, or rather is there a general derivative i.e a $n^{th}$ derivative of this function?   Update: December 23th  I have tried to approach the problem myself since I asked the question and I have not gotten to a stage to say if it is impossible or possible to do, however I think I am on the right track. At first, I thought of distributing the factor $x^{\langle x \vert n \rangle +\langle x \vert n-1 \rangle -1}$ to all the terms in the parentheses, but I quickly realized I had to deal with at least derivatives of triple products. Now I have come to realize that the easiest way is to differentiate the function just as it is and get a normal product and thus I must use the following formula: $$(f \cdot g)^{(n)}=\sum_{k=0}^{n}{n\choose k}f^{(k)}\cdot g^{(n-k)}$$ where $f =x^{\langle x \vert n \rangle +\langle x \vert n-1 \rangle -1}$ and $g=1+\prod_{i=0}^{n-2}x^{\langle x \vert i\rangle}\cdot \ln(x)^n+\sum_{j=1}^{n-1}\prod_{k=n-1-j}^{n-2}x^{\langle x \vert k\rangle}\cdot \ln(x)^j$. Since $k$ and $n-k$ are arbitrary numbers this leads us to find the general derivative for $f$ and $g$, this is where I am right now. (I do realize that I am trying to find the $n^{th}$ derivative of the first derivative but that is easily fixed later). Please come with suggestions on how to tackle this problem.   Update: December 24th  I have made progress with the help of Maple 17, namely, I have found a repeating pattern in at least a part of the general derivative, but there is still a part of it I cannot yet explain. Nonetheless, I present to you the part of the general derivative I have found: $$D_x^{\xi}f(x) = x^{\langle x \vert n\rangle +\langle x \vert n-1\rangle -\xi} \Big[(-1)^{\xi}\cdot\xi! +O(x)\Big]$$  I renamed the degree of the derivative as $\xi$ since $n$ is taken for the number of $x$s. The $O(x)$ is the (perhaps) series which I am currently working on finding, I do think I am on the right track though. The approach above with the product rule turned out to be less successful.


Strcmp not working, even when comparing the same character

I'm baffled. I'm working on a project that requires the use of strcmp and it doesn't seem to be working at all. Above you see an example in gdb where two characters are said to be unequal. Obviously similar results when I compare my two char arrays. Further, when I compare the arrays with themselves I also get false (name above is a char[8]). When I run strcmp within my code on the same array it produces the correct results but not in gdb (seen in the third image) I just need a lead on where to look/what to do.  Thanks.  edit: the two code fragments from the images:  print strcmp("S", "S")==0   print strcmp(name, name)==0


How can I intercept what process is calling Chrome?

I've got some adware and it opens a URL. Let's call it "ads".  I tried to troubleshoot with different anti-spyware but it was ineffective.  I want to intercept ANY call to Chrome which is opening the page called "ads". When it happens I want to know what was the caller process (if outside Chrome) or the extension (if inside Chrome).  Can you help me?    The supposed duplicate question is extremely generic so the answers assume to deal with kind of virus which are dangerous and thus the proposed solution may involve a system format or a previous backup. Here the idea is completely different. While an antivirus is a software and it doesn't have any artificial intelligence I know very well the solution I need: "simply and immediately block and delete whatever tries to open the ads page".  The problem is just technical. If this operation would be obvious through the antivirus or windows many adware problems could be easier to solve. That's why I see this question as being important. Because it's about a methodological investigation which can be used against a whole class of problems.


Which types of classes can use foreach loops?


Does Resistance combine with Deflect Missiles and make it easier to throw it back?

I have a character playing a multiclass Barbarian/Monk. Does the resistance from rage combine with Deflect Missiles to negate the damage and make the reaction attack?


While trying to set up AnyIP on Debian, I came across way too little information on how to set it up. I came across a few blog posts and two ServerFault posts, both which just say similar things but the answers not explaining a lot.  So far I know the following:   Enabling AnyIP for an IPv6 subnet is done via ip -6 route add local 2a01:beef:f0am:::/64 dev lo The IPv6 prefix must be routed to the Server. There must be a local route to the Server.   Step 1 is easy enough, step 2 usually requires the Hoster to play nice and step 3 is just step 1 it seems. Are there any other steps necessary to make it work and if so: What are they and how do you do them? How would the network configuration look like?


Sum of 2 Normally Distributed Random Variables With a Correlation

I've been given a problem where I have  $$ X \sim \mathcal{N}(\mu = 2, \sigma^2 = 9) $$  $$ Y \sim \mathcal{N}(\mu = 3, \sigma^2 = 4) $$  Their correlation is $ \rho_{XY} = 0.6 $. First I am asked for the mean and standard distribution of X+Y, which I found as  $$ \mu_{X+Y} = \mu_X + \mu_Y = 2 + 3 = 5 $$  $$ \sigma_{X+Y} = \sqrt{\sigma_{X}^2 + \sigma_{Y}^2 + 2 \rho_{XY} \sigma_x \sigma_y} $$  However, I am also asked what the distribution of $ X + Y $ is, what if $X$ and $Y$ are jointly normally distributed, and what if $X$ and $Y$ are not jointly normally distributed. I am unsure how I would go about determining what the distribution of $X + Y$ is, though I assume that    If $X$ and $Y$ are jointly normally distributed then $X + Y$ is normally distributed If $X$ and $Y$ are not jointly normally distributed then $X + Y$ is not normally distributed   How do I determine what the distribution of $X + Y$ is when I am not told whether they are jointly distributed?    Related  I read the following post, but wasn't sure how to apply what was said to my current problem, if I could at all.


How can limit the characters of UITextField without using delegate methods. Im using UITableView in which i have UITextField in cell and used in different position within same screen and i want to limit text field on certain position UITableViewCell. Any help will be appreciated.


How can a centre a div inside another div (both vertically and horizontaly) using CSS? My html is

 And CSS - .outer{ position: realative; top:20%; left20%; width:500px; height:500px; background:red; } .inner{ position:relative; width:100px; height:100px; background:#ff2; /*code to align in centre*/ }


What is the best way to visualize Likert-type dependent variables with 2x2 binary independent variables?

In a between-subjects experiment, we have 2x2 conditions and several 7-point Likert dependent variables. What would be the best way to visualize this data? I am a statistics newbie, so please forgive my simple questions. I have, of course, searched the web and this forum. But most posts I found seem to be dealing with binary dependent variables. In contrast, we have, I think, binary independent variables. Is it OK to treat the Likert answers as a continuous variable? I seem to recall some discussion (I forget where - maybe a textbook, maybe a paper) whether or not this is OK. It does not seem to be a categorial variable to me. Maybe it's an ordered categorial variable? But, more importantly, what would you suggest to plot the data? Simple box-plots (with whiskers) don't seem to work really well, because in almost all dependent variables we had a few participants answering with the lowest, and some with the highest scores. Also, it would be nice if one could show the answers for one dependent variable for all 4 conditions in one single plot in an intuitive way.


Where can I ask questions for website recommendations?

Is there any Stack Exchange site where I can ask others to recommend me good web sites for solving specific problems?  For example I would like to know if there is any URL shortening website that can allow me to define the url.  For example instead of http://bit.ly/1gX2dD0 I would like it to be http://bit.ly/superflow - if "superflow" is not available then I will invent another word.  I can imagine that such services are paid but I don't need the link to last more than one day, and maybe there is such a website.


Ubuntu unable to boot. I cannot log on. PURPLE SCREEN, please help

I have a purple screen on my Ubuntu and I am unable to log in. Please help. Thanks........ I have tried numerous times to try fix this problem.


What is the probability of drawing a $6,7,8$ in a hand of $13$ cards from a deck of $52$?

I am investigating a game called Rummy Royale. If I set the number of players to $3$, then I can split the deck of $52$ cards into $4$ hands of $13$ cards each. When choosing $13$ cards from a deck of $52$ cards, what is the probability of choosing precisely the cards with the numbers $6,7,8$ of the same suit? For example a $6,7,8$ of heart  or a $6,7,8$ of diamonds, or a $6,7,8$ of spades, or a $6,7,8$ of clubs. All three cards must be the numbers of $6,7,8$ and only of a single suit. These must be among the hand of  $13$ cards. My first thoughts on this question that I only have $4$ possibilities of this happening for the entire deck of $52$ cards. So I thought $(_4 C_1)(_{13}C _{3})$ will account for the possible number of decks that will include cards of $6,7,8$ of all the same suit out of $13$ cards in the hand. And $(_{52} C_{13})$ gives me all the possible combinations of 13 cards from 52 cards.  So this probability that I got would be: $\frac{(_4 C_1)(_{13}C _{3})}{(_{52} C_{13})}\approx 5*10^{-7}$. However I feel something is off. I haven't done probability in over a decade.


DatabaseHelper.java      public class DatabaseHelper extends SQLiteOpenHelper {     public static final String DATABASE_NAME="register.db";     public static final String TABLE_NAME="registeration";     public static final String COL_1="USERNAME";     public static final String COL_2="FirstName";     SQLiteDatabase db;       public DatabaseHelper(Context context) {         super(context, DATABASE_NAME, null, 1);           db.execSQL("CREATE TABLE " + TABLE_NAME + " (USERNAME TEXT,FirstName TEXT)");      }      @Override     public void onCreate(SQLiteDatabase sqLiteDatabase) {         db.execSQL("DROP TABLE IF EXISTS" +TABLE_NAME); //Drop older table if exists         onCreate(db);       }      @Override     public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) {      } }   Mainactivity.java  public class MainActivity extends AppCompatActivity {      SQLiteOpenHelper openHelper;     SQLiteDatabase db;     Button _btnreg;     EditText _txtpass,_txtuser;       @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);          openHelper = new DatabaseHelper(this);         _txtuser = (EditText)findViewById(R.id.txtuser);         _txtpass = (EditText)findViewById(R.id.txtpass);         _btnreg=(Button)findViewById(R.id.btnreg);         _btnreg.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View v) {                 db=openHelper.getWritableDatabase();                  String user=_txtuser.getText().toString();                 String pass=_txtpass.getText().toString();                   insertdata(user,pass);                 Toast.makeText(getApplicationContext(), "register successfully",Toast.LENGTH_LONG).show();              }         });     }      private void insertdata(String user, String pass) {         ContentValues contentValues = new ContentValues();         contentValues.put(DatabaseHelper.COL_1, user);         contentValues.put(DatabaseHelper.COL_2, pass);      } }   Error:     java.lang.RuntimeException: Unable to start activity   ComponentInfo{com.example.vivekpc.myapplication/com.example.vivekpc.myapplication.MainActivity}:   java.lang.NullPointerException: Attempt to invoke virtual method 'void   android.database.sqlite.SQLiteDatabase.execSQL(java.lang.String)' on a   null object reference


What is the title/author of this obscure SciFi book where aliens sell coffee?

For awhile now I've been trying to remember the title of a book I read when I was about 13 (around 2010). The book was definitely in the Science Fiction genre and was likely the second or third book in an ongoing series but I randomly chose it instead of the first book. It was in english and by the cover art and wear of the book I could tell it was at least 10 yrs old.   So all I remember is that It details the struggle of a colony of a human-like race that previously escaped either imprisonment or persecution (likely in the first book of the series) and relocates to new planet. They had some interesting ways of sustaining their new colony like selling coffee (yes, coffee) at other space stations/planets. I recall that this was successful for them.  The story focused primarily on like a handful of characters that were leaders in their colony. There was a sort of 'love' triangle between three of them where one woman had either one or two children with one or both men. She liked her kids but had them mostly in order to sustain the colony's population growth. It just wasn't a thing that either man was jealous of the other's child with the woman since they knew it was their duty to help the colony grow. One of the men was definitely more alien than the other, therefore his child was half alien. The  children were cared for at a facility that cared for multiple children while their parents where off building the new colony.  The leaders in this love triangle were a part of a larger crew who sold coffee off-planet in order to bring in revenue. How they got the coffee I can't remember, but it was a delicacy to their customers.  Thanks for any information about the title/author! I just really want to read the series and finally figure out why those aliens needed to sell so much coffee!


In my journey, entrants get admitted into it, but emails arent been sent. When I check the history, they have the following status:     Failed: Email.JourneyBuilder.Activities.EmailAddress: Error binding   data bound member   What does this mean and how do I resolve it?


How do I correctly place figures under tikzpicture?

I'm new to Latex and I'm enjoying the switch but I have a problem with placing figure I can't resolve.  I am using tikzpicture to create graphs and each graph is in it's own file. So my code is:  \subsection{Disconnected and Connected Graph} \paragraph{} **some text** \input{disconnected_graph.tex}  \subsection{Simple Graph} **some text**  \input{simple_graph.tex}   This displays fine. Now if I want to add a figure I use this code:  \begin{figure} \input{disconnected_graph.tex} \caption{**some text**} \end{figure}   The compile displays the following result:   Could someone point out why this is not displaying as I expected?


What is the difference between Correlation and Regression for a layman ?

I am learning Statistics as a prerequisite for Data Science course. I would like to know the difference between Correlation and Regression with an example.   Could someone help me please ?


Today I tried installing Linux for the first time, and I can't get the Wi-Fi working. The Wi-Fi is built into the laptop, not a dongle.   Firstly, how do I know that Ubuntu is even seeing the card? ip link sho | grep w  gives me a result. Will the result be the Wi-Fi card and not something else like the USB Ethernet dongle?   Based on the output, the card is down. Nothing seems to enable it. e.g. sudo ifconfig <name> up makes no difference sudo rfkil shows this interface is unblocked, both soft and hard trying the command:wpa_passphrase MYSSID passphrase > /etc/wpa_supplicant.conf  results in permission denied, even if I try using sudo      Can someone please suggest what I should try next - or possibly try in the correct sequence.  Edited to add more information:  that I found yesterday before coming here for help:  Martin Thornton gave me the correct syntax to get the wpa_passphrase working. When I run iwlist scan, which is the next step in the walkthrough, it tells me the network is down.  The documentation linked below starts off with "Open the system menu" I don't think I have a menu?  Running lspci tells me the wireless card is an:  Intel Wireless 7260 (8086:08b1) rev 6b   sudo lshw -C network told me the wireless interface was disabled after running sudo ip link set wlp6s0 up, it seems the card is up. But iwlist scan still returns no scan results


What determines the power of a wizard in Harry Potter's world?

It is obvious that different wizards can cast spells with different power and/or effect (same for potions). But why?   Just some observations from my side - perhaps I'm wrong for some of them:  Spell casting seems to be like playing music or painting. More or less everyone can do it and the quality depends on some factors like:   knowledge - gained by studying experience - gained by practicing intelligence - innate and cannot be gained easily concentration at the moment (or ability to concentrate in general)   and last but not least   innate ability (talent) - you either have it or not   To me it looks like that the last one is determining everything. Some wizards like Dumbledore or Voldemort just "have it" and others will never be able to reach their power no matter how hard they try. Another example - Hermione is very intelligent and has read all the books but Harry beats her in defense against the dark arts nevertheless (and no - it's not Quidditch that helps him :) ).


Crontab -e with Debian Buster not working

I want to run a cron every 5 minutes on Debian Buster.  My steps:  crontab -e */5 * * * * /usr/local/bin/squid-analyzer > /dev/null 2>&1 sudo service cron reload   Unfortunately this entry has no effect.  tail /var/log/syslog -f   The Command seems to be executed. Output:  Jan  6 12:20:01 CRON[8290]: (root) CMD (/usr/local/bin/squid-analyzer > /dev/null 2>&1)   The Website is not updated. Executing the Script manual in the bash works fine.  Playing around with varibales in my crontab like this has no impact:  HOME=/root LOGNAME=root PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin LANG=en_US.UTF-8 #!/usr/bin/env bash PWD=/root   Help is very appreachiated!


Why the default user of Debian is not in sudoer list by default?

I am thinking why the default user of Debian 8.x is not in sudoers list although it has su/root/... access which is not safer than sudo      Using sudo is better (safer) than opening a session as root for a number of reasons, including ...   I try to stick to defaults in my Debian use. Therefore, I have not added my default user in sudoer list.   However, it has those shortcomings above.   Still, I am thinking if I should change the default way.


When can you interchange composition of a limit?

I've seen some limit problems where you can do this: $$ \lim_{x \to \infty} \exp\left({g(x)}\right) = \exp \left( \lim_{x \to \infty }g(x)\right) . $$ So, I've tried to generalize the result as: $$ \lim_{x \to \infty} f(g(x)) = f \left( \lim_{x \to \infty }g(x) \right) $$ and I was just wondering if the result above is actually true, and on what conditions? Perhaps someone can point me to a theorem.


linux change ext4 block size to 8192 now can't mount it

I've done that:  mkfs.ext4 -j -b 8192 /dev/sda3   Now I'm trying to mount it with:  sudo mount -t ext4 /dev/sda3 foo    But I'm getting this error:  mount: wrong fs type, bad option, bad superblock on /dev/sda3   What's the problem?


An epimorphism from $S_{4}$ to $S_{3}$ having the kernel isomorphic to Klein four-group

Exercise $7$, page 51 from Hungerford's book Algebra.     Show that $N=\{(1),(12)(34), (13)(24),(14)(23)\}$ is a normal subgroup   of $S_{4}$ contained in $A_{4}$ such that $S_{4}/N\cong S_{3}$ and   $A_{4}/N\cong \mathbb{Z}_{3}$.   I solved the question after many calculations. I would like to know if is possible to define an epimorphism $\varphi$ from $S_{4}$ to $S_{3}$ such that $N=\ker(\varphi)$.  Thanks for your kindly help.


How are the Pauli $X$ and $Z$ matrices expressed in bra-ket notation?

For example:  $$\rm{X=\sigma_x=NOT=|0\rangle\langle 1|+|1\rangle\langle 0|=\begin{bmatrix}0 & 1 \\ 1 & 0\end{bmatrix}}$$ $$\rm{Z=\sigma_Z=signflip=|0\rangle\langle 0|-|1\rangle\langle 1|=\begin{bmatrix}1 & 0 \\ 0 & -1\end{bmatrix}}$$ I do no understand how the matrix can be expressed in bra-ket and the way around. I could not find any good teachings on this.


"This post has been deleted" box's Z-Index is too high, overlaps dialog overlays and looks weird

Screenshot tells more than 1000 words:    (Oh and I think it's not an exact duplicate of  because it's only about overlapping parts of the post's content including flag bar if I read it correctly, not about overlapping UI which should be above it because it's a floating dialog box - although it probably has the same cause.)


Can QGIS plot coordinates in Degrees-Minutes format?

I have a .csv file of coordinates that looks like this:        Is there a way for QGIS to plot coordinates formatted like this?  I've tried Adding a Delimited Text Layer... in QGIS, but do not see any options appropriate for this format:  Nxx.xx.xxx Wxxx.xx.xxx   I am able to use a  website to convert that data to Decimal Degrees, Degrees, Minutes & Seconds, and UTM.  For example, inputting N39.56.854 W074.28.013 outputs a latitude of 39.947567, and longitude of -74.466883.  However, I would like to stay in QGIS and make the same conversion.  Things I've tried:   Created a new .csv that has formatting that matches the output of coordinate conversion site mentioned above, and with separated lat-long columns:     However, using the QGIS Add Delimited Text Layer... option yields no visualization of the points.


my HTC doesn't have lollipop, can you explain

Lollipop is not on my HTC and I do not know why, lollipop is 5.etc but my htc is on 3.etc


How do I get contours from a scanned map?

I have a scanned map which is a .tif file. I have geo-referenced it, and now I want to render it in 2.5D. Can i do this in QGIS? The ENC file is not available for the map I am using. The map already has contour lines on it, it is a colored sea map with black lines for contours. Land is denoted in yellow and green. Unfortunately due to company policy I cannot upload it.


I made these changes to resolv.conf today and when i restarted my laptop i cannot connect to the internet. It says server cant be found. These commands were given to me by unoDNS when trying to delete it from my system.  sudo mv /etc/resolv.conf /etc/resolv.conf.bak echo "nameserver 8.8.8.8" | sudo tee  /etc/resolv.conf echo "nameserver 8.8.4.4" | sudo tee -a /etc/resolv.conf   Any suggestions as to what went wrong. I am using Ubuntu 14.04 LTS.


Find the value of $$\lim_{n\to \infty}\sum_{k=1}^n \frac{\binom{n}{k}}{n^k(k+3)}$$  I am not sure how to progress. I feel as though Squeeze theorem might somehow be used but I can't see to comprehend how.  Can someone please help?


I read a general principal of graph theory which says "A graph that can be traversed without lifting the pencil from the paper , while tracing each edge exactly once, can have not more than 2 odd vertices." Can I have any proof of it? I am new to graph theory


Last night while my washing machine and sink in the master bath was running, my master toilet started having air bubbles come up.  Then this morning while I was showering I heard bubbles again, and the shower was draining very slowly.  After the bubbles occurred my toilet in the master bath and powder room completely drained of water in the bowl and tank.  What is happening?


Proving that if $f: \mathbb{C} \to \mathbb{C} $ is a continuous function with $f^2, f^3$ analytic, then $f$ is also analytic

Let $f: \mathbb{C} \to  \mathbb{C}$ be a continuous function such that $f^2$ and $f^3$ are both analytic. Prove that $f$ is also analytic.   Some ideas: At $z_0$ where $f^2$ is not $0$ , then $f^3$ and $f^2$ are analytic so $f = \frac{f^3}{f^2}$ is analytic at $z_0$ but at $z_0$ where $f^2$ is $0$, I'm not able to show that $f$ is analytic.


Can we have the UTC time on the inbox as well?

Right now the achievements has it, but the inbox does not.      Considering the two icons are like ten pixels apart its not so hard to open one then the other, but it would still be nice to have the reference in the inbox as well.  Im not sure if this is a dupe. I tried digging thourgh the 70 answers in  but couldn't find it.


Best practice to persist config/user info in .NET app

I have a low quantity of data to persist in my .NET app. For example, the file that has been opened last time when the user was around. What is the best practice to persist and retrieve information like that? A code sample would be appreciated.


Show that if $z,w\in\mathbf{C}$, $|z|<1$ and $|w|<1$, then $\left|\frac{z-w}{1-\overline{z}w}\right|$<1?

Every way I try to approach this turn it into proving the inequality $|z-w|<|1-\overline{z}w|$. Not sure at all how to approach it at the moment.


Fitting data (and getting normal vectors) to planes that can be vertical

I have many individual datasets of $(x,y,z)$ coordinates. I'd like to see if the coordinates form a plane (and if they do, I'd then like to compute a unit normal to the plane). My original method was to simply fit to $z=ax+by+c$ via least-squares minimization. However, some of my data is nearly vertical in $z$ such that this breaks down. What is the best way to address this without specifically checking every dataset to see if the data forms a vertical plane?  Here is a toy dataset: coords = [3.64811 7.61531 9.05108; 3.53604 4.82801 9.05108; 3.53604 4.82801 6.34192; 3.64811 7.61531 6.34192]


Bias of maximum likelihood estimators for logistic regression

I would like to understand a couple of fact on maximum likelihood estimators (MLEs) for logistic regressions.   Is it true that, in general, the MLE for logistic regression is biased? I would say "yes". I know, for example, that sample dimension is related to the asymptotic bias of MLEs.   Do you know any elementary examples of this phenomenon? If the MLE is biased, is it true that the covariance matrix of the MLEs is the inverse of the Hessian of the maximum likelihood function?   edit: I have met this formula quite often and without any proof; it seems a quite arbitrary choice to me.


MS SQL query to copy a database structure (without data) to a new database

I have an SQL 2008 R2 Server that is hosting multiple databases.  Is it possible to create a new database and create the tables based on the schema of an existing one?  For example database_1 contains approx 200 tables and full of data. I would like to create a new database called, say, tenant_1 that is based entirely on database_1 but without any data at all.  Both databases are on the same server and in the same SQL instance.  I also need to do all that via an SQL query without any interaction of the SQL Management Studio GUI.  Is that possible?


How do I get rid of this star shaped mark on a sphere?

I've seen these weird marks before but I usually get rid of them by making an invert ring by pressing I. But in this case, this doesn't make any rings. Perhaps because it's curved? It worked on a flat circle. What do I do then?


Torsion elements do not form a submodule.

Clearly if $A$ is a commutative domain then the torsion elements of an $A$-module form a submodule.   I'm having trouble finding an example of an $A$-module such that $A$ is a noncommutative domain and the torsion elements of the module do not form a submodule.  Is anyone aware of a good example of this?  Thanks in advance


Looking for title of sci fi short story about attempts to colonise planet (Venus?). Scientist and his dog are main characters

They want to see if humans can survive in harsh planet conditions with a view to future colonisation. Scientist guy invents a machine which can transform humans into beings which are adapted to conditions on planet. They send folks in but none ever report back. Scientist, in despair, sends his old dog in. Dog doesn't return either so scientist finally goes himself. Gets to planet and, in his new state, finds himself strong and perfectly adapted to life on new planet. Meets his old dog who is also fine, they can now communicate and end up going off to discover the new world together.


Trouble evaluating decimal values in java

double  x = 0.00090;  double b = 0.00100; double c = x - b;   produces   -1.0000000000000005E-4   instead of  -0.0001   and  double  x = -0.09;        double b = 0.001; double c = x * b;   produces  -8.999999999999999E-5   instead of  -0.00009   I also tried with   Math.round(c) and Math.round(c*100.0)/100.0   but it is producing same results or results with incomplete number range after decimal.


I am trying to label the angles of a triangle. I can't figure out why my code is kicking the name to the outside. My apologies for any formatting issues; this is my first post here. \documentclass{article} \usepackage{tkz-euclide} \usetkzobj{all} \begin{document} \begin{tikzpicture}[dot/.style={fill,circle,inner sep=1.5pt}] \path (80:5) node [dot,label=above left:A]{} coordinate (A) (20:9) node[dot, label=right:B]{} coordinate (B) (0:0) node[dot,label=below left:C]{} coordinate(C);  \path coordinate (Q)at((C)!(A)!(B)) node at (Q)[]{} ;  \draw[-] (A)--(C); \draw[-] (C)--(B); \draw[-] (A)--(B); \draw[purple!70!black] (A)--(Q);  \tkzMarkRightAngle(A,Q,C);  \draw[|<->|] ((P)!−7mm!90:(B))--node[fill=white,sloped] {x} ((B)!−7mm!−90:(P)); \draw[|<->|] ((Q)!−4.9mm!90:(A))--node[fill=white] {10} ((A)!−3mm!−90:(Q));  \tkzMarkAngle[size=0.75cm,color=black,label=α]; \tkzMarkAngle[size=1cm,color=black,label=β]; \tkzMarkRightAngle(B,A,C); \end{tikzpicture} \end{document}  I am trying to fit $\beta$ inside the triangle instead of its current location.


Kubernetes 1.19 is out! Get it in one command with sudo snap install microk8s

I have three Ubuntu VM on Microsoft Azure. Every-time I login (through ssh) on my VMs in the Azure I see the following hint: * Kubernetes 1.19 is out! Get it in one command with:   sudo snap install microk8s --channel=1.19 --classic  I know Kubernetes is for resource manager But I didn't install Kubernetes in my VMs. What does it mean when I login in my VMs on Azure?? How I must to do??


Why was Gotham City changed from a mostly fictional city to New York City in the Nolan trilogy?

In Batman Begins, Gotham City has a futuristic/fictional and run down look: think of Oldtown, the trains built by the Wayne Corporation etc.   In The Dark Knight Rises, Gotham City looks like plain old real world New York City — we don't see the trains anymore. Oldtown is just a standard poor neighborhood. Lots of the locations used in the movie are easily identified as real world NYC locations: the stock exchange or East River bridges for example.   My question is: Why did Nolan change Gotham city from a shady fictional more cartoon-like town to plain old NYC?   Edit: The examples from Batman Begins and The Dark Knight Rises were just for illustration; I didn't intend to limit the question to those two movies.  Edit 2: I specifically want to know why Gotham City was changed from a cartoon-like city in Begins to an almost real-world NYC in The Dark Knight Rises (via not so cartoon-like but not yet real-world like Chicago in The Dark Knight Rises). Why it's NYC or Chicago is not so important for me. But why, e.g., were the trains which featured prominently in Begins gone in The Dark Knight Rises? There was only a very short in-universe time-span between the events of the two movies, yet Gotham changed drastically.


MySQL cannot connect via "localhost", only 127.0.0.1

this is somewhat of a mystery to me. The only way I can connect to MySQL is if I call it via "127.0.0.1" ... for example, my PHP connect script will NOT work with localhost  I'm running Mac OS X Lion, built-in apache2, MySQL, PHP, phpMyAdmin  mysqladmin:  count                             0 debug-check                       FALSE debug-info                        TRUE force                             FALSE compress                          FALSE character-sets-dir                (No default value) default-character-set             auto host                              (No default value) no-beep                           FALSE port                              0 relative                          FALSE socket                            (No default value) sleep                             0 ssl                               FALSE ssl-ca                            (No default value) ssl-capath                        (No default value) ssl-cert                          (No default value) ssl-cipher                        (No default value) ssl-key                           (No default value) ssl-verify-server-cert            FALSE user                              (No default value) verbose                           FALSE vertical                          FALSE connect-timeout                   43200 shutdown-timeout                  3600 plugin-dir                        (No default value) default-auth                      (No default value)


What does the computer do when we format our hard disk or flash disk. If formatting clears all data on a disk, what is the difference between deleting all files in the disk and formatting the entire disk? Is it bad to format multiple times? How many times can a disk be formatted? Will formatting reduce the lifespan of my drive? What is the difference between quick formatting and standard formatting?


Can someone let me know whether IJCA () is a valid open access journal to publish our research work?  BR, Tharindu from Sri Lanka


I'd like to maintain my code's structure and align the equations (vertical alignment of = symbols). Is it possible?  \documentclass{article}  \usepackage{amsmath}  \begin{document}  \begin{equation*} \left\{ \begin{array}{l} r_d(t) = k \hspace{0.1cm} q(t)\\ R_d = k \hspace{0.1cm} Q \end{array} \right. \end{equation*}  \end{document}   Thank you very much for your time.  EDIT: this question differs from  because here the equations are not numered and here I don't use \usepackage{empheq}.


When to quote a parameter expansion, and enclose parameter name in braces?

In a parameter expansion:   Is it always better (or not worse) to double quote a parameter expansion than not? Are there cases where double quoting is not suggested? When is it necessary to add braces around parameter name? when shall we use double quote around parameter expansion instead of braces around parameter name? When the other way around? When does either of the two work?   Thanks.


Arch Linux keeps printing out weird characters in tty

I cannot login to my Arch Linux machine because the tty keeps getting filled with ^@ characters, and therefore I cannot enter my username or password. What's wrong?


Why the output of the following code is still "Java" even though objects are passed by reference not value?

String in Java is a non-primitive data type, because it refers to an object. Still answer is not "JavaJava".   class Java  {      public static void concat(String s1)      {          s1 = s1 + "Java";      }       public static void main(String[] args)      {          String s1 = "Java";          concat(s1);           System.out.println("String: " + s1);      }  }


Show that $n-m$ is a multiple of 9 when $n$ and $m$ have same digits

I have just proved the divisibility rule for 3 and 9.  Let $n\in\mathbb{N}$. Let $m$ be a number that appears when you shuffle the digits in $n$. Show that $n-m$ is a multiple of 9.  Can anyone offer some help?


My guide died about the third day I had the game. I thought that having him dead was no problem.  Here I am 1 month later, now ready to face the WoF but there is no guide.   I have made sure my house has met his requirements, but I still don't know how to get him to respawn. I have tried changing my house completely; I have made sure there are no other NPCs; I have gone around the whole map to make sure there was no goblin still alive.


Likelihood function of probability distributions which integrate to unity

The likelihood function for the Poisson Distribution $P(X=k| \lambda)$, where $\lambda$ is the mean, has the property that the integral with respect to the mean integrates to unity (from $0$ to $\infty$): $$\int_0^\infty P(X=k|\lambda)\,d\lambda  = \int_0^\infty \frac{\lambda^kexp(-\lambda)}{k!}\,d\lambda = \frac{\Gamma(k+1)}{k!} = \frac{k!}{k!} =1.$$ This was shown and discussed in my .   Question: Does anyone know of any other probability density function (or probability mass function) which integrates or sums to unity in a similar way?  Thanks.


What should I have an understanding of before diving into R. Shankar's Quantum Mechanics?

I have recently started reading Quantum Mechanics from R. Shankar's book and I find the math introduced so far(first twenty to thirty pages) in the first chapter to be very engaging; the book makes me want to struggle till I understand and solve the exercises. I want to stick to this book. But before I take a decision, I would like to know if what I already know is enough to continue with the book.  The math I have dealt with so far is just high-school math and Calculus(up to Calculus 3). I am comfortable with complex numbers and matrix operations thanks to Mary L.Boas.   Coming to Physics; Classical Mechanics(up to Rigid Body Motion) as taught by the book Introduction to Mechanics by Kleppner and Kolenkow; Electricity and Magnetism (excluding Electromagnetic waves and optics) as taught by Walter Lewin. University Physics has given me a basic understanding of mechanical waves.   Concurrent with my current study are the following: Mathematical Methods( Mary L.Boas), Lagrangian and Hamiltonian formalisms(Shankar[the first few pages already have my undivided attention]), Electrodynamics(Griffiths); Waves, Thermodynamics, Modern Physics(University Physics); Harmonic Oscillators, Central Motion, Non-inertial systems and Special Relativity(Kleppner and Kolenkow).   Will my existing knowledge be enough for me to keep learning Quantum Mechanics?


bash syntax error near unexpected token `(' - but everything looks like it should work

I'm trying to write a bash script which will copy a bunch of files and directories from a directory, omitting a couple but taking everything else.  I have got a command that does this and works from the command line:  cp -r !(dspace.cfg|README.md) ~/tmp/directory   This does exactly what I want it to do, so I've put it into my bash script (which does some other things besides), so it looks like this:  #!/bin/bash  SRC="/target" MAVEN="mvn"  # copy everything except the readme and the dspace.cfg extension cp -r !(dspace.cfg|README.md) $SRC/config   And when I run it I get:  $ bash addmodule.sh  addmodule.sh: line 7: syntax error near unexpected token `(' addmodule.sh: line 7: `cp -r !(dspace.cfg|README.md) $SRC/config'   I've checked all the obvious things: the shebang is right, I'm running it explicitly with bash from the command line (I've checked that on my Ubuntu 14.04 system that this really is bash and not dash), and I've checked that posix is off (though I'm not sure if that would make any difference in this case).  Basically all I want is a script that wraps up a few commands that I'd run from the command line, and that's about the extent of my knowledge!


Injectivity of the exponential map of compact connected Lie groups

I am trying to learn Lie Algebra with a little knowledge of Differential Geometry. I have read that the exponential map of compact connected Lie groups is always surjective. So I am wondering about the injectivity of the exponential map for compact connected Lie groups. I think it can not be injective and the multiplication of 1-torus with 1-sphere($T^1\times S^1$) is a counter example. Is this true? If so how can I prove it in a proper way?


Need help finding the limit of this sequence.

If $x_1< x_2$ are real numbers, and $x_n = \frac{1}{2}(x_{n-2} + x_{n-1})$ for every $n > 2$, how do I show $\lim x_n = \frac{1}{3}x_1 + \frac{2}{3}x_2$?


How to give name to topics created using LDA?

I have categorized 800,000 documents into 500 categories using the Mahout topic modelling.  Instead of representing the topic using the top 5/10 words for each topics, I want to infer a generic name for the group using any existing algorithm. For the time being, I have used the following algorithm to arrive at the name for the topic:  For each topic   Take all the documents belonging to the topic (using the document-topic distribution output) Run python nltk to get the noun phrases Create the TF file from the output name for the topic is the phrase (limited towards max 5 words)   Please suggest a approach to arrive at more relevant name for the topics.


Detect whether radio button is disabled or enabled

<asp:RadioButtonList ID="rdStatus" onclick="javacript:display();" runat="server" RepeatDirection="Vertical"> <asp:ListItem Text="Temporary Waiver" Value="T" Selected="True"></asp:ListItem>     <asp:ListItem Text="Never Expires" Value="P"></asp:ListItem>     <asp:ListItem Text="Expires after the close of:" Value="W"></asp:ListItem> </asp:RadioButtonList>  function display() {     if(radiobuton is enabled)           //code here      else           //code here }   Please suggest some idea to detect hoe to check radiobutton is disable o enable


Why are the solutions of polynomial equations so unconstrained over the quaternions?

An $n$th-degree polynomial has at most $n$ distinct zeroes in the complex numbers.  But it may have an uncountable set of zeroes in the quaternions.  For example, $x^2+1$ has two zeroes in $\mathbb C$, but in $\mathbb H$, ${\bf i}\cos x + {\bf j}\sin x$ is a distinct zero of this polynomial for every $x$ in $[0, 2\pi)$, and obviously there are many other zeroes.  What is it about $\mathbb H$ that makes its behavior in this regard to be so different from the behavior of $\mathbb R$ and $\mathbb C$?  Is it simply because $\mathbb H$ is four-dimensional rather than two-dimensional? Are there any theorems that say when a ring will behave like $\mathbb H$ and when it will behave like $\mathbb C$?   Do all polynomials behave like this in $\mathbb H$? Or is this one unusual?


I intended to upgrade my laptop's harddrive to ssd. I bought a 120 GB ssd.  I used Casper software to copy my current OS (Windows 10) to the ssd. I copied the system drive (C) to the ssd.   When I install the ssd to may laptop and power on the laptop, the system cannot find the disk. I could't boot the windows.  I reinstalled the HDD to my laptop, then power on and the windows opened again. No problem.  It looks like something wrong with the copying files to the ssd.  Is it enough to copy only the C drive to make a disk bootable? There is also EFI and OEM partitions.  Do I need to move these partitions to the SSD too?   My HDD's capacity is 500 GB which is almost full but SSD's capacity is 120 GB.  It is not possible to copy whole HDD to SSD.   The Casper 7.0 program doesn't see the EFI part.


Why is there a controversy on whether mass increases with speed?

Some people say that mass increases with speed, some people say that the mass of an object is independent of its speed.  I understand how some (though not many) things in physics are a matter of interpretation based on one's definitions. But I can't get my head around how both can be 'true' is any sense of the word.  Either mass increases or it doesn't, right?  Can't we just measure it, and find out which 'interpretation' is right? e.g.: (in some sophisticated way) heat up some particles in a box and measure their weight?  ------------------------------  UPDATE  Right, so I've got two identical containers, each with identical amounts of water, each on identical weighing scales, and each in the same g field. If one container has hotter water, will the reading on its scale be larger than the other? If the answer is yes, and g is constant, does this mean that the m in w=mg has got bigger?


I'm a bit confused about the usefulness of reducing dimensions before doing a k-means clustering.  Suppose you want to apply k-means to a set points $(x_i)$ with high dimension. You want to minimize the cost function $\sum_i \|x_i-c_i\|^2$ where $c_i$ is the center of the cluster $x_i$ belongs to.  You have basically two methods:   A: do a k-means (Lloyd) directly on $(x_i)$ B: reduce the number of dimensions with some dimensional reduction method (such as SVD/PCA), and then apply k-means to the points with reduced dimensions   On the one hand, A is unlikely to find the global minimum, replications will help getting closer to it. It might have a high computational cost due to handling high dimension vectors and many replications.  On the other hand, B is more likely to get close to the global minimum (or even reach it) with fewer replications. But the minimum on the reduced version is not the original minimum (it is however known to be close to it). There is of course an additional computational cost for reducing dimensions.  All in all, is it known that B is better than A in either objective: minimizing the original cost function or computational cost?


How to avoid typing 'python' when running .py scripts?

I am experimenting with Django develpment in virtualenv. It is rather anyoing that each time I should type commands like:  python manage.py runserver   I am wondering what should I do to run the same command without 'python', i.e. just:  manage.py runserver


Is there a nice way to compile a beamer presentation without the pauses?

Say I made a beamer presentation and I want to print it out.  Is there a nice way to make beamer ignore the pauses so that I don't get lots of pages with duplicate information?  Of course there are some things one could do with find & replace, but I would prefer a more sophisticated solution if such exists.


How much time do I need to allow for transit in a US airport (Minneapolis)?

I am flying from Los Angeles to Bangalore. I have a flight option from LAX to Minneapolis and from there to Paris. I have only 45 minutes at Minneapolis before my next flight. Is this too risky a schedule? I am not an American, so I guess I would need to cross emigration too?


Null Pointer Exception on an EditText in a Fragment

I am building a signUp page in which i want a date picker but whenever i click on User Fragment to open Sign up Page then the app crashes, and the error is nullPointerException in EditText. Please Help me to solve it.  Here is the Code of UserFragment.java  public class UserFragment extends Fragment { public EditText et_Date; public static final int REQUEST_CODE = 11; String selectedDate; private OnFragmentInteractionListener mListener; public DatePickerDialog.OnDateSetListener setListener; View view; public UserFragment() { } public static UserFragment newInstance() {     UserFragment fragment = new UserFragment();     return fragment; } @Override public void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState); } @Nullable @Override public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {     view = inflater.inflate(R.layout.adduser_fragment, container, false);     et_Date  = (EditText) view.findViewById(R.id.etdate);     final FragmentManager fm = ((AppCompatActivity)getActivity()).getSupportFragmentManager();     et_Date.setOnClickListener(new View.OnClickListener() {          @Override         public void onClick(View v) {             AppCompatDialogFragment newFragment = new DatePickerFragment();             newFragment.setTargetFragment(UserFragment.this,REQUEST_CODE);             newFragment.show(fm, "DatePicker");         }     });     return view; }  @Override public void onActivityResult(int requestCode, int resultCode, Intent data) {     if(requestCode == REQUEST_CODE && resultCode == Activity.RESULT_OK){             selectedDate = data.getStringExtra("SelectedDate");             et_Date.setText(selectedDate);     } }  @Override public void onAttach(Context context) {     super.onAttach(context);     if(context instanceof OnFragmentInteractionListener){         mListener= (OnFragmentInteractionListener) context;     }else{         throw new RuntimeException(context.toString()+"must implement OnFragmentInterationListener");     } }  @Override public void onDetach() {     super.onDetach();     mListener = null; } public interface OnFragmentInteractionListener {      public void onFragmentInteraction(Uri uri); } }


I want to have an extra sectioning level under \part{}, say \subpart. It has no difference as for the location on the page or the size of the font with \part{} command.  I tried titlesec but I couldn't get it to work. I've read the documentation but no luck. This is the example:  \documentclass{book}  \usepackage{titlesec}  \titleclass{\subpart}{page}[\part]  \titleformat{\subpart}[block]{\centering\huge\bfseries}{}{10pt}{}[] %\titlespacing*{\subpart}{}{}{}[] \newcounter{subpart} \renewcommand{\subpart}{\Alph{subpart}} \begin{document}         \part*{History}     \subpart*{Before}         \chapter*{1}         \chapter*{2}         \chapter*{3}     \subpart*{After} \part*{Evidence}     \subpart*{Archeology} \end{document}   Thanks.


"Terminal" stalls when screen shows text with "" at bottom

In Ubuntu 20.04 executing a command from terminal, for example sudo apt-get install libsdl2-2.0-0  displays a screen, in this case referring to a font, but this happens with any screen with text. For example, one which describes a EULA, when a <ok> appears at the bottom, clicking on the <ok>; pressing Return; pressing Esc - anything - nothing gets beyond the screen. Finally, kill terminal restarts it. Retrying gives the following output: jim@HP-Nbook-Linux:~$  sudo apt-get install libsdl2-2.0-0 [sudo] password for jim:  E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 59271 (apt-get) N: Be aware that removing the lock file is not a solution and may break your system. E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?  So now I have a second problem which I do not know how to address.


Unable to SSH into EC2 Ubuntu Instance port 22:Connection Refused

I created EC2 Ubuntu Instance, when the status check was clear, I tried following command.  chmod -400 key.pem  &  ssh -i key.pem ubuntu@ip_address  which gave following error  ssh: connect to host ip_address port 22: Connection refused  Then I tried rebooting the Instance but the error was still there.I tried   telnet ip_address 22  which gave me the same error  telnet: Unable to connect to remote host: Connection refused  I already follwed  and    following links but none worked:  Please tell me how do I resolve this.


Is there a special name/word or popular phrase for the students who work part-time/full-time to generate income?

Is there a special name/word or popular phrase for the students who work part-time/full-time to generate income while at college or in school?


Detecting when a div's height changes using jQuery

I've got a div that contains some content that's being added and removed dynamically, so its height is changing often. I also have a div that is absolutely positioned directly underneath with javascript, so unless I can detect when the height of the div changes, I can't reposition the div below it.  So, how can I detect when the height of that div changes? I assume there's some jQuery event I need to use, but I'm not sure which one to hook into.


New users appearing on reputation leagues have total reputation less than year reputation

I've noticed that users who were not previously ranked on the  have total reputation less than their year reputation.  Here is an example:    I imagine this should be at least their year reputation. This appears to be the case for quarter as well, but not for week and month.


UI component or design pattern for juxtaposition of images for comparison

This was a design concept/pattern that I first saw in use for an interactive on a website to show the before and after images of a natural disaster event.  Since then I have seen it pop up in a couple of different places, but mostly used to show before/after images in an interactive side-by-side comparison. Below is an example that I saw on a website showing the transformation of one type of image into another.    Would this UI component be classified as a slider, an image interaction or something else?   This is the only implementation of the design pattern that I have seen (with the slider in the middle of the overlaid images) but if there are sightings of alternate designs please also add them to the answers.


How to maintain a command from terminal running?

I launch connexion ssh to use rsync command in terminal and I would like to shutdown my computer, but I need to let run the process rsync.  I executed this command on a remote host. If I quit now then the process will stop I guess?  Yes I know I should run my command with option to avoid to lost the process.


How does the 6 tile range zone looks like? Does that mean 6 hex "steps" away from the district, or any city center within the six "rings" of the district?


Creating an image without storing it as a local file

Here's my situation - I want to create a resized jpeg image from a user uploaded image, and then send it to S3 for storage, but am looking to avoid writing the resized jpeg to the disk and then reloading it for the S3 request.  Is there a way to do this completely in memory, with the image data JPEG formatted, saved in a variable?


Where are the sidecar files AAE located in Finder?

I'd like to know where the sidecar files for Photos are located in the Mac (Finder).    Thank you.


Inserting group into existing group using PyQGIS

I would like add one group into another (already existing one) in layerTreeRoot using PyQGIS.   How can i do it?   is not the answer to my question, because it allows only to create 2 groups at the same time. Group and sub group.


how is it possible for a model with maximum AUC to not also have minumum misclassification error?

I have an elastic net model of a binary outcome where the lambda for max AUC is different than the lambda for min misclassification error. Shouldn't they be highly (inversely) correlated


Similarity measure between training and testing loss to identify overfitting

I am new to machine learning and I would like to know whether my trained CNN is overfitting. So I have drawn the curves training and testing losses versus the training epochs.  I have trained my CNN for about $50$ epochs with a learning rate equal to $10^{-3}$ that decreases every $3$ epochs by a factor $0.5$.  I found an answer to this question  but I couldn't find an exact similarity measure between the testing and training error/loss to make a decision.  I have attached the figure of these curves below and I would appreciate any comment.


Mass infringement of Stack Exchange copyright

I recently asked :  The website  seems to be  without any attribution at all. Unlike with , there isn't even a link back to the original EL&U posts. So apart from your material being published without respecting your moral right to be recognised as the author of your own work, EL&U content is not recognised as belonging to EL&U. The questions and answers there even appear in the same order that they appear in on EL&U if ordered by reputation. I don't really wish to scan through learnhub.org to find all my posts so that I can make an individual complaint for each one, and I don't suppose you guys would want to do that for yours either. Can EL&U help us get this content removed from that site, given that both questions and answers from here are appearing there together?  I was advised to bring the question here:  "Though the content in question in specific to EL&U, the broader phenomenon of content scraping is observed across all of SE, and so this might be better discussed on Meta Stack Exchange. In particular, since the StackExchange corporation (not community) is the only one empowered (or at least likely) to bring legal action, and since C&D letters have a lot more pull coming from corporations rather than individuals, I think it would be best brought to their attention. They're active on on Meta.SE, but less often visit the local !etas"  I suspect that content from all over Stack Exchange is being abused in this way on Learnhub.org. Can the powers that be step in on our behalf (as well as SO's)?


"put X down to" vs. "put down X to": subjects of verbs with two particles

I expect I would have to put down many coats to do the job. ()   One factor to distinguish phrasal verbs from prepositional verbs is particle movement. Phrasal verbs can place the particle before or after direct object, whereas the preposition in prepositional verbs must precede the noun. (Biber et al. 1999)    So, I'm confused when analyzing the fragment "put down many coats to" because I'm not able to distinguish whether "put ... " is a phrasal verb or a prepositional verb. The confusion arises when I read in the Oxford Dictionary of English, under 'put' → 'phrasal verb', the form "put something down to" is correct.  So, the above sentence would be rewritten as follows :     I expect I would have to put many coats down to do the job.   Am I right? If not, how do I correctly distinguish phrasal verbs from prepositional verbs in the cases, like this one, where there are two particles (in this case 'down' and 'to')?


How to preserve spacing before + operator in `multlined` environment?

How to keep the space before + operator?    Here there is the code to generate the example:  \documentclass[a4paper]{article}  \usepackage{mathtools}  \begin{document}  \begin{equation}   \begin{multlined}     a = b + c   \end{multlined} \end{equation}  \begin{equation}   \begin{multlined}     a = b + \\ + c   \end{multlined} \end{equation}  \end{document}


How can I install Celestia on Ubuntu 18.04.1?

Like the title said, I want to install Celestia. I already downloaded the packages  and then, I tried all the things that I found on some posts (also, they're outdated, cause the last one is for Ubuntu 16.04) but nothing works.  How can I install it on Ubuntu 18.04.1?


Let's say I'm given a number.  I am now asked to determine if this number is of the form : $a^{b}$ mod $N$ . Unfortunately the parameters are such that I cannot perform a discrete logarithm in feasible time. $a$ and $N$ are known (and large) natural numbers with $a<b<N$. $a$ is a prime number. $N$ is composite. Nothing is known about $b$. What are some mathematical tests I can perform to determine this?


Do I need a transit visa traveling via Heathrow to San Francisco?

I am a citizen of Pakistan and on my way to San Francisco I have 20 hour stay at Heathrow airport. Do I need a transit visa if I would want to stay at a hotel overnight in London heathrow?   I have a valid US visa and confirmed flight to San Francisco from London!


Change wallpaper automatically in ubuntu 13.10

well I'm new on ubuntu, I installed the 13.10 version because I heard it's faster and smoothly than 12.04. So, my problem is that I don't know how to change wallpapers in an automatic way (slideshow), but with my OWN pictures, I don't want pictures from flicker, etc. I want to have wallpapers of pictures that I have already downloaded. I searched some programs and I found Slidewall but I can't download it in ubuntu 13.10. Could anybody lend me some help? (sorry if there's a English confusion, I'm not too good at it)


When an enemy is defeated, who in the party gains experience?

When a character kills an enemy, do only they get the experience, or does everyone in the whole group get the experience?  That is, does it matter who made the last hit that took the enemy down?


Parsing XML, JSON, and newer data file formats in UNIX using command line utilities

The Unix environment has some excellent tools for parsing text in various forms. However, of late, the data is not in the traditional (historical) formats (CSV, TSV, record-based or some other delimiter-based) it used to be before. Data these days is exchanged in structured formats like XML/JSON.  I know there are some good tools like sed, awk and Perl which can chew down nearly any form of data out there. However, to work with this sort of structured data, often one has to write a complete program, and, given the little time available to extract information, one has to sit down and figure out the whole logic of what one wants to query and put it down programmatically. Sometimes this is not OK – basically because the information extracted from those files acts as inputs for further work; also because of the time it takes to search for the appropriate solution and code it up. A command line tool is needed with sufficient switches to find, query and dump data.  I'm looking for tools that take a XML/JSON or other forms of structured data and dump it into other formats like csv, etc., so that from there one could use other commands to get any information out of it.  Are there any command line utilities you know of which do this kind of a job? Are there already awk/Perl scripts available to this?


I been using Ubuntu 18.04 for months, Last night it was working fine but when logged back today it was showing me black screen. So i just installed new Ubuntu 18.10 and try to install AMD graphic driver and i can't find driver for Ubuntu 18.10 and now I'm struck with AMD Oland.  Card AMD Radeon HD 8570 OEM  lspci -vnn | grep VGA -A 12 01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Oland [Radeon HD 8570 / R7 240/340 OEM] [1002:6611] (prog-if 00 [VGA controller])     Subsystem: Dell Oland [Radeon HD 8570 / R7 240/340 OEM] [1028:2121]     Flags: bus master, fast devsel, latency 0, IRQ 34     Memory at e0000000 (64-bit, prefetchable) [size=256M]     Memory at f7dc0000 (64-bit, non-prefetchable) [size=256K]     I/O ports at dc00 [size=256]     Expansion ROM at 000c0000 [disabled] [size=128K]     Capabilities: <access denied>     Kernel driver in use: radeon     Kernel modules: radeon, amdgpu  01:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde/Pitcairn HDMI Audio [Radeon HD 7700/7800 Series] [1002:aab0]     Subsystem: Dell Cape Verde/Pitcairn HDMI Audio [Radeon HD 7700/7800 Series] [1028:aab0]


How do I calculate the number of members in a limited Fibonacci series?

Looking for an algorithm that will give me the number of members that will result from calculating a Fibonacci series, given a particular limit.   For example, if I start the series at 1 and limit my results to <= 10000, determine the number of members such a Fibonacci series will contain. (I am writing some software that builds a Fibonacci series to a given limit: Before the calculation begins, it would be more efficient to know in advance how much memory I need to allocate for a container that will hold all the resulting members of the series)


How do I read the hit damage for monsters?

I just got the new 5th edition of D&D and I started reading the new mechanics. One puzzles me. I'm trying to understand the Hit Damage. I'll use the Aarakocra from the monster manual. It says for the Talon attack Hit: 4 (1d4+2). Where does the 4 come in? Is it actually damage like  4 damage plus 1d4+2 or is it like says +4 to hit and damage is (1d4+2). I know it's probably a very stupid question but like I said, confused.


Setting up a shared folder with group: ACL and file creation

I'm very new to ACL, and at the moment I've been trying to set up a shared folder such that any user belonging to a certain group (lets call it "thegroup") can have full access to the folder (which includes read, write, execute, and "creation" of files). When a user belonging to a group creates a file, the ownership should be automatically set to the user as well as "thegroup", and the file should be accessible in every single way by other members of the "thegroup". I'm not sure what the user ownership of the folder should be called so I just decided to set it to root.   I've been following the instructions here but so far I can only list the files located in the directory as a normal user. I do not have read, write, or creation capabilities after doing the following commands:  mkdir folder setfacl -m u:root:7 folder setfacl -m -d u:root:7 folder setfacl -m g:thegroup:7 folder setfacl -m -d g:thegroup:7 folder   From what I understood, by setting the default ownership all the files that are created inside the folder should inherit the parent folder's permission, right? However, this doesn't seem to be the case.  Is there something I'm missing?  Note: the debian manual mentions that for each user that I want to add access to I have to explicitly add him to the ACL. I'm trying to avoid this by simply adding the user to a group, and then giving the group full access to the folder. Is this possible with ACL, or do I have no choice but to manually specify every user that's going to access the folder?


Spring 18 : Value Attribute in lightning:inputField

i am trying to set value to the lightning:inputField using the value attribute. The value attribute seems to work during the init handler event of the component. however i have a onchange for lightning:select . i want to set a custom value to the lightning:inputField(example, component.find("name").set("v.value","testing")). but it doesnt seem to work. however i noticed from console.log, the value attribute is getting changed but it doesnt reflect neither in UI nor while saving to the DB.


Can you prevent more than X number of rows being updated in SQL Server?

Is there a way to configure SQL Server to limit the number of rows than an update statement can modify?  Say I wanted the limit to be 30,000 rows and someone fired an update that would modify 45,000 rows, they would receive an error or some other preventive message.


I'm trying to create a simulation for a party. There will be 4 classes: host, engineer, artist and scientist. Each one of those will have to be placed on a 50x50 field. I have to create a random generator in order to do this and I'm really stuck on this part for many hours now since I've never done random generators before so I hope that I can get some help. (I'm a beginner, yes.) I'm currently receiving this error: "Exception in thread "main" java.lang.NullPointerException     at Simulator.populate(Simulator.java:88)     at Simulator.partyStatus(Simulator.java:101)     at Simulator.(Simulator.java:56)     at Simulator.main(Simulator.java:41) BUILD SUCCESSFUL (total time: 3 seconds)"  If there is a different, better way of doing it then I'd be more than happy to see it and if you need any more details regarding this then just ask.  Thanks in advance!  public class Simulator {      private static double ARTIST_CREATION_PROBABILITY = 0.2;     private static double HOST_CREATION_PROBABILITY = 0.2;     private static double ENGINEER_CREATION_PROBABILITY = 0.2;     private static double SCIENTIST_CREATION_PROBABILITY = 0.2;      private static int seed;      private ArrayList<Artist> artists;     private ArrayList<Scientist> scientists;     private ArrayList<Engineer> engineers;     private ArrayList<Host> hosts;     private ArrayList<People> people;      private int depth;     private int width;     private Field field; //    private static int step;     private SimulatorView simView;      Random rand = RandomGenerator.getRandom();       public static void main(String [] args) { //     SimulatorView simView = new SimulatorView(50,50);       Simulator simulator = new Simulator(50,50);       }      /**      *      * @param depth      * @param width      */     public Simulator(int depth, int width) {         this.simView = new SimulatorView(depth, width);         this.field = new Field(depth, width);         this.depth = depth;         this.width = width;         this.partyStatus(simView, field);          RandomGenerator.initialiseWithSeed(seed);     }         public void populate(Field field){ //        People host = new Host(); //        People artist = new Artist(); //        People scientist = new Scientist(); //        People engineer = new Engineer();  //        field.place(artist, 10, 10); //        field.place(scientist, 20, 20); //        field.place(engineer, 30, 30); //        field.place(host,40,40);                 Random rand = RandomGenerator.getRandom();         field.clear();           for(int row = 0; row<field.getDepth(); row++){             for(int col = 0; col<field.getWidth(); col++){                if(rand.nextDouble() < ARTIST_CREATION_PROBABILITY){                  Artist artist = new Artist();                  artists.add(artist);                  field.place(artist, row, col);                }                else if(rand.nextDouble() < SCIENTIST_CREATION_PROBABILITY){                  Scientist scientist = new Scientist();                  scientists.add(scientist);                  field.place(scientist, row, col);                }                else if(rand.nextDouble() < ENGINEER_CREATION_PROBABILITY){                  Engineer engineer = new Engineer();                   engineers.add(engineer);                  field.place(engineer, row, col);                }                else if(rand.nextDouble() < HOST_CREATION_PROBABILITY){                  Host host = new Host();                  hosts.add(host);                  field.place(host, row, col);                }              }          }             }      public void partyStatus(SimulatorView simView, Field field){         this.populate(field);         simView.setColor(Artist.class, Color.ORANGE);         simView.setColor(Scientist.class, Color.BLUE);         simView.setColor(Engineer.class, Color.MAGENTA);         simView.setColor(Host.class, Color.GREEN);         simView.showStatus(1, field);     }       }


I need to show that $x^3 - 6 = 25y^2 + 35y$ has no non-zero integer solutions. I tried moving things around and factor. Or use modulo 5 and 7 reductions for something shady to become a quadratic residue of a prime. I also couldn't really come up with something to use infinite descent. Hints would be appreciated. This was a problem for non-linear diophantine equations (Pythagorean triples, rational points on curves, Fermat's last theorem, Pell's equations, etc.) in last year's elementary number theory exam.


Issue: Mean to search for keyword: C# actual search ends up being C  Steps to reproduce:    Click on C# listed next to keywords Sort by: Date Posted Realize you are now looking at results for C instead of C#   Note: this is not reproducible if you go through the normal search, only via the keyword click


isomorphism between $k[[x]]$ into $\varprojlim_n k[x]/(x^n)$

i want to find isomorphism between $k[[x]]$ and $\varprojlim_n k[x]/(x^n)$ but I cant.please help me to find this.


Can spells or spell-like abilities do non-lethal damage?

I'm working on a Paladin/Warlock combination, based off of , and as part of this, I noticed Miniman's remark that Repelling Blast won't be that useful, because as a Paladin, you want people up close and personal when you're in a combat situation, not further away.  However, as a Paladin, your creed sometimes leads you to not want to engage in full-blown combat with a potential adversary -- you may want to drive them off or incapacitate/capture them instead.  With this, I wonder: can Repelling Blast, or other spells and spell-likes (such as invocations), be made to do non-lethal damage?  If so, I'm thinking that it'd be useful in exactly that sort of situation -- halting someone/pushing them away without having to wade into a melee with them or blow them to smithereens.


After I log off it displays "wrong password" when I try to log in again

When I log off my system and after some time try to log back in it displays "wrong password". I need to go to "switch user" and there select my username and then I can enter my password and log in. But, it doesn't open directly from the log off screen.


JSON with Java; Converting a JSON object to a Java string to be sent through the Java socket

I just started tinkering with java and now am trying to send a JSON object over the socket. I tried to implement Serializable but it did not work so I've put that to hold. Now I m just trying to send a JSON object in the form of a string.   JSONObject jsontype = new JSONObject; String stringJSON = jsontype.toString();     return stringJSON;  this.clientOut = socket.getOutputStream(); this.clientOut.write((tosend+"\n").getBytes()); // had to add \n  //otherwise it doesn't work    I have tested the receiving side of it by sending a plain string with \n and it works! but if i try to send a json object it throws a nullpointerexception error. My json object is not null as I have tested it. Is there any other way to convert a json into a regular string? I am using the org.json library.


Determine the smallest positive value of x(in degrees) for which: $\tan(x+100^{\circ}) = \tan(x+50^{\circ})\tan (x)\tan(x-50^{\circ})$  I tried to apply the formula of $\tan(A+B) = \frac{\tan A + \tan B}{1-\tan A \tan B}$ but that led me nowhere resulting in a huge equation.  Please help.


How do I override or configure systemd services?

Many sysv init scripts used a corresponding file in /etc/default to allow the administrator to configure it. Upstart jobs can be modified using .override files. How do I override or configure systemd units, now that systemd is the default in Ubuntu?