In , John Loftus often makes statements like:  Faith, as I argue, is an irrational leap over the probabilities. Probabilities about such a matter are all that matter. We should think exclusively in terms of them. (19) If God created us as reasonable people, then the correct religious faith should have sufficient evidence for it, since that’s what reasonable people require. (22) Because science is the only game in town. It works. It produces the goods. There isn’t a better alternative. (119)  Loftus' attitude seems representative among many atheists; while I'm aware that there are other views, it is this kind of view which leads to the title of this question: Ought we only form beliefs based on sufficient empirical evidence? Here are some sub-questions which may help guide answers:  How can we get an ought from an is, given that evidence only describes what is? Reformulating the title as a hypothetical imperative doesn't seem to help, because the scientific method doesn't seem to ever make a hypothetical imperative binding. And yet, surely those who would agree with the quoted text would find certain hypothetical imperatives binding?  Given that the scientific method includes "basic arithmetical truths and also certain truths about formal provability",  seems to apply: a given axiomatic formulation of the scientific method will be unable to imply certain (virtually all, it turns out) truths. To say that science is complete—there are no other methods of knowing things—seems to imply that science is inconsistent. Is this 'seems' an illusion?  Does the scientific method require that we make observations prior to forming hypotheses? It could be argued that probabilistically, trying to come up with hypotheses before making a 'sufficient' number of observations will result in a failed hypothesis too much of the time. Is there evidence to support this which can probabilistically rule out all other kinds of hypothesis-forming?  Must we accept any unfalsifiable claims? The answer seems to be 'yes', given e.g. the example of crystal structure discussed by Michael Polanyi in  (43-48, 1984 paperback). A set of geometries seemed to well-describe many crystals found in nature, and even if some crystals aren't well-described, that doesn't falsify the instances in which it does. This opens up the question of which unfalsifiable claims we ought to accept.  If we model human reasoning as , we can ask what is meant by 'sufficient' by what the 'probabilities' are, prior to any observations: what  ought we start with? I am tempted to say "the most effective one", but that presupposes a purpose; are we given an objective purpose?   I am left with the suspicion that one ought to only follow the scientific method to the extent that one only wants to predict one's future observations—this smells like a tautology. It seems to beg the question to say that the most important area of 'truth' is objective reality, a question which cannot be answered with the scientific method. A 'yes' answer to the main question would seem to fall prey to something like  of .  I was tempted to phrase my question as:  Is science the only source of truth?  I believe this is a bad question, for a few reasons:  We care about whether a method can reliably arrive at truth/knowledge. The terms 'truth' and 'knowledge' would possibly stir a debate about , which may not be a prerequisite for the answer to my question. My question makes explicit that we are talking about what one ought to do, which is not explicit in the above formulation.


A shared cigarette with a friend changes a San Francisco man's DNA into physical perfection

I am trying to find a story about a freelance guy in the tech industry of San Francisco who shares a cigarette with a friend of his, wakes up really sick, and transforms into physical perfection (I think his friend worked for the government).   A few random memories; while changing the man has to eat three cheeseburgers a day, wakes up really sick, and somewhere there's the phrase about his stomach being "tight as a drum." I read it about 5 years ago, possibly on Salon.com. And help would be greatly appreciated!


Is it possible to change the color of a single bar when the bar plot is based on symbolic values?

I am beginner in LaTeX, trying to use it for industrial documents. I wonder if there is a way to change the color of only one bar of the plot below, ie "TestDetails", to illustrate it is a local macro and not a LaTeX keyword. I have been trying to experiment with point meta, but could not find a way.  \documentclass{article} \usepackage{filecontents}  \usepackage{pgfplots}  \usepackage{pgfplotstable} \pgfplotsset{width=.95\textwidth, compat=newest}   \begin{document}  \begin{filecontents}{data.csv} {Occurences}, {keyword} 215, item 159, SI 134, subsubsection 106, TestDetails 58, caption \end{filecontents}  \pgfplotstableread[col sep=comma]{data.csv}{\datatable}  \begin{tikzpicture} \begin{axis}[ /pgf/number format/.cd,1000 sep={}, width=0.8\linewidth,height=6cm, xbar, xmin=30, xmax=250, xtick=\empty, enlarge x limits={value=0.1, upper}, enlarge y limits=0.1, ytick=data,  y dir=reverse, xlabel= {}, y tick label style={major tick length=0pt}, yticklabels from table={\datatable}{[index]1}, nodes near coords, nodes near coords align=horizontal, ] \addplot [draw,fill=blue!50]table[ y expr=\coordindex, x index=0]{\datatable}; \end{axis} \end{tikzpicture}  \end{document}


Problem running windows software on wine

I installed a windows game successfully, however when I tried to run it, the software is asking me to insert the CD into the CD-ROM, which I did. But then after I press OK, nothing happen.  I'm guessing somehow game unable to access the CD-ROM. What do I need to do so I can get this game to work? FYI, when I insert a CD, the content of the CD automatically show up under /media/. There is a /cdrom/ folder, but it's empty.  Please help anyone?   Thanks


Screenshotting Google Maps and Pasting into Excel Document VBA

I have a code that already searches for the latitude and longitude and pastes to my worksheet, which works perfectly. I'm looking for a way to take that latitude and longitude, load google maps, and either take a screenshot of the google maps page or embed the map into Excel.   In my code below I have a code that already loads google maps for any input address, but I do not know how to either take the screenshot of the map (preferably without the input information on the side of the page) or embed the map into Excel. The extra code at the bottom is for a request/response from a USGS website that pulls official seismic information for a location, but should not effect the top part of the code.  Please note that I want this to just be a static screenshot of the map if possible. I do not want to install Google Earth on multiple desktops to be able to embed an interactive map into the worksheet if at all possible.  Option Explicit  Public Sub Seismicgrab()  Dim browser As New ChromeDriver Dim URL As String Dim ws As Object Dim xmlhttp As New MSXML2.XMLHTTP60  browser.Get "http://www.google.com/maps?q=" & Range("H13").Value  browser.Wait 5000  Cells(19, 13).Value = browser.URL  browser.Close  URL = Range("M24").Value xmlhttp.Open "GET", URL, False xmlhttp.Send Worksheets("Title").Range("M25").Value = xmlhttp.responseText End Sub


When I put   /summon Item ~ ~2 ~ {Item:{id:"minecraft:diamond",Count:1b,Motion:[0.0,0.8,0.0]}}    in a command block, it summons the diamond with Count:1b but it doesn't follow the Motion Tag. Does anyone know how to get the Motion Tag working?


"Antimalware Service Executable" disk usage continually runs at 100%

Antimalware Service Executable (Win10) has had disk usage pegged at 100% for five hours and counting. Is there any way to get some level of detail what specifically it's doing and/or an estimate of when it will be done?   This seems pretty basic but every search I've tried yields piles and piles of "solutions" that involve disabling the service. I don't want to do that. What is Antimalware Service Executable actually doing? What other solutions are there to fix the problem?  Edit: Explanation of why it is not a duplicate question:  The single answer on the "" is installing a different antivirus program. That's not in any sense an answer for how to find out what Antimalware Service Executable is doing.  Edit: I did not change the subject and I don't think it reflects the question. I am not asking how to make the process stop having high disk usage. I'm asking how to get some information about what the process is currently doing instead of just guessing.


Inline badge entry (conversion to graphic)

There are methods on meta sites when discussing tags to put them graphically into your question/answer (using brackets):   I am requesting that the same be implemented for badges: that it would be possible to use the syntax [badge:tenacious] and have the system automatically convert it to a graphical badge, like:    It would enhance the meta sites in particular by making them more aesthetically pleasing, though it wouldn't have a large if any effect on the main sites.


Unable to parse JSON string in JavaScript

I'm sending JSON string from Django view to javascript file named idbop.js at the client side. I'm using the serializer in Django to convert query result in Django to JSON. Here is my code in views.py of Django  def index(request): template='posts/index.html' results=feed.objects.all() jsondata = serializers.serialize('json',results) context={     'results':results,     'jsondata':jsondata, } return render(request,template,context)   At client side, I'm accessing jsondata in javascript as follows:  var jsondata="{{jsondata}}".replace(/&quot;/g,"\"");   Here jsondata is in string format. If I try to parse it using, var data = JSON.parse(jsondata); It is throwing an error:SyntaxError: JSON.parse: bad control character in string literal at line 1 column 344 of the JSON data  I'm having whitespace at 344 in jsondata but that whitespace is inside the string of value. Here is my JSON string:   [     {         "model": "posts.feed",         "pk": 1,         "fields": {             "author": "J Watson",             "title": "Service Worker",             "body": "A service worker is a type of web worker. It&#39;s essentially a JavaScript file that runs separately from the main browser thread, intercepting network requests, caching or retrieving resources from the cache, and delivering push messages.  Because workers run separately from the main thread, service workers are independent of the application they are associated with. This has several consequences:"         }     }]


Command blocks spawning thousands of Ender dragons

I had a world that me and my friend had made. My friend started playing with redstone and command blocks. There is an extremely fast clock that you can make with command blocks. (One command block set a block to air, the other command block setting that same space at redstone block). He then used that clock to power a third command block which spawned an ender dragon. The world is too laggy to do anything. I jiggle the mouse and it comes through about 2 1/2 minutes later.  We were running version 1.10.2 (not snapshot)  I have tried opening the world in version 1.0, before there was redstone and ender dragons. That depended completely on whether the game deleted the "unknown" data. That did not work.  I would really like to have that world saved. I am at a loss as what to do. Thanks in advance.


How to add the cross vertical line in two column table

how to add the cross vertical line in two column table. There should be cross vertical line in below.  My code is starting like this:  \begin{table*}[t] \centering \caption{cap} \scalebox{0.67}{ \begin{tabular}{c|ccc|ccc|ccc} \toprule kk & 1  & 2 & 3 & 1 & 2 & 3 & 1  & 2 & 3 \\ \midrule name & \multicolumn{3}{c}{aa} & \multicolumn{3}{c}{bb} & \multicolumn{3}{c}{cc} \\


how to make javascript string a function call

I have string logo.cr.Button and function   logo.cr.Button = function(){  //something }  var strg = 'logo.cr.Button'; strg();   now somehow i have to make that string a function call  like strg(); but it is saying      strg is not a constructor   here


What are the meanings of IC's suffixes? For a example, ? What is the meaning of BE? What are the other suffixes?


A sufficient condition for irreducibility of a polynomial in an extension field.

Here is another problem of the book Fields and Galois Theory by Patrick Morandi, page 37.     Let $f(x)$ be an irreducible polynomial over $F$ of degree $n$, and let $K$ be a field extension of $F$ with $[K:F]=m$. If $\gcd(n,m)=1$, show that $f$ is irreducible over $K$.   I'm preparing for my midterm exam so I'm trying to solve as many as this book problems. Thanks for your helps.


Can time machine or iCloud backups overcome ransomeware encryption of your hard drive?


Should I use the pronoun "it" with the word "person"?

For instance, is it grammatical?     I looked from the window and spotted a person. It crossed the street.


"Page not found" when clicking on "edit profile" when suspended

Example on :  No problem on other SE websites where I am not suspended.


Time to upgrade SSL Cert(s) on *stackexchange.com

When browsing any StackExchange site, my Firefox console displays this warning:     This site makes use of a SHA-1 Certificate; it's recommended you use certificates with signature algorithms that use hash functions stronger than SHA-1.   To be clear, it's not the SE cert that is at fault, but the CA root certificate.  The warning points to  for more information.   Whether one chooses to connect via https or not, this is a concern because of mixed content on the sites, and because the GlobalSign Root CA certificate that is the root for *.stackexchange.com has a weak or insecure signature (SHA1 with RSA). That can currently result in a visible warning, depending on which browser is used. Today, actual functionality is unaffected, but should be expected over time.   () "...expect SHA1 certificates issued after 1/1/2017 may stop working at any time." Internet Explorer will distrust SHA-1 certificates after 2016.  () Same timeline. () Is actively sunsetting SHA-1 support. Sites with end-entity (“leaf”) certificates that expire on or after 1 January 2017, and which include a SHA-1-based signature as part of the certificate chain, will be treated as “secure, but with minor errors”. That refers to SE, currently.   Will you be upgrading to more secure certificates at next renewal?


I'm looking for modern textbooks on quantum mechanics that treat topics such as quantum entanglement , bell's theorem , quantum teleportation , quantum information theory , The Many-world interpretation , decoherence etc . All the textbooks that I can find cover the usual topics only (scattering theory , perturbation , the hydrogen atom etc ) But I can't find a book that mainly address these topics . Are there textbooks that specialize in the aforementioned topics ? If not , What are some pedagogical papers that are useful ?  I don't care if the resources are mathematically rigorous or not . I would actually prefer books /papers that use more advanced math than usual.


I'm creating a 2D game in C++ that uses levels made out of tiles. The world class has an add(WorldObject* o) function that can both accept a tile or an entity such as an enemy. Both the Tile and the Entity class are derived from WorldObject. In every case, the object should be added to the entities list; but if it is a tile, it should also be added to the tiles list.  World.h  class World { private:     list<WorldObject*> content;     list<Tile*> tiles; public:     void add(WorldObject*); }   World.cpp  void World::add(WorldObject* o) {     content.push_back(o);     if(*o instanceof Tile) //What do I need to put here?         tiles.push_back(o); }   How do I check whether an object has a specific type in C++? It's nothing about typecasting and virtual functions and things like that because I don't want to invoke functions to the object at this time; I just need to add it to a separate list if it has a certain type. In Java, I can do if(instance instanceof Class). How can I do this in C++?


in C++ compilation, shows "undefined reference to" a function but with implementation .cpp file linked

Thanks for your attention! I am a new hand in C++ and this drives me crazy.  Here is the compile result:  $ g++ -std=c++11 main.cpp Node.cpp C:\Users\Sen\AppData\Local\Temp\ccsNgEyE.o:main.cpp:(.text+0x29): undefined reference to `Node<int>::Node()' C:\Users\Sen\AppData\Local\Temp\ccsNgEyE.o:main.cpp:(.text+0x43): undefined reference to `Node<int>::setItem(int const&)' c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe:  C:\Users\Sen\AppData\Local\Temp\ccsNgEyE.o: bad reloc address 0x0 in section `.ctors' c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: final link failed: Invalid operation collect2.exe: error: ld returned 1 exit status   And here are my files: Node.h:  #ifndef NODE_H #define NODE_H template <class ItemType> class Node{ private:     ItemType item;     Node<ItemType>* next; public:     Node();     Node(const ItemType& anItem);     Node(const ItemType& anItem, Node<ItemType>* nextNodePtr);     void setItem(const ItemType& anItem);     void setNext(const Node<ItemType>* nextNodePtr);     ItemType getItem() const;     Node<ItemType>* getNext() const;     }; #endif   Node.cpp:  #include "Node.h" using namespace std;  template <class ItemType> Node<ItemType>::Node(){     next = nullptr; }  template <class ItemType> Node<ItemType>::Node(const ItemType& anItem){     item = anItem;     next = nullptr; }  template <class ItemType> Node<ItemType>::Node(const ItemType& anItem, Node<ItemType>* nextNodePtr){     item = anItem;     next = nextNodePtr; }  template <class ItemType> void Node<ItemType>::setItem(const ItemType& anItem){     item = anItem; }  template <class ItemType> void Node<ItemType>::setNext(const Node<ItemType>* nextNodePtr){     next = nextNodePtr; }  template <class ItemType> ItemType Node<ItemType>::getItem() const{     return item; }  template <class ItemType> Node<ItemType>* Node<ItemType>::getNext() const{     return next; }   My main.cpp file:  #include <iostream> #include <vector> #include "Node.h"  int main(){      Node<int>* node1 = new Node<int>();     node1->setItem(1);   }   I simply don't know why... in g++ command I added in Node.cpp and in Node.cpp there is obviously implementations of the constructor and method.  Thanks for your attention!


Closed, simply connected manifolds which are not spheres

In 2 or 3 dimensions, every closed simply connected manifold is a sphere.  In the smooth category, I suppose you could take exotic smooth structures to give examples of closed simply connected manifolds which aren't spheres, but this doesn't really give a ton of insight for me. What about in the topological category? Is there an easy example here?


Are Dot and Cross products fundamental ideas?

Are Dot and Cross Products fundamental ideas of Vector Algebra? Isn't there some intuition they were born from? From the looks of the Cross Product, especially, it's hard to believe there isn't one.


I believe that you are supposed to add the strength modifier or dexterity modifier depending on if it is a melee weapon or if it is a ranged weapon respectively. Then add the proficiency bonus if they are proficient in the weapon. All of this is added to the roll of a d20. Am I correct?


Prove that $[0,1] \approx  [0,a)$ where $a$ is a positive real number.  I know I need to fine a bijective function function between the two sets. The $a$ in the second set is throwing me off. Origninally I was thinking of doing $x=\frac{1}{a}$ that would get me $[0,x)$. But i am unsure if this is the correct route. Also how do I address the open interval on $a$ as oppose to a closed interval?


Java - referring to a sub-class to it's super class type confusion

I was watching a tutorial on this particular topic and am still unsure of why it would be used. In the tutorial, a sub-class was referred to by it's super-class type (Animal dog = new Dog() ). Why would this be used as opposed of referring to it by putting Dog dog = new Dog()?


Hard disk making short, low, high-pitched noise semi-regularly

I'm trying to figure out what's wrong with my brand new Seagate ST2000DM001(-9YN164) hard drive, if indeed anything. Irregularly, but seemingly every few minutes (every 3-7 minutes now in the time I've been timing it), it makes a short (0.2 seconds tops), fairly high-pitched, two-part sound. It's definitely not normal "working noise", and there doesn't seem to be any correlation to disk activity.  The odd thing is that when I was using the drive with a USB-SATA adapter (one of those dongle things, not a plug-in cradle), sitting on top of the computer case with a paper magazine for insulation, it did not make any unusual noises during the copying of around 1 TB of data from the internal drive (which was showing signs of starting to fail, including reporting uncorrectable read errors during a routine file system scan). The change after that is that I removed the old internal drive, replaced it with the new one and re-fitted the SATA data and power cables.  I used GSmartControl, which presents smartctl data (I'm running Debian 6.0 on this system) to inspect the drive's SMART data, paying particular attention to the Start/Stop Count (shown as: norm-ed value 100, worst 100, threshold 20, raw value 5), Seek Error Rate (66, 65, 30, 3981634) and  (100, 100, 97, 0) (intermittent spin-up or seek errors was my first hypothesis, but the data doesn't seem to support it). None of these values seem to be changing, and everything (both pre-failure and old-age) says failed "never", which IMO is to be expected on a drive that has only been in service for a few days. The seek error rate raw value seems high but unless it's growing rapidly I don't see that as being a major cause for concern. Using the same tool I also ran conveyance and short self-tests, both of which completed without errors and show a lifetime hours value of 41 in the test log. I'm currently running an extended drive self-test (including a disk surface scan) but frankly don't think that will turn up anything of much interest. One thing that certainly is interesting, however, is that in the a little over 15 minutes now that the extended self-test has been running, I haven't heard any such noise, which, if nothing else, further points to something about the new drive being the culprit (I haven't been doing anything else differently in this time).  Using hdparm, I disabled power savings by as root running hdparm -S 0 /dev/sda (where /dev/sda is the drive in question). This had no apparent effect.  Any ideas would be appreciated.  EDIT: Following the suggestion of @totaam, I turned the computer off completely (including the master switch at the back of the PSU), then restarted, and gradually added complexity. Everything was fine as far as I could tell through runlevel 1, but at runlevel 2 (which in Debian is multiuser with X, so basically the kitchen sink got thrown in at this point) the drive started exhibiting the same behavior again. So, I looked at what was started when entering runlevel 2, looking for any possible culprits, and found acpid as a clear candidate. Disabling that, however, doesn't seem to have helped, even after re-running hdparm manually. I will take a close look at the BIOS settings as well, but in the meantime, here is a list of what was started entering runlevel 2, in order; does anyone else see any possible culprits? (And Seek Error Rate is still climbing, now up to raw value 4008400.)   statd rsyslogd binfmt-support acpid (now removed) virtualbox-ose (host kernel modules) timidity dbus hald anacron atd gdm avahi-daemon cron cupsd kerneloops cpufreq ntpd postfix sshd


Which is correct in the following?  I am invited to meet the president. I am invited to meet with the president.


A polynomial function $f(x)$  with real coefficients leaves the remainder $15$ when divided by $x-3$, and the remainder $2x+1$ when divided by $(x-1)^2$. Then the remainder when $f(x)$ is divided by $(x-3)(x-1)^2$ is? What I have thought-The remainder must be of the form $ax^2+bx+c$. Now applying the remainder theorem, I am able to find $2$ equations in $a,b,c$ . eg Let $f(x)$=$(x-3)$$h(x)$+$15$             ...................................(1) Also let $f(x)=(x-3)(x-1)^2g(x)+ax^2+bx+c$...........................(2) Put $x=3$ and using (1) we get $15=9a+3b+c$  Similarly I can get another equation using the other information given. But I am only able to get 2 equations in 3 variables. From where do I get the 3rd equation in $a,b,c$ and hence the remainder?


I am working on a website that uses a previously developed image slider plugin. I had it all working in my local environment but once I took it live it kicked the following error anywhere the image slider is located...  Warning: Missing argument 2 for wpdb::prepare(), called in /home/content/r/o/b/robertrhuspeak/html/desarch/wp content/plugins/portfolio/fields.php on line 48 and defined in /home/content/r/o/b/robertrhuspeak/html/desarch/wp-includes/wp-db.php on line 1246   The line of code it is referencing looks like this...  $fields = $wpdb->get_results($wpdb->prepare("SELECT meta_key, meta_value, meta_order IS NULL AS isnull FROM $wpdb->postmeta WHERE post_id=$postID ORDER BY isnull ASC, ABS(meta_order) ASC, meta_id"));   My understanding is that wp-db.php is expecting two arguments and the above code is not written with two arguments.  BUT, I frankly have no idea how it should be written. And I have dug hard on the Internet to find something that will explain it to me clearly.  Any guidance would be greatly appreciated.  Thanks!


Where does the energy when a photon hits an electron but the electron doesn't doesn't gain enough energy to change level?

Sorry if my question is a little wordy. I was wondering the energy given by a photon goes if the electron it collides with doesn't gain enough energy to move up an energy level?


I installed Lubuntu 12.04 via USB-stick on my EEE PC 1005HA. It booted fine from the hdd with the USB plugged in. If I remove the USB it won't boot from the hdd. When I plug the USB back in, it boots from the hdd just fine but it won't let me boot from the stick even when I select it in the BIOS. I've never experienced something like this. Without the USB plugged in, I just get a blinking underscore and that's it.


Stuck on a Limit Question in Multivariable Calculus

I have just started learning about limits in my multivariable class and I came to a problem:   Let $$h(x,y)=\frac{x^5y}{2x^{10}+y^2}.$$ How would I prove that $$ \lim_{(x,y) \to (0,0)} h(x,y) \text{ Does Not Exist} $$  When I used polar coordinates ($x=r\cos(\theta),y=r\sin(\theta)$), I keep on getting that the limit is 0. I don't know how to do this. A friend said to look at the squeeze theorem, but I don't know how that applies here.  I asked this question earlier and I didn't receive answers that were up to my level of learning. I mentioned this on there but the answer I got was wrong.


A result of Erdős on increasing multiplicative functions

Erdős proved that if $f(n)$ is a monotone increasing function from the natural numbers to the positive reals, and $f(n)$ is completely multiplicative, then there exists some constant $C$ such that $f(n)=n^C$ for all $n$.  I have not been able to find a nice proof of this online and was hoping someone could provide a proof.


"Replace" versus "Substitute" - Sentence structure

I have a question about the words order and their effect on the meaning of a sentence when it comes to use the verbs "replace" and "substitute"!  As far as I know, "to replace someone / something with someone / something else" means "to substitute someone / something for someone / something else".  Additionally, as far as I am concerned, if you are replacing A with B, then you are substituting B for A.  But problem is that if changing the words' places in each structure makes any difference in meaning?  For instance, does it make any difference if I say:         Yesterday, I had a terrible quarrel with the company's directing manager and they are going to replace me with Sam Or substitute Sam for me.           Yesterday, I had a terrible quarrel with the company's directing manager and they are going to replace Sam with me Or substitute me for Sam.       Let me simplify it! The inly thing that is important in the meaning of the two is that:  (Replace X with Y = Substitute Y for X)  But I need to know if replacing X and Y has a specific connotation in English? For example, in:      1.a. They  are going to replace Sam with me.    1.b. They  are going to substitute me for Sam.     ..........................      2.a. They  are going to replace me with Sam.    2.b. They  are going to substitute Sam for me.     I was wondering which set implies that I was the first employee and Sam is taking my place?  Also which set implies that I as a new employee am taking Sam's place?  I hope I could make myself understood.   Thank you.


I wanted to use some symbols from marvosym but they don't seem to work in my distribution.   \documentclass{article} \usepackage[english]{babel} \usepackage{marvosym}  \begin{document}  $\Bat$ $\Bicycle$ $\Coffeecup$  $\Frowny$  $\Heart$ $\Industry$  $\Football$ $\Mobilefone$ $\Smiley$ $\Womanface$ $\Gentsroom$ $\Ladiesroom$ $\Taurus$ $\Sagittarius$ $\WomanFace$ $\ManFace$ $\Yingyang$ \end{document}    I get a PDF output like:    Log highlights:    This is pdfTeX, Version 3.1415926-2.4-1.40.13 (MiKTeX 2.9 64-bit) (preloaded format=pdflatex 2013.12.5)    ...    ("C:\Program Files\MiKTeX 2.9\tex\latex\base\fontenc.sty"   Package: fontenc 2005/09/27 v1.99g Standard LaTeX package   ("C:\Program Files\MiKTeX 2.9\tex\latex\base\t1enc.def"   File: t1enc.def 2005/09/27 v1.99g Standard LaTeX file   LaTeX Font Info:    Redeclaring font encoding T1 on input line 43.   ))    ...    ("C:\Program Files\MiKTeX 2.9\tex\latex\marvosym\marvosym.sty"   Package: marvosym 2011/07/20 v2.2 Martin Vogel's Symbols font definitions   )    ...    LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 6.   LaTeX Font Info:    ... okay on input line 6.   LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 6.   LaTeX Font Info:    ... okay on input line 6.   LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 6.   LaTeX Font Info:    ... okay on input line 6.   LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 6.   LaTeX Font Info:    ... okay on input line 6.   LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 6.   LaTeX Font Info:    ... okay on input line 6.   LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 6.   LaTeX Font Info:    ... okay on input line 6.   LaTeX Font Info:    External font `cmex10' loaded for size   (Font)              <7> on input line 8.   LaTeX Font Info:    External font `cmex10' loaded for size   (Font)              <5> on input line 8.   LaTeX Font Info:    Try loading font information for U+mvs on input line 8.    ("C:\Program Files\MiKTeX 2.9\tex\latex\marvosym\umvs.fd")   Missing character: There is no ý in font cmr10!   Missing character: There is no ® in font cmr10!   Missing character: There is no § in font cmr10!   Missing character: There is no Œ in font cmr10!   Missing character: There is no © in font cmr10!   Missing character: There is no þ in font cmr10!   Missing character: There is no á in font cmr10!   Missing character: There is no è in font cmr10!   Missing character: There is no þ in font cmr10!   Missing character: There is no ÿ in font cmr10!   I'm using TeXstudio 2.6.6. My MiKTeX package manager has a load-on-demand setup so maybe I'm missing packages with other fonts? At the moment I'm pretty clueless how to solve these missing character errors (I presumed they would be installed with the package).  Any ideas how can I solve this?  (I hope the question is not too localised but I do have a pretty standard setup.)


\begin{tikzpicture}[shorten >=1pt,node distance=3cm,on grid,auto]   \node[state,initial]   (q_1,q_4)    {$q_1$,$q_4$};   \node[state]           (q_2,q_5) [right=of (q_1,q_4)] {$q_2$,$q_5$};   \node[state,accepting]           (q_3,q_6) [right=of (q_2,q_5)] {$q_3$,$q_6$};   \node[state]           (q_3,q_7) [right=of (q_3,q_6)] {$q_3$,$q_7$};   \node[state]           (q_2,q_4) [below=of (q_1,q_4)] {$q_2$,$q_4$};   \node[state,accepting]           (q_3,q_5) [below=of (q_2,q_4)] {$q_3$,$q_5$};   \node[state,accepting]           (q_3,q_4) [below=of (q_3,q_6)] {$q_3$,$q_4$};    \path[->] (q_1,q_4) edge        [bend right=30]    node[above][align=center] {a} (q_2,q_5)                       edge     node {b} (q_2,q_4)             (q_2,q_5) edge      [bend left=30]       node[below] {b} (q_1,q_4)                       edge  [bend right=30] node[above] {a} (q_3,q_6)             (q_3,q_6) edge  [bend right=30]    node[text width=1cm,align=center] {a} (q_3,q_7)                       edge  node [align=center] {b} (q_3,q_4)             (q_3,q_4) edge [bend left=30]node[below][align=left] {a} (q_3,q_5)                       edge [loop above] node[text width=1cm,align=center] {b} (q_3,q_4)             (q_3,q_5) edge node {a}(q_3,q_6)                        edge node {b} (q_3,q_4)             (q_2,q_4) edge [bend left=30] node[below] {b} (q_1,q_4)                       edge node {a} (q_3,q_5)             (q_3,q_7) edge [loop above] node[above][text width=1cm,align=center] {a,b} (q_3,q_7);                  \end{tikzpicture}\\


Is there anything wrong with this Bubble Sort algorithm?

I'm very new to coding and I keep getting an ArrayOutofBoundsError: 8 when i run it through my universities submission process. I don't understand why. The error points to a swap method as well, however i didn't even write this as it was part of the skeleton. The problem only occurs when i try to use my own bubble sort method. So i figured there has to be something wrong with it. All the other methods work fine individually.    public void sortBubble() {    /* This implementation uses the bubble sort algorithm. For an explanation     * of how bubblesort works, google ...     *            bubblesort java     */     // with variable subscripts ...    int i = 0; // role: stepper     if ( list[i] > list[i+1] ) swap(list[i], list[i+1]);    ++i;    if ( list[i] > list[i+1] ) swap(list[i], list[i+1]);    ++i;    if ( list[i] > list[i+1] ) swap(list[i], list[i+1]);      // At this point, the largest element must be in list[3].     i = 0;    if ( list[i] > list[i+1] ) swap(list[i], list[i+1]);    ++i;    if ( list[i] > list[i+1] ) swap(list[i], list[i+1]);     // At this point, the second largest element must be in list[2].     i=0;    if ( list[i] > list[i+1] ) swap(list[i], list[i+1]);     // At this point, the smallest element must be in list[0].  }


My question has a few parts concerning the speed of light in general relativity.  Firstly, time changes in response to gravity and speed. Therefore, as gravity effects time in an area of space, should the speed of light "change?" When I say "change" I understand that light's speed is finite but wouldn't the length of second change and then change light's speed in meters per second?  Secondly, does the speed of light actually change with gravity? Time stops at the speed of light but does that mean light cannot experience time? Can light experience slower time while travelling through warped space time?


I have only one OS in my PC -- UBUNTU.  I wish to double the RAM.  So, if I got a table to verify the size of the swap area space, it would be very useful (without going deep into the details); especially for installation.  I mean, the range for 1GB, 2GB, 4GB etc.  If possible please tell me a preferable swap area for each.   I wish to know the minimum & preferable PERCENTAGE of space for Root "/" when the Hard Disk is considered.


the rest of her family was or the rest of her family were

which is correct: a) she didn't mind a mild storm when the rest of her family were present  b) she didn't mind a mild storm when the rest of her family was present


Unable to append a string to StringBuilder array element

Please refer to the following code:          Scanner scan = new Scanner(System.in);     int T = Integer.parseInt(scan.nextLine());     StringBuilder []str = new StringBuilder[T];     String temp = new String();     for (int i=0; i < T; i++){         temp = scan.nextLine();         str[i].append(temp);     }     System.out.println(str);   The above code throws a Null Pointer Exception on the line:  str[i].append(temp);   I want to do it with StringBuilder.


Can I use Crossbow Expert to fire my hand crossbow as a bonus if I already declared my Attack Action?

When you use the Attack action and attack with a one-handed weapon, you can use a bonus action to attack with a hand crossbow you are holding       Scenario: Crossbow Expert without Extra Attack and wielding only a hand crossbow and no shield (i.e., one free hand).  On My Turn   I declare that I attack with a hand crossbow.    I am going to attack with a one-handed weapon  I have committed to taking the Attack Action    Question Does that allow me to first make the bonus action attack the use my (committed) Attack Action to shove, grapple, or unarmed strike?


How do I install drivers for a NVIDIA 720M on Ubuntu 12.04?

Today I installed Ubuntu for the very first time. I am having trouble installing any drivers for my GT 720M card.  I've tried to follow the guides for general NVIDIA driver installation but haven't had any success. Likewise, the "additional drivers" program fails to detect anything.   I would really appreciate any instructions to be typed out in baby-steps. Traditionally, I'm a Windows user, and I'm unfamiliar with what are, probably, basic operations.


Can concentration be kept through dimensions?

Say you, in the middle of a battle, cast a spell such as Magnificent Mansion. You go inside and then start casting Conjure Elemental. You then order the elemental to exit the mansion and start fighting something you saw on the outside. Can you maintain concentration on the elemental if you are in a separate plane than the elemental?


Finding the number of functions from $A$ to $B$ under a given condition.

Problem  $A = \{1, 2, 3, 4\}$ $B = \{1, 2, 3, 4, 5\}$ Find the number of mappings from A to B such that $f(i)\le f(j)$ for all $i<j$.  My approach: The required set of functions= $\{\text{Set of total possible of functions}\}\setminus\{\text{Functions such that $f(i)>f(j)$ for $i<j$}\}$   (i) The number of possible functions would be $5 \times 5 \times 5 \times 5 = 625$.(There are $5$ mappings possible for each one of them.)  (ii)To find the number of functions such that $f(i)>f(j)$ for $i < j$, I can choose any four elements from $B$ in $C(5,4)$ ways. This will have only one decreasing order and only one arrangement is possible out of every set of elements I will choose. I will therefore have $5$ such functions.  So the required number of functions would be $625-5 = 620$ which largely differs from the answer stated by my textbook, i.e. $70$. Please help me out.


When I tried to run the command teamviewer --info I am getting the following output  root@vps [~]# /opt/teamviewer8/tv_bin/TeamViewer --info   TeamViewer                      8.0.20931    teamviewerd status              teamviewerd start/running, process 9584   TeamViewer ID: not found Try restarting the TeamViewer daemon (e.g. teamviewer --daemon restart)   but I can't find my TeamViewer ID. Is there any other in Configuration settings where I can find my TeamViewer ID?


Cannot install Python Imaging Library using pip

I'm attempting to install the Python Imaging Library on Ubuntu 15.10 by running pip install PIL. When I try and run that (or even pip uninstall PIL) I get this error:  Traceback (most recent call last):   File "/usr/bin/pip", line 9, in <module>     load_entry_point('pip==1.5.6', 'console_scripts', 'pip')()   File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 357, in load_entry_point     return get_distribution(dist).load_entry_point(group, name)   File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2394, in load_entry_point     return ep.load()   File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2108, in load     entry = __import__(self.module_name, globals(),globals(), ['__name__'])   File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 74, in <module>     from pip.vcs import git, mercurial, subversion, bazaar  # noqa   File "/usr/lib/python2.7/dist-packages/pip/vcs/mercurial.py", line 9, in <module>     from pip.download import path_to_url   File "/usr/lib/python2.7/dist-packages/pip/download.py", line 22, in <module>     import requests, six   File "/usr/local/lib/python2.7/dist-packages/requests/__init__.py", line 53, in <module>     from .packages.urllib3.contrib import pyopenssl   File "/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/contrib/pyopenssl.py", line 43, in <module>     ssl.PROTOCOL_SSLv3: OpenSSL.SSL.SSLv3_METHOD, AttributeError: 'module' object has no attribute 'PROTOCOL_SSLv3   Can anyone suggest why I can't install or uninstall pip?


CommentAppend() {     # Comment line and append line below commented line      local comment="$1"      # search this line and comment it      local append="$2"       # Append this line below commented line      local InputFile="$3"          sed -i "s/${comment}/#${comment}/g ; s/#${comment}/& \n${append}/" $InputFile }   This function working fine for non escape character but when escape character available then it fail..   So We can build function, for escap character ?


Eigenstate of position operator after collapse of the wave-function

I am studying basic quantum mechanics in undergrad and have hit a wall. I understand that if a measurement is made for position, the wave function collapses into one of the eigenstates of position, i.e. a Dirac delta distribution, at the point where particle is found. If the particle is found at $x_0$, the wave function collapses into $\psi=\delta(x-x_0)$ The problem is that the delta function does not satisfy the basic requirements of a wave function, it is not finite at $x=x_0$. The problem also exists for other observables like momentum, where the eigenstate is not square integrable.


I would like to ask if there are any aspects of algebraic number theory related to physics (for example in string theory or Moonshine etc).  I am thinking of attending a course on algebraic number theory but in order to decide I would like to know how useful it might end up being for me.


Why is Euler's number used as a base for logarithms?

Is there some special property of '$e$' which makes it suitable to be used as a base for logarithms?  Moreover, does the natural logarithm possess some advantage over the common logarithm? I don't understand why there is a need to choose an irrational number, '$e$', for a base. Isn't it much simpler to use 10 as a base?


I have an issue with my terminal prompt line. When the line is too long it wraps on the same line and then Up arrow makes it look even worse.   I have already checked , but it looks like I am apparently closing all the squared brackets for non printable characters.  This is my PS1:   \[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot) }\[\033[01;36m\]\u@\h\[\033[00m\]\033[01;34m\]\w\033[00m\][$(type __git_ps1 >/dev/null 2>&1 && __git_ps1 "(%s)")]   Consider this as my standard prompt line   MELISC@work~/dev/bin_tools[((main))]   I was able to get  assdasdasdasdasdadasdsadadasdaddasdadadasdadsadasdsa((main))] asdsadsadsadsadasdasdassdasdasdassdasdassdasdasdasdasdasdasdsadsad   I have already checked my .bashrc  I have and shopt -s checkwinsize should autocheck the columns


Why won't Java 8 update 31 x64 work with Chrome 42.0.2288.6 dev x64 on OS X 10.9.5?

I've updated to Java 8 update 31 x64 on my OS X Mavericks (10.9.5) and now it will no longer work in my Chrome version 42.0.2288.6 dev. Why is this? It worked prior to updating.  I've tried the  and Chrome then claims that Java is not installed.  Java works in Firefox FWIW.


I'm very new to Java, I had decent experience with C++ and Python. Now, coming from C++, I miss pass by reference a bit. I wrote code for the approach I want to take: package bs;  public class Main{      private int a = 1;     private int b = 11;      public void inc(int i){         if (i < 6){             inc_all(this.a);         }         else{             inc_all(this.b);         }     }      private void inc_all(int prop){         prop++;     }      public void display(){         System.out.println(a + " " + b);     }      public static void main(String[] args){         Main car = new Main();         int i = 1;         while( i < 11){             car.inc(i);              car.display();             i++;          }     } }  Now, I can write two different functions for incrementing a, b, but I want to write only function and pass the the attribute(a or b) depending on the scenario. In this case, the attributes are clearly not getting incremented (thanks to pass by value). How do I solve this problem without making a and b arrays (I know arrays are always pass by reference)?


Prove that $\prod\limits_{2 < p \leq y}\left(1-\frac{2}{p}\right)\sim\frac{D}{\log ^2 y}$

I'm writing my bachelor thesis about Brun's sieve method and his theorem.  In one proof I found this statement without further explanation. It is important to show that the product doesn't converge "too quickly" to zero, to show the rest of the theorem.  The full statement is that, for $y \rightarrow \infty$, it holds that $$\prod_{2 < p \leq y}\left(1-\frac{2}{p}\right)\sim\frac{D}{\log ^2 y}.$$ Needless to say that $p$ is meant to be prime here. The $D$ is not mentioned at any other point, so i assume it's some kind of constant.  I tried to find an Euler Product claiming the same, without success. I even digged out some of my complex analysis scripts about the convergence of products, but thats not even what I need to show here.  I would be very happy about every hint or approach anyone can give me here.  EDIT: One Euler Product says that $$\prod_p (1-p^{-s}) = \sum_{n=1}^{\infty} \frac{\mu(n)}{n^s} = \zeta (s)^{-1}.$$ Does that help in any way? For me it only tells me the convergence to zero.


Is there always an injective map from a space in its dual space?

Today our teacher said that dual spaces are "big" and told us that this is a consequence by Hahn-Banach's theorem. So I was wondering whether the dual space of a space is always "bigger" or equal compared with the space itself? I thought a good way to check the adjective "big" by mathematical methods is to ask whether there is an injective map in the dual space.   I am very interested in any comment on this.


I have Ubuntu 14.04, I want to do a fresh install of 12.04 so I can play dota 2 with the steam client for linux. I have a startup usb ready with 12.04 but when I restart or turn off it goes directly to 14.04 skipping the instalation.  Entering Bios, under boot and I see that usb boot is enabled, but on the list of boot options usb is not there, my device is not listed. Same with f12.  All I need is to be able to boot from that usb, so I can do a fresh install.  I'm using lenovo g780. And im using this ISO   Thanks in advance.


Using a defined table and column name inside sql query in php

I was wondering if it's possible to define tables and columns names and use them in different sql queries in a php script.  I tried some combinations like:  define("USERS_TABLE", "users"); define("COLUMN_NAME", "username");  function getUserName() {     $dbh = new DBHandler();         if ($dbh->getInstance() === null) {         die("No database connection");     }     try {         $sql = "SELECT".COLUMN_NAME."FROM".USERS_TABLE"where id=1";         $stmt = $dbh->getInstance()->prepare($sql);         $stmt->execute();         return $number_of_rows = $stmt->fetchColumn();     }     }   I also tried:  try {     $sql = "SELECT :column FROM :table where id=1";     $stmt = $dbh->getInstance()->prepare($sql);     $stmt->bindParam(':column', COLUMN_NAME, PDO::PARAM_STR);     $stmt->bindParam(':table', USERS_TABLE, PDO::PARAM_STR);     $stmt->execute();     return $number_of_rows = $stmt->fetchColumn(); }   And:  define("USERS_TABLE", "users"); define("COLUMN_NAME", "username");  $tablename= USERS_TABLE; $columnname = COLUMN_NAME;  function getUserName() use ($tablename,$columnname) {     try {         $sql = "SELECT :column FROM :table where id=1";         $stmt = $dbh->getInstance()->prepare($sql);         $stmt->bindParam(':column', $columnname, PDO::PARAM_STR);         $stmt->bindParam(':table', $tablename, PDO::PARAM_STR);         $stmt->execute();         return $number_of_rows = $stmt->fetchColumn();     }  }    but without any success. Maybe it's not possible to do such kind of things? Thanks


The menu-bar of any application should allways be displayed

How can I allways show the menu-bar (File, Edit...) of every application? not only when I move the pointer to the top, that is cumbersome.  edit: But now I (also) have to move the pointer to the top of the window to show the menu-bar. I want that the menu-bar is allways shown, not when I move the pointer.  Thanks.


Is a Brazilian RNE accepted by airlines or is a visa required?

I am married to a Brazilian citizen and I was recently given an RNE (Registro Nacional de Estrangeiro or National Alien Registration card). Last year, I visited Brazil with a tourist visa and this time I have the RNE.   Will my RNE be accepted to board a flight to Brazil, or will I be asked for a visa.  I checked with local my Brazilian Consulate and they informed me that a visa is not required. Still, I want to confirm the with someone who has already travelled with just the RNE.


Assuming convergence of the following series, find the value of $\sqrt{6+\sqrt{6+\sqrt{6+...}}}$  I was advised to proceed with this problem through substitution but that does not seem to help unless I am substituting the wrong parts. If i substitute the $6$, well then i am just stuck with above.   Any ideas on how to proceed. Also, what is the purpose of stating that it is convergent.


NullPointerException on Activity's onCreate method. Have to add a view dynamically before setContentView()

The below code results in a NullPointerException. The error is shown at the line linearLayout.addView(listView).  What's wrong?  public class SettingsActivity extends AppCompatActivity{ protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     ListView listView = new ListView(this);     listView.setAdapter(new ArrayAdapter<String>(this,R.layout.settings_list_items_layout,R.id.settings_text_view_id,settingsItem));      LinearLayout linearLayout = findViewById(R.id.settings_linear_layout);     linearLayout.addView(listView);      setContentView(linearLayout);     } }   The error code shown is below  05-10 11:58:37.920 5131-5131/com.example.malai_pt1882.economictimesdemo E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.malai_pt1882.economictimesdemo, PID: 5131 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.malai_pt1882.economictimesdemo/com.example.malai_pt1882.economictimesdemo.SettingsActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.LinearLayout.addView(android.view.View)' on a null object reference     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2778)     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)     at android.app.ActivityThread.-wrap11(Unknown Source:0)     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)     at android.os.Handler.dispatchMessage(Handler.java:106)     at android.os.Looper.loop(Looper.java:164)     at android.app.ActivityThread.main(ActivityThread.java:6494)     at java.lang.reflect.Method.invoke(Native Method)     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)  Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.LinearLayout.addView(android.view.View)' on a null object reference     at com.example.malai_pt1882.economictimesdemo.SettingsActivity.onCreate(SettingsActivity.java:34)     at android.app.Activity.performCreate(Activity.java:7009)     at android.app.Activity.performCreate(Activity.java:7000)     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731)     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)      at android.app.ActivityThread.-wrap11(Unknown Source:0)      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)      at android.os.Handler.dispatchMessage(Handler.java:106)      at android.os.Looper.loop(Looper.java:164)      at android.app.ActivityThread.main(ActivityThread.java:6494)      at java.lang.reflect.Method.invoke(Native Method)      at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)   It shows the error in addView() method.


Non-existence of a Surjective Function from a Set to Its Subsets (Cantor's theorem)

Show that: Let A be a set and let $P(A)$ be the set of all subsets of $A$. Then there is no surjection $f: A→P(A)$.  Here is what I thought:  if $A=\{a,b\}$ then it has only two elements where $P(A)=\{∅,\{a\},\{b\},\{a,b\}\}$ has 4 elements. Therefore $f:A→P(A)$ cannot be surjective. But I have some problems:  1) How is it possible that any $f$ function to take $\{a\}$ from set $A$ to $\{a,b\}$? Maybe because I am thinking mainly about functions with real values like $f(x)=2x$, I find it a little bit strange that a function to take an element of a set to another set which has more elements. Is it possible?  edit: Now I thought that if $f(x)$ is $\sqrt{x}$, then $f(4)=±2$ which means it took an element from a set to a set which has 2 elements. But still I find it kind of strange to denote $f(\{a\})=\{a,b,c,...\}$  2) How can I construct a explicit proof for this question?  Regards


I'm making integration with another system. We have provided for incoming and outgoing synchronous calls. However, the client requested that the messages exchanged between the systems are encrypted. Is it possible to implement such policies? how? I found references to Shield Platform Encryption but it seems to be about the stored data and not the exchange. Is it possible to expose a single WS to receive only part of the encrypted data and not in all the calls?


Is $x^n - y^m$ irreducible ($n, m$ strictly positive integers with $n \ne m$)?

For $n$ and $m$ strictly positive integers with $n \ne m$, I guess that $x^m - y^n$ is  irreducible in any field, but I am not sure. In particular, I have no idea how this could be proved. My question is thus:  Is $x^m - y^m$ irreducible ? In any field, or only in fields with some restriction? If yes, how to prove it ? If no, is there a concrete counterexample?


Safari web browser do not find strings on a page in the common way

How to switch Safari to a normal web page searching instead of finding only whole words?  Ex: there ase some words on a page: hello_world, ask_different. When I search for hello, world, ask, different - i search perfectly. But when I'm trying to search ello, ifferent, etc. - it gives me nothing.


Avoid waiting for other process to complete in ajax

In my application, I've a left menu with some links :
 User(100) Messages(1000) Contact Us
   On click of each links, I'm calling an ajax which will call a file and queries table and display content accordingly.  function menuclick(type) { $.ajax({     url: 'test.php',     type: 'POST',     data: {         type: type     },     dataType: 'html',     success: function(data) {         $("#contentdiv").html(data);     } }); }   Now the issue is, if the user/message count in database is a greater number, then its taking some time to load the content/processing test.php file. If I click some other links in this time, it will not display suddenly. On click of each links, how can I show the content immediately without waiting for other links ajax processing to complete.  Can anyone help me to find a solution?


When to correct for multiple kruskal tests?

I am running multiple (37) Kruskal wallis tests to check if there is a difference between three disease groups. I do this using groupby in R to group all the 37 groups. Then for each group I check the p-value of the Kruskal wallis and then decide to do a post hoc. Do I need to correct for these 37 tests (representing 37 groups) or do I just carry out the correction in my post hoc tests - ie a BH adjustment in the Dunns test?


Dark spot appearing on the Screen , MacBook Pro 13

When screen brightness is low I get this dark spot in my screen. Is this something serious ?


On UNIX-like systems over the years (most relevantly to me, Linux), I've noticed that . (current dir) is never in the $PATH by default.  Why is this?  I recall reading years ago that it was a security problem, but the article I read didn't explain what exactly the problem was.  Is it because someone could leave a malicious version of ls or cp in a directory, and I'd end up running it without realizing it was there?


Number theory (fermat's euler's theorem)

Let $m >1$ and $S=\{r_1, r_2, \ldots, r_{φ(m)}\}$ as in the proof of Euler’s theorem.  Prove that the product $r_1·r_2·\ldots \cdot r_{φ(m)}≡−1 \pmod m$.(Use ideas similar to the proof of Wilson’s Theorem.  This conclusion could help with the last line of the proof of Euler’s theorem.)   Can anyone help me with this even with the hint? I'm kind of stumped.


How to remove active_desktop_launcher.exe by KuGou

Hi I am running Windows Server 2012 R2. And I am facing a strange problem.  There active_desktop_launcher.exe service is randomly get executed and takes up 100% of CPU utilization slowing the whole server down. It automatically get executed even ending task from task manager  Detail: active_desktop_launcher.exe  Product Name: KuGou Company Name: 酷狗音乐 https://threatinfo.net/files/active_desktop_launcher.exe-cd8dc9341aa5b888c3bd040e499c3cf2     I have installed MSE on server, but scan shows no result. I am unable to install any other anti-malware software on the server.  Please advice how to remove this. Thanks


Is there a way to label an equation with letters instead of numbers?  For instance,    \begin{equation} \label{Problem} \phi'(t)=f(t, \phi(t)). \end{equation}


Encourage explanatory comments for downvoting new users

I've had a few friends, predominantly female, downvoted heavily when first using Stack Overflow, and they haven't come back.  To be fair, they were asking bad questions, or asking questions badly; the downvotes aren't wrong.  But the lack of reason for the downvotes is off-putting to people just getting started in computer science.  It's not training people to ask better questions; it's training them to look elsewhere, and not growing the service in the way it could.  Suggestion  When downvoting a user with fewer than 25 rep, pop up a message to the downvoter similar to:       You're downvoting a new user; can you add a friendly comment   explaining why, so they can avoid bad questions in the future?   This is explicitly not a duplicate of ; I'm suggesting special messages when the user who made the initial post is new to the site, not just a generalized canned message when downvoting.    The canned message is already there; when the poster is new at this, give slightly different advice in the canned message.


How was Zefram Cochrane going to make money off of his warp drive?

In , warp drive inventor Zefram Cochrane explains to Riker,     You wanna know what my vision is? Dollar signs — money! I didn't build this ship to usher in a new era for humanity. You think I wanna see the stars? I don't even like to fly! I take trains!   How exactly was he planning to make money off of his warp drive invention?  Was he planning to provide a service?  If so, what was this service supposed to be and who would benefit?  (If the service were travel, then who would be travelling and to where?  If the service were cargo, then what and from where to where?) If he was planning to sell off the invention to a buyer, who in the shattered post-World-War-III economy would have bought it and why? A surviving corporation?  A military faction?  If the end goal were money, it seems unlikely that someone would attempt a project of such magnitude and complexity without having a definite idea about how to translate the outcome into profit.  (I am especially looking for canon / extended universe information.)


I have been struggling trying to find a way to properly and reliably maintain a balance for accounts in an order/payment system.  Currently, the process consists of three tables. Below example is very simplified but gets the point across.  Table one contains the account ID, name, total paid, total orders, balance etc.  Table two contains payments, date, the account ID (FK) and amount.  Table three contains orders, date, the account ID (FK) and amount.  Calculating the balance is of course as easy as  SELECT SUM(payments.AMOUNT) FROM payments WHERE ID = [account] SELECT SUM(orders.AMOUNT) FROM orders WHERE ID = [account]   Followed by some simple addition/subtraction math:  UPDATE accounts SET BALANCE = [balance] WHERE ID = [account]   All good - the problem is - how do I maintain this over let's assume years of activity and many, many transactions?  Currently the accounts table is updated every single time a transaction is made, meaning the above three statements run every time. There is of course an index on the ID column in all three tables, and everything is fast and neat for now, but I work with less than 100,000 transactions, meaning everything fits into the RAM and basically all I throw at the database gets executed immediately. Over time this will change, of course - so how do I handle this?  Is it better to mark the accounts as "dirty" and process balancing in a batch job later, or can I keep updating the balance real-time even when I reach the point where the orders and payments tables will not fit into the RAM?  Do I need to segment the orders and payments and "lock" everything before a given time, such as before last calculation? (I would rather not). I ask because then I could do a SUM WHERE DATE > [last lock timestamp] and update with UPDATE BALANCE = [balance] + [value for last lock] and prevent the problem from outgrowing resources.  I don't need a running balance for each transaction. That's all I can find results for when I try to research this problem. I just care about the total amount paid, the total amount ordered and the balance of accounts.  Why don't I calculate on the fly when I need the balance, you ask? Because one must be able to query the system and ask "Which of my (let's say) 50.000 accounts have a balance below 0?" - something we cannot do easily if we do not store the balance with every account.


After the last 03/30/2018 update, can't boot ubuntu - get_random_bytes called from start_kernel with crng_init=0

I've tried to repair boot, when I try to repair, in the Recovery menu enter Enable networking, the following error occurs:  /etc/resolv.conf : No such file   I'm using dual boot and with the windows everything is ok.  I've also tried to change the grub options and added acpi=off without success.  I'm not sure what this is due for and how to fix these issues.  Now when I boot, I get only the screen with these errors:  Hardware Error: CPU 0. Machine Check : 0 Bank 5 Hardware Error: PROCESSOR 0:40651 TIME 1522499587 SOCKET 0 APIC 0 microcode 23 /dev/sda7: clean, 1771662/15261696 files, 27942468/61035264 blocks   Edited: I now got this error when trying to reboot with kubuntu:  [Firmware Bug]: TSC_DEADLINE disabled due to Errata   How should I fix that? Yesterday everything worked just fine.


Django: Pass a variable/parameter to form from view?

I'm trying to do passing a variable to form from view on Django. Simply, what I want to do is something like this below. # views.py  def tmp(request):     if request.method == 'POST':         f = tmpForm(request.POST)         if f.is_valid():         // something more here.      else:         // this will pass nothing to the form         f = tmpForm()          // want to pass variable/parameter to the form         initial = '''{                 "hoge": "hogehoge"         }'''         f = tmpForm(initial) // should be something like this maybe?      return render(request, 'tmpapp/tmp.html', {'form': f})  # forms.py  class tmpForm(forms.Form):      // retrieve the variable/parameter and set `initial` or something like that      json = forms.CharField(widget=forms.Textarea, label='', help_text='JSON formatted data here.', initial=           textwrap.dedent(                # '''{                #      "hoge": "hogehoge"                # }'''                initial // so you can use the variable like this.           )      )  So, How can I implement this?


I'm studying convergent sequences at the moment.  And I came across this question in the section of Stolz Theorem.  I realised that $\{x_n\}$ is monotonously decreasing and has a lower bound of $0$, so $\{x_n\}$ must be convergent, and the limit is $0$ (let $L=\sin(L)$, then $L=0$).  So to prove the original statement, I just need to prove lim n(Xn)^2 → 3, and in order to prove that, I just need to prove $\lim \frac{1}{x_n^2} - \frac{1}{{x_{n-1}}^2} \to \frac{1}{3}$ by Stolz Theorem  but I have no clue what to do from there.  PS: $x_{n+1}$ is $x$ sub $n+1$, and $x_n$ is outside the square root.  Thanks guys


if the integrals of a non-negative sequence of functions go to zero, does this imply functions go to zero a.e.?

This question arised when I was dealing with an old qual problem, and if this is true, I'll be done, but I'm not sure if it's true or not:     Let $\{f_n\}_{n=1}^{\infty}$ be a sequence of non-negative Lebesgue integrable functions and suppose $$\int_{-1}^{1} f_n(x)\mathsf dx\stackrel{n\to\infty}\longrightarrow 0.$$ Then, can we conclude that $f_n(x)\stackrel{n\to\infty}\longrightarrow0$ for almost every $x\in [-1,1]$?   I'm motivated by the fact that when the integral of a non-negative function is zero, then it's 0 almost everywhere. I tried the negotiate the definition of almost everywhere convergence, but somehow couldn't get any contradiction yet, and really got stuck here. I would appreciate any kind of help.


word for a person who has shared similar experiences?

I am writing a paper on teaching life writing texts, and I have a section that discusses the benefits to a reader who has gone through the same traumatic experiences as the author of the text. My heading for this section is currently:     Benefits for the Sympathetic Reader   However, "sympathetic" isn't quite the right word, considering the fact that the reader does not necessarily have to have shared these experiences in order to sympathize with the writer. Ideas?


How to legally download Windows 7 ISO for MSDN license?

I have gone through similar topics and I think my case is not a duplicate.  Some 3 years ago, I had purchased a key for Windows 7 Professional from MSDN subscription. It worked fine and I've been getting Windows updates as necessary.  Now my system has become so slow that I'm thinking of re-installing Windows. I have the key with which I had activated Windows at that time. But I've been having a hard time trying to get an ISO.  I came across  but as expected, my product key was found to be invalid there.  Does that mean I can never re-install my Windows and continue with my same product key ever? Is there is no provision for OEM/MSDN licenses?


Prove that any group of order 15 is cyclic.

Prove that any group of order $15$ is cyclic.  I know that if order of group is a prime then the group is cyclic, but how to approach such questions?


Is feature selection with dummy coding of categorical variables problematic?

In the context of feature selection it is common to recode categorical variables with more than 2 categories into dummies. Selection methods such as elastic nets or lasso regression select the best predictors, whereby it is possible that only some dummies of each categorical variable are selected. I am wondering, if there can appear some problems due to this procedure. I found some comments about the topic on  and a , stating that the procedure should be used carefully, but that there are no general problems. However, I was not able to find any detailed literature or any educated guidelines, which could be followed.  Question: Can there appear any problems, if not all dummies of a categorical variable are selected for a model?  For example, I could imagine that the automatic selection relies on the order of the categories and the resulting reference category. Let's say there is a variable with categories A, B, and C. A dummy recoding into dummyB and dummyC would probably result in different variable selections compared to a dummy recoding into dummyA and dummyB.  Any advice or literature is highly appreciated!  UPDATE:  Based on Ben's comment I found some literature about a comparison of the lasso and the group lasso, which addresses my question:      However, based on this literature 2 further questions appeared:  1) It seems like the normal lasso is still used regularly, whereby the group lasso doesn't appear that often in current literature. Is there a specific reason for that?  2) When I have categorical variables with many categories, isn't it a problem, if I select the whole categorical variable? Or in other words, is it sometimes advantageous to use the lasso instead of the group lasso?


i can't quite word it in the tutorial, but this is what I'm talking about Public IP: 10.0.0.1 Private IPs 192.168.0.1, 192.168.0.2 and 192.168.0.3 connect to argos.com google.com and ebay.com through the same port, the router recieves these packets and converts their addresses to the routers public address, The server processes this information and sends packets back to 10.0.0.1, But now we have three different destinations with then address and port of 10.0.0.1:80, How does the NAT work from there? Would the same packet be sent to all three computers?


First order differential equations with 2 varriables

Does anybody know how to solve the following differntial equation?  $$w^2\cdot r+\frac{dw}{dt}\cdot r+\frac{dr}{dt}\cdot w=3g$$  where w and r are a function of time so $w(t)$ and $r(t)$. $g$ is a constant  EDIT: This equation came from a thought problem of mine which I will now explain since I still do not know how to approach the problem.  Basically I want to design a spiral track in which a vehicle will accelerate. However the total acceleration needs to be constant.   The vehicle will have 2 acceleration components, a radial component ($a_r$) and a change in speed component ($a_s$). Since we want constant acceleration: $a_r + a_s = constant$  From circular motion we know that $a_r = \omega ^2 r$ where $r$ is the radius, and $\omega$    Further we know that $v=\omega*r$, therefore: $a_s=\frac{d}{dt}(\omega r)$  For constant acceleration $a_{total} = a_r + a_s = \omega ^2 r + \frac{d}{dt}(\omega r) =constant$  Further usefull information: Length of the track covered at a certain time $l=v*t=\omega r t$  With all this the radius will be a function of time, $r(t)$ and the angular velocity will be a function of time, $\omega (t)$  Boundary conditions: $r(0)  = 0$ $\omega (0) = 0$  Now I would like to find a possible set of solutions to create a track by implementing end boundary conditions that i choose e.g. $v(t_{end})=100 [m/s]$ and $l(t_{end})=5000 [m]$  Here is a diagram for clarity:


Not much else to this question: I would like to know what I need to create a PulseAudio systemd service to be run with systemd --user.  I've tried a few different things, including various user services from Google, but I can't get it set up just right between dbus and everything else required for it.  Update: It seems to work ok with graphical sessions, but I'm still having some inconsistancy with dbus when logging in through console.  But PulseAudio is starting rather reliably, so I'm not overly concerned.


In a similar way to Google's , I want to search on my PC. I have a similar photo with me, but not the exact one. How to do this?


I don't know what happened. Clearly some file got corrupted in my /home folder.  As such when I type my password, the system tries to log me in (purple screen) then dumps me back to the log in screen.  I can log in on command line (alt+F2) and I can log in as a different user normally.   Only entry in jouranlctl -f I can find relevant to this is a failure to write ICEAuthority file (I've tried to chmod it to me again, but it still says cannot write).  Any ideas?  Thank you.


What is one class SVM and how does it work?

I was using , implemented in scikit-learn, for my research work. But I have no good understanding of this.   Can anyone please give a simple, good explanation of one class SVM?


How much electricity a human can conduct?

I have watched video on   when a man exhibits  conductivity through his body. But how much current can a human conducts safely?   Is there any trick?   I have heard from a man who said that " I'd like to see him connect one wire to his left foot and the other to his right arm. It'll make current pass through his heart. Just a thousandth of an amp passing through any human being's heart can kill them."  How true is that?


Unity Giving following error : NullReferenceException: Object reference not set to an instance of an object

im going to probably look really stupid and i will be no means admit this is my code however i cant seems to get it to work so i was wondering you you might be able to?  I'm getting the following error when trying to break a block with the left click button in unity: "NullReferenceException: Object reference not set to an instance of an object Player.Update () (at Assets/Scripts/Player.cs:67)"  the code that is causing the error is below:  if (Input.GetMouseButtonDown(0))         {             Vector3 mousePos = Camera.main.ScreenToWorldPoint(Input.mousePosition);             RaycastHit2D hit = Physics2D.Raycast(mousePos, Vector2.zero);             if (hit.collider.gameObject != null)             {                 Destroy(hit.collider.gameObject);             }             else             {                 Debug.Log("hit nothing");             }         }   i've searched around for other ways to do this and after many itterations i cant seem to get it working still so i have come to the forms.  Sorry line 67 is: Camera.main.ScreenToWorldPoint(Input.mousePosition);  i know it looks simular to other questions however i have looked at the link that was attached to this being a duplicate and i cant see anything in there that will help me so i am still stuck with the same issue.


What are the responsibilities of each Pseudo-Terminal (PTY) component (software, master side, slave side)?

I am trying to figure out how a tty works1 (the work-flow and responsibilities of each elements). I have read several interesting articles about it, but there are still some blurry areas.  This is what I understand so far:   The emulated terminal makes different system calls to /dev/ptmx, the master part of the pseudo-terminal. The master part of the pseudo terminal allocates a file in /dev/pts/[0-N], corresponding to the obsolete serial port, and "attaches" a slave pseudo terminal to it. The slave pseudo terminal keeps information such as session Id, foreground job, screen size.   Here are my questions:   Has ptmx any purpose besides allocating the slave part? Does it provide some kind of "intelligence", or the emulated terminal (xterm for instance) has all the intelligence of behaving like a terminal? Why does xterm has to interact with the master part, as it only forwards the stdout and stdin of the slave part? Why can't it directly write and read from the pts file? Is a session ID always attached to one pts file and vice versa? Could I type a ps command and found 2 sessionId for the same /dev/pts/X? What other information does the pts store? Does Xterm update all fields by himself, or does the ptm add some "intelligence" on it?     1. I base my understanding on the , and the  posts, as on several other


Where can questions about our community-run moderation tools be asked?

The question  was recently closed due to not being "about the software that powers the Stack Exchange network, within the scope defined in the help center." MEE is Johann Gambolputty made a comment that     SmokeDetector is a community run project to help to fight spam. Therefore your question is unfortunately off-topic for this site. You can find help in  chatroom.   If questions about community run moderation bots (e.g. SmokeDetector, FireAlarm, Natty, Queen, etc.) are off-topic here on Meta Stack Exchange, is there anywhere on the Stack Exchange network where one can post a Question and Answer-style question on them, or are they only on-topic in appropriate chat rooms?


IND-CPA security of mode of operation using triple AES with plaintext || IV+counter

I have found this figure of a mode of operation using a triple AES with m||IV+ctr input:   I suppose it's a custom mode of operation since I haven't seen it anywhere else. My question is if it is IND-CPA, and how to prove it in an adversarial model?


Taking derivatives with respect to a matrix

I am reading Elements of Statistical Learning, and they derive the equation for linear regression using differentiation on a function which takes a matrix as input. This is making my head spin a bit and I am looking for some resources to practice this type of differentiation, and become more comfortable with it.  This is the problem. Let $X \in \mathbb{R}^{N \times p}$, $b \in \mathbb{R}^{p \times k}$, and $y \in \mathbb{R}^{N \times k}$.  Define $RSS(X, y) = \operatorname{tr}[(Xb - y)^t(Xb -  y)]$.  I want to differentiate $RSS$ with respect to $b$ and set the derivative to zero since I want to minimize the function, $RSS$.  The book claims this is $X^t(Xb - y) = 0$, which gets us, $b = (X^tX)^{-1}Xy$ if $(X^tX)$ is singular. It does not show how it applied the derivatives (which is expected since thats not what this book is about).  I can sort of reason that we have some sort of product rule happening. It seems likely that $d/db(\operatorname{tr}(A)) = \operatorname{tr}(d/db(A))$. But right now I am just writing down symbols that somehow represent some ideas in my head.  In my Principles of Mathematical Analysis book (by Rudin) he covers when the input is a vector, and the output can be a vector. However, this seems to be input is a matrix, and the output in some of the subproblems is a matrix.  Any recommendations for books I can look at?


Changing central meridian in QGIS causes problems?

I want to change the central meridian of my world map (WGS84) in QGIS from 0 to -80. The problem is that this distorts the map every time I try it.     This is what I do:   go to Settings/Custom CRS and then click on Add new CRS copy existing CRS (choosing WGS84 / World Mercator) Edit its parameters (changing only the central meridian) to: +proj=merc +lon_0=-80 +k=1 +x_0=0 +y_0=0 +datum=WGS84   +units=m +no_defs go to Project Properties/CRS and choose my custom CRS   And then the whole map is distorted. It works fine when I do it in ArcGIS.


I've come across this term POD-type a few times. What does it mean?


A movie about artificial intelligence gone rogue

I watched a movie  few years ago about a man who was dying. He was attempting to upload his consciousnesses to a computer. And when his wife succeeded, some guys came to destroy him, but she managed to save him. He asked her to connect him to the internet, and he spread to every computer, and used them like RAM. At the end I remember some people were trying to kill him but ended up destroying every computer on the planet with a virus.


Problem with limit 2 variables $\lim_{(x,y) \to (0,0)} \frac{x^2 y^2}{x^2 + y^2}$

I tried to solve the limit:  $\lim \frac{x^2 y^2}{x^2 + y^2}$ with $(x,y) \to (0,0)$  I tried it with the paths $x=0, y=0, y=x, y=x^2$ and everything went to $0$.  Now I'm suspicious that this limit really goes to $0$, but how I prove it?  Thank you and sorry my english.


Why do metals only glow red, yellow and white and not through the full range of the spectrum?

Why don't metals glow from red to yellow to green to blue etc.? Why only red, then yellow and then white? Shouldn't all wavelengths be emitted one by one as the temperature of the metal increases?   If some metals do glow at with different colours, could you give me examples of such metals and the reason why this happens in specific cases?


Stressing innovative studies has or have had?

I am unsure whether the sentence would make grammatical sense as has or have had. Is this sentence fragment considered singular or plural? Is stressing a gerund that makes it singular? Because innovative studies is plural, so I assumed that this sentence was plural and I needed the use of have had.


Where to set up in Blender if I want the rendered picture to be 300 PPI when view in PS?

If I want the picture I render to be 300 ppi when I open it in photoshop. How to set up in Blender?  Thank you very much for help.


Centos, uploaded files from application have different owner and group

I have an application that uploads a file via SFTP using sftpuser. Once the file is uploaded the owner and group is user1:user1. The owner of the parent directory is apache:apache. I can not figure out how the file is being associated to user1.  Any thoughts on where I should look or how to resolve this issue? I would like the file to inherit the owner/group and permissions from the parent directory.


Will 0.99999999 eventually become equal to 1?

I am currently learning about fractions, and there is something that I am finding it hard to make sense of. When a fraction it added to the right of the decimal point, the number becomes slightly bigger right? So for example if I add enough fractions to the 0.99999999, will this number eventually become equal to 1?  So will this number eventually become equal to 1 (if I added enough 9): 0.9999999999999999999999999999999999999999999999999999999999999999999999...9


Evaluate a limit (probably involving L'Hôpital rule)

Evaluate the limit: $$\mathop {\lim }\limits_{x \to \infty } x\left( {{{\left( {1 + {1 \over x}} \right)}^x} - e} \right)$$  My attempts didn't yield a result. I'd be glad for a guidance. Thanks!


Coding python loop to select features of polygon layer than are completely contained in group of 11 layers using ArcPy?

This is my first attempt to code in Python.   I have one polygon layer, A, that covers the UK and another set/group of layers that each cover sections of the UK, B. I want to select by location features of A contained entirely within B. As B is split into lots of separate sections (due to its size) I need to do this in a loop.   So far I have this code which I adapted from a similar question of :  # Import system modules import sys, string, os, arcgisscripting, arcpy  # Create the Geoprocessor object gp = arcgisscripting.create()  mxd = arcpy.mapping.MapDocument("CURRENT") df = mxd.activeDataFrame groupName = "WBBS_waterways"  # Load required toolboxes... gp.AddToolbox("c:/program files (x86)/arcgis/desktop10.3/ArcToolbox/Toolboxes/Data Management Tools.tbx")  # Script arguments... A = "//FILES/UNIXHome/Git/waterbirds_project/data/OS_waterways.shp" outfolder ="//FILES/UNIXHome/Git/waterbirds_project/data/"   basename = "OS_just_rivers"  allLayers = arcpy.mapping.ListLayers(mxd, groupName, df)[0]  for layer in(allLayers):         print("A")         D=layer.name         # Process: Select Layer By Location...         gp.SelectLayerByLocation_management(A, "COMPLETELY_WITHIN", D, "", "NEW_SELECTION")         print("B")         outname = outfolder + "\\" + basename + D         print("C")         #Process: Copy Features...         gp.CopyFeatures_management(A, outname, "", "0", "0", "0")    And this is the error message I get:  Runtime error  Traceback (most recent call last):   File "<string>", line 28, in <module> ExecuteError: ERROR 000368: Invalid input data.     which I think means something is going wrong on this line: gp.SelectLayerByLocation_management(A, "COMPLETELY_WITHIN", D, "", "NEW_SELECTION"), it looks like python can't find layer D but I'm not sure how to make it recognise layer D.


How much would a typical Jedi Master earn (canon or Legends)?  Qui-gon Jinn had  on hand when he got stranded on Anakin's homeworld and that sounded like a lot, though I suppose it could've been a company credit card or the Queen's cash.   I am willing to accept an answer from any time period for which there's data, but it would probably make sense that such information would be most likely to exist when the Jedi were in full force and working for the pre-Palpatine Republic (i.e. there were a large number of Jedi living on a highly captialist world, and the Jedi's organization were likely receiving funding from a wealthy government).


I am storing sum of all pairs of an array element to pairSum[] array. For this I have created PairSum class which store two elements and their sum.   But I am getting null Pointer Exception on line pairSum[k].sum = v     I have created array as   PairSum[] pairSum = new PairSum[val];   What am I doing wrong?       public class test {             class PairSum{                 int first;                 int second;                 int sum;             }             public static void findElements(int arr[], int n){                 int val = (n*(n-1))/2;                 PairSum[] pairSum = new PairSum[val];                 int k=0;                 for(int i=0;i<n-1;i++){                     for (int j=i+1;j<n;j++){                         int v = arr[i] + arr[j];                         System.out.println("sum..." + v);                         pairSum[k].sum = v;//NullPointerException here                         System.out.println("valll.." + pairSum[k]);                         pairSum[k].first = arr[i];                         pairSum[k++].second = arr[j];                      }                 }            }            public static void main(String[] args) {                 int arr[] = {10, 20, 30, 40, 1, 2};                 int n = arr.length;                 findElements (arr, n);             }             }


Find the limit if it exists of $S_{n+1} = \frac{1}{2}(S_n +\frac{A}{S_n})$

Suppose that $S_0$ and A are positive numbers, let $$S_{n+1} = \frac{1}{2}\left(S_n +\frac{A}{S_n}\right)$$ with $n \geq 0 $.      (a)Show that $S_{n+1} \geq \sqrt{A} $ if $n \geq 0$       (b)Show that $S_{n+1} \leq S_n $ , if $n \geq 1$      (c) Show that $s= \lim\limits_{n \rightarrow \infty} S_n$ exists      (d) find s   (a) Show that $S_{n+1} \geq \sqrt{A} $ if $n \geq 0$  Given $$P_n:  S_{n+1} = \frac{1}{2}\left(S_n +\frac{A}{S_n}\right) \geq \sqrt{A}$$  $$P_0: S_{1} = \frac{1}{2}\left(S_0 +\frac{A}{S_0}\right) \geq \sqrt{A}  $$  We assume that $P_n$ is true  $$P_{n+1}: S_{n+2}= \frac{1}{2}\left(S_{n+1} +\frac{A}{S_{n+1}}\right)$$ by assumption $$S_{n+2}= \frac{1}{2}\left(S_{n+1}\left(1 +\frac{A}{(S_{n+1})^2}\right)\right) \geq \frac{1}{2}\left(\sqrt{A}\left(1 +\frac{A}{(\sqrt{A})^2}\right)\right)$$ $$ S_{n+2}= \frac{1}{2}\left(S_{n+1} +\frac{A}{S_{n+1}}\right) \geq \sqrt{A}  $$  It follows that $S_{n+1} \geq \sqrt{A} $    (b) Show that $S_{n+1} \leq S_n $ , if $n \geq 1$  $$S_{n+1} \leq S_n$$ $$\frac{1}{2}\left(S_n +\frac{A}{S_n}\right) \leq S_n $$ Dividing by $S_n$ $$\frac{1}{2}\left(1 +\frac{A}{S_n^2}\right) \leq 1 $$ $$\frac{A}{2S_n^2} \leq \frac{1}{2}$$ $$A \leq S_n^2$$ $$S_n \geq \sqrt{A}$$ As  $S_{n+1} \leq S_n$ yields a true statement, it follows $S_{n+1} \leq S_n$ is true.    (c) Show that $s= \lim\limits_{n \rightarrow \infty} S_n$ exists  Since $S_{n+1} \leq S_n$, the sequence is non-increasing,   using the non-increasing theorem stating that      if $\{S_n\}$ is non-increasing then $$\lim\limits_{n \rightarrow > \infty} S_n = \inf\{S_n\} $$     (d) find s    Is the argumentation in (a) and (b) appropriate? Also, I have to admit I m getting less confident in my argumentation (c) and (d). How to proceed in (c) and (d)?  Much appreciated for your input or help.


How would Gauss' law hold in time varying electric fields?

Let's say we have a cube of side length $a$ as a Gaussian surface in an electric field (in vacuum) and then we raise the strength of the electric field. As I understand, this rise in the field strength would travel through the field at the speed of light. This means that for a duration of $\frac{a}{c}$, the field strength, and thus the flux, would differ at the 2 opposing faces of the cube. This implies that the flux through the surface is non-zero and thus the charge inside it must also be non-zero by Gauss' Law. How is this possible?


I'm getting a "Exception in thread "main" java.lang.NullPointerException" and can't find out the reason

I'm doing a school project, and I keep getting a "Exception in thread "main" java.lang.NullPointerException" type of error and I can't figure out why. I've read the code but I can't find the answer. This is the code:  package trabajopractico_1;  import java.util.ArrayList; import java.io.*; import java.util.logging.Level; import java.util.logging.Logger; import java.util.Scanner;  public class code {      public void metodo(){         ArrayList<Integer> metodoVolatil = new ArrayList();         ArrayList<Integer> metodoNoVolatil = new ArrayList();         Scanner teclado = new Scanner(System.in);         int numeroV;         int numeroNV;         int resultadosV;         int resultadosNV;         BufferedReader br = new BufferedReader(new InputStreamReader(System.in));         PrintStream array = null;         PrintStream resultadosPS = null;         PrintStream errorPS = null;         try{              if (!new File("arraylist.txt").exists()) {                 array = new PrintStream(new File("arraylist.txt"));             }              for (int i = 0; i < 5; i++) {                 System.out.println("Ingrese 5 numeros para almacenar en el ArrayList.txt: ");                 numeroV = Integer.valueOf(br.readLine());                 metodoVolatil.add(numeroV);                 array.append(String.valueOf(numeroV));                 array.println();             }              for (int i = 0; i < 5; i++) {                 System.out.println("Ingrese 5 numeros para almacenar en el ArrayList: ");                 numeroNV = teclado.nextInt();                 metodoNoVolatil.add(numeroNV);             }              resultadosPS = new PrintStream(new File("resultados.txt"));              errorPS = new PrintStream(new File("error.txt"));              for (int i = 0; i < metodoVolatil.size(); i++) {                 resultadosV = metodoVolatil.get(i) / 3;                 System.out.println("Los resultados de la division de los valores en el ArrayList son: ");                 System.out.println(resultadosV);             }                         for (int i = 0; i < metodoNoVolatil.size(); i++) {                 resultadosNV = metodoNoVolatil.get(i) / 3;                 resultadosPS.append(String.valueOf(resultadosNV));                 resultadosPS.println();             }           }          catch(ArithmeticException e){             System.err.println("Ah ocurrido un error en la division");                     }           catch (FileNotFoundException e) {             Logger.getLogger(code.class.getName()).log(Level.SEVERE, null, e);           }          catch (IOException e) {             Logger.getLogger(code.class.getName()).log(Level.SEVERE, null, e);         }       } }   Acording to NetBeans, the error is located on line 33, which is this:     array.append(String.valueOf(numeroV));   I would be so grateful to receive any help.


Can the Contingency spell be used with a spell cast from an Ioun Stone?

says:     Choose a spell of 5th level or lower that you can cast, that has a casting time of 1 action, and that can target you. You cast that spell--called the contingent spell--as part of casting contingency, expending spell slots for both, but the contingent spell does not come into effect.   Would one be able to use a spell that is cast from a  as the contingent spell?    For example: A bard casts  into the Reserve Ioun Stone and gives it to the wizard who then uses contingency along with the stored revivify to create an effect that would revive him upon falling unconscious. The wizard cannot cast revivify normally.  Would this work?    My specific concerns are:   Does having the spell stored in such a way count as a spell "you can cast"? Does the fact that the spell is stored in an item mean that it can't be cast as part of another spell as contingency requires? Is there any other reason why this would not work?


Austrian embassy asking for old passport for visa

The documents checklist at the Austrian embassy page for Schengen visa says I need to submit all the old passports as well for the visa. I have been issued 4 passports in my lifetime. 3 of them are expired.  I have the current one and the last two passports. However I have misplaced the first passport, which was issued when I was 5 years old. Should I just write in my cover letter that that passport was misplaced or should I file a police complaint? The lost passport expired 12 years ago and was not used to travel outside the country at any time. (India)


How do I setup pointer-keys/mouse-keys in Lubuntu? (move cursor with num-pad keys)

I know there is an easy way to set up mouse emulation with the numpad in Xubuntu and Ubuntu. Is there an easy way to do so in lubuntu? is there a config file that can be edited, or does a program need to be installed?


Shell script works when saved with nano but not when saved with Notepad++

When I copy my bash script across from Notepad++ into a new file with nano editor inside SSH and save. It runs fine. (sh ./install).   But if I save the file (Exact same contents), upload to my web server, download it using Wget on the same machine. I get syntax errors. I've checked the encoding and they seem to be the same. I have since used a plethora of character encoding to see if it will resolve the issue. I am also setting the file to executable once I download it using wget!  The file runs fine and I have zero errors when copy and pasting using nano. Any idea what this may be?


Hostname incorrectly shown in Terminal and scutil HostName is not set

Today I started the Terminal and the prompt showed:  flos-ipad: mareek$   Now I'm confused because this is not the Hostname of my MacBook Pro. Furthermore my name isn't "Flo" and I don't own an iPad. The Username "mareek" is correct for the user I'm logged in to.  I tried  $ scutil --get HostName HostName: not set $ scutil --get LocalHostName Macbook-Pro-2 $ scutil --get ComputerName Macbook-Pro   I wonder why the Hostname isn't set, and where the "flos-ipad" comes from? Any ideas?  Thank you  EDIT: I actually found the solution.  /close


Can someone give an example of a good time to actually use "unsafe" and "fixed" in C# code? I've played with it before, but never actually found a good use for it.   Consider this code...  fixed (byte* pSrc = src, pDst = dst) {     //Code that copies the bytes in a loop }   compared to simply using...  Array.Copy(source, target, source.Length);   The second is the code found in the .NET Framework, the first a part of the code copied from the Microsoft website, .  The built in Array.Copy() is dramatically faster than using Unsafe code. This might just because the second is just better written and the first is just an example, but what kinds of situations would you really even need to use Unsafe/Fixed code for anything? Or is this poor web developer messing with something above his head?


When we push a box, the box applies an opposite force on my hand, but why does my hand move with the box as I push the box if the net force of it 0?

When we push a box, the box applies an opposite force on my hand, but why does my hand move with the box as I push the box if the net force of is 0?


Young diagrams and $\mathrm{SU}(n)$ representations

I'm trying to understand from a systematic point of view how $\mathrm{SU}(n)$ representations may be computed from Young diagrams following Sternberg's Group Theory and Physics. Chapter five gives means to calculate the dimension of each representation from the decomposition into irreducibles of the action of $S_r$ on $\otimes^r \mathbb{C}^n$. Nevertheless I don't see how one can actually compute the representation. If anyone has a good reference where an example is calculated I would appreciate it a lot!


Why does -7 return True in this function?

Basically this question is pertraining to a . The function shouldn't be returning True mathematically. But -7 as mentioned in the comment's return's True surprisingly. Can anyone explain why -7 specifically?  I'm using python 3.7.   def check(x):     if 1+x is x+1:         return False     if 2+x is not x+2:         return False     return True  check(-7) True


How to reduce tooltip appearance delay in Xcode?

When I hover some icon in Xcode I have to wait quite long for tooltip. How to reduce delay?


Evaluation of $ \lim_{x\to 0}\left\lfloor \frac{x^2}{\sin x\cdot \tan x}\right\rfloor$

Evaluation of $\displaystyle \lim_{x\to 0}\left\lfloor \frac{x^2}{\sin x\cdot \tan x}\right\rfloor$ where $\lfloor x \rfloor $ represent floor function of $x$.  My Try:: Here $\displaystyle f(x) = \frac{x^2}{\sin x\cdot \tan x}$ is an even function.  So we will calculate for $\displaystyle \lim_{x\to 0^{+}}\left\lfloor \frac{x^2}{\sin x\cdot \tan x}\right\rfloor$  Put $x=0+h$ where $h$ is a small positive quantity, and using series expansion  So limit convert into $\displaystyle \lim_{h\to 0}\left\lfloor \frac{h^2}{\sin h\cdot \tan h}\right\rfloor = \lim_{h\to 0}\left\lfloor \dfrac{h^2}{\left(h-\dfrac{h^3}{3!}+\dfrac{h^5}{5!}- \cdots\right)\cdot \left(h+\dfrac{h^3}{3}+\dfrac{2}{15}h^5+ \cdot\right)}\right\rfloor$  Now how can i solve after that, Help me   Thanks


So I'm still pretty new to Python and I am still confused about using a parameter vs an argument. For example, how would I write a function that accepts a string as an argument?


My mesh is stuck in lines mode, it renders with faces, but they don't show when editing

So, what I did, was I was looking through the physics tab in the mesh editor, going through all of them, I press "Rigid Body". I unchecked it (as I did all the others) and now my mesh will not go back to object mode. The faces don't show at least. I can render it and it will work perfectly, but I can't make it go out of this view and it's starting to bug me.  I can go into edit mode and it will work normally, but this is in object mode with no modifiers, materials, perticles, nothing. If there is a setting that I might need to check, please tell me.