I spilled juice on my laptop keyboard.  It has dried and many of the keys are sticky and difficult to use.  Assuming I've detached the keyboard from the laptop, is it safe to wash it with water?  My concern is that the ribbon cable connector will get damaged, rendering it unusable when I reconnect it my laptop.  Is there a better way of cleaning the keyboard?  I thought of removing the keys one by one with the keyboard still attached to the laptop but that seems tedious and some of the plastic might break.  My laptop is HP Pavillion dv6t-7000 CTO Quad Edition. The keyboard looks like this:


How to explain the first colon in Python slice syntax list[::-1]

I recently read a code snippets about how to reverse a sequence  >> l = [1,2,3,4,5,6] >> print l[::-1]   Output  >> [6,5,4,3,2,1]   How to explain the first colon in bracket?


I have a rig, and I want to change all the key frames for my right arm. When I delete one, all of them delete across the entire rig. How do I delete for one part of the rig, i.e. my right arm.


I can sort of see why Newton's third law makes sense, since if I sit on an office chair and push at my desk, I move away from it. Apparently this happens because when I push the desk, the desk pushes me back with an equal and opposite force. I've been told that Newton came up with his law through similar experiences. But why must Newton's third law be true in the sense he defined force in his second law? While I can believe that when I push something, I'm also being pushed back, but why is it that the product of mass and acceleration must be the same for both of us (except for the sign)? I've asked this before and I've been shown that it works because of conservation of momentum in collisions. But this seems circular, as usually I have seen conservation of momentum in collisions derived using Newton's third law.  EDIT: I'm aware that there are other ways to produce conservation of momentum as a whole, such as Noethers theorem, but I'm more interested in knowing how the third law was thought of in Newton's time.


External hard drive formating and partitioning

I have external drive of 1 TB.The drive is formated as FAT32 for the data I need(around 400 GB).Now I want to create a new partition(without loosing my fat32 data) but I want it NTFS so it can hold files larger than 4GB.When I go to diskmanagement the shrink expand or anything else options are greyed out..any ideas?!


Acceleration of an object dropped inside an accelerating elevator

A stone is released from an elevator going up with acceleration of $g/2$. What is the acceleration of the stone just after the release?  The answer is $g$. Shouldn't the stone carry the acceleration of the elevator and be $-g/2$?


I want to render math formulas in my Java GUI application. I am looking for a library made for computer use, not web use, which can render TeX. I have already tried jLatexMath, but it's very slow when I use it in my application. If there are any other/better, could you point me in the right direction?


Sequence with decreasing distances between elements: how to prove its Cauchy?

I am new to sequences and encountered a task where I am to show that a sequence $(a_n)$ that fulfills the following criteria is a Cauchy sequence. $\forall n \geq 2 : |a_{n+1} - a_n| \leq L \cdot |a_n - a_{n-1}|$ with $0 \leq L < 1$. This means that the following is true as well: $|a_{n+1} - a_n| \leq L^n \cdot |a_1 - a_0|$ $\frac{|a_{n+1} - a_n|}{|a_1 - a_0|} \leq L^n$ Since $L^n$ converges to $0$ and we have the quotient of two absolutes, I can use the Squeeze theorem to conclude that the sequence $(a_n)$ converges to $0$ as well. Every convering sequence is a Cauchy sequence which concludes my proof. However, I am really unsure because I also found sequences that look like they would fulfill the description but are not converging like this one:  Where did I go wrong and how can I show that it is a Cauchy sequence? I was made aware of a post dealing with the same problem and using Cantor's lemma:  However, I am not allowed to use Cantor's lemma for this task, so any help would be appreciated.


Extract tag values form an XML document C#

I have an XML file from which i have to extract only the attribute values in the tag. The XML kind of looks in this structure  <customer>      <customerMiddleInitial>W</customerMiddleInitial>  <name>       <FirstName>XXXXXXXX</FirstName>       <LastName> YYYYYYYY</LastName> </name>     <customerBirth>1983-01-01</customerBirth>      <customerWorkPhone>020 1234567</customerWorkPhone>      <customerMobilePhone>0799 1234567</customerMobilePhone>      <previousCust>0</previousCust>      <timeOnFile>10</timeOnFile>      <customerId>CUST123</customerId> </customer>   So, I want to extract all the details between the tags. The expected output should be all the customer details.  How can i implement this in C#? Any help will be appreciated.


Existence of solutions of the equation with a limit.

Let f be continuous function on [0,1] and $$\lim_{x→0} \frac{f(x + \frac13) + f(x + \frac23)}{x}=1$$ Prove that exist $x_{0}\in[0,1]$ which satisfies equation $f(x_{0})=0$  I suppouse that the numerator should approach $0$ which would implicate that for  x near $0$ $f(x + \frac13)$ would be of opposite sign then $f(x + \frac23)$ or both be $0$.  Then by intermediate value theorem we would know that there is $x_{0}\in[\frac13,\frac23]$ which fulfill  $f(x_{0})=0$  Yet, I have no idea how to prove that numerator $\rightarrow 0$


How to tell if a roll of film has been exposed?

I have found film reels some with tails of film others not. Is there a way of telling if they have been exposed/used in a camera? Film types are for 35mm and one Kodak Advantix.


Can't start mongod , configured storage engine is 'mmapv1'

I try to run mongo v2.6.10 on Ubuntu 16.04 lts:  mongod   And get the result:  mongod --help for help and startup options 2017-09-16T12:15:19.660+0430 [initandlisten] MongoDB starting : pid=15959 port=27017 dbpath=/data/db 64-bit host=mahdi-MS-7808 2017-09-16T12:15:19.660+0430 [initandlisten] db version v2.6.10 2017-09-16T12:15:19.660+0430 [initandlisten] git version: nogitversion 2017-09-16T12:15:19.660+0430 [initandlisten] OpenSSL version: OpenSSL 1.0.2g  1 Mar 2016 2017-09-16T12:15:19.660+0430 [initandlisten] build info: Linux lgw01-12 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015 x86_64 BOOST_LIB_VERSION=1_58 2017-09-16T12:15:19.660+0430 [initandlisten] allocator: tcmalloc 2017-09-16T12:15:19.660+0430 [initandlisten] options: {} 2017-09-16T12:15:19.660+0430 [initandlisten] exception in initAndListen: 28574 Cannot start server. Detected data files in /data/db created by storage engine 'wiredTiger'. The configured storage engine is 'mmapv1'., terminating 2017-09-16T12:15:19.660+0430 [initandlisten] dbexit:  2017-09-16T12:15:19.660+0430 [initandlisten] shutdown: going to close listening sockets... 2017-09-16T12:15:19.660+0430 [initandlisten] shutdown: going to flush diaglog... 2017-09-16T12:15:19.660+0430 [initandlisten] shutdown: going to close sockets... 2017-09-16T12:15:19.660+0430 [initandlisten] shutdown: waiting for fs preallocator... 2017-09-16T12:15:19.660+0430 [initandlisten] shutdown: lock for final commit... 2017-09-16T12:15:19.660+0430 [initandlisten] shutdown: final commit... 2017-09-16T12:15:19.660+0430 [initandlisten] shutdown: closing all files... 2017-09-16T12:15:19.660+0430 [initandlisten] closeAllFiles() finished 2017-09-16T12:15:19.660+0430 [initandlisten] dbexit: really exiting now   error :     exception in initAndListen: 28574 Cannot start server. Detected data   files in /data/db created by storage engine 'wiredTiger'. The   configured storage engine is 'mmapv1'., terminating   after update mongodb show error .


Why can 10k users see the so-called "deleted" posts?

Since deleted posts are visible to 10k users why isn't the button called hide or the post really deleted?  What is the reason that 10k users can still see them? Isn't the purpose of deleting something to actually delete it?


iOS client crashes when attempting to reply to comment

The iOS app crashes when I attempt to add a comment. There's a brief hesitation, then the app dies.  To clarify: this was not when responding to a deleted posted or deleted comment; it happens when I try to add a comment to an existing post, period. That said, it seems to be a problem with longer comment threads; I haven't had problems yet in cases where there are zero to a couple of comments.


and rerender: component..getElement() returns null

I have a aura:if expression that renders a inputNumber field after checkbox is clicked and certain other criteria matches.  Now, I want that inputNumber to be focused (and set certain attributes, like inputMode : numeric) after I click the checkbox.   The problem is that component.find("amount").getElement() returns null. There is a potential workaround to use setTimeout, but it's not elegant and breaks on iOS (Mobile Safari only pops keyboard if focus() event was received synchronously).  Code below.  Component:  <input   value="{! v.foo.Selected }"   name="{!v.foo.Key + v.index}"   type="checkbox"   id="{! v.foo.Key + v.index }"   onclick="{! c.selectfoo }"   data-value="{! v.foo.Name }"   data-key="{! v.foo.Key }"   aura:id="fooBox" /> <aura:if isTrue="{! and(v.foo.AmountRequired, v.foo.Selected) }"> <div class="slds-form-element__control">   <ui:inputNumber      class="slds-input"     format="$###,###,###"     placeholder="$"     aura:id="amount"      value="{! v.foo.SumAssured }"     keyup="{! c.moveFocus }"/> </div> </aura:if>   Controller:  selectBenefit: function(component, event, helper) {     var selected = component.get('v.Benefit.Selected');     component.set('v.Benefit.Selected', !selected); }   Renderer:  ({     rerender : function(component, helper){         this.superRerender();         var amount = component.find("amount");          console.log(amount);         console.log(amount.getElement()); //returns null          //below somewhat works         if (amount.isValid()){             window.setTimeout(                 $A.getCallback(function() {                     if (component.isValid() && amount.isValid()) {                         var input = amount.getElement();                         console.log(input);                         input.focus();                         input.setAttribute("pattern", "\\d*");                         input.setAttribute("inputmode", "numeric");                       }                 }), 200             );            }     } })   EDIT: Tried different approach and still got same race condition problem. After toggling 'slds-hide' class on an element, focus() doesn't execute, most likely because it's not visible yet:  $A.util.toggleClass(component.find("amountContainer"), "slds-hide");     if( component.get('v.Benefit.AmountRequired') && !selected ){         console.log(component.find("amount").getElement()) }


Scheduling a Round Robin tournament - 4-way games

I'm looking to schedule 16 players to play a round robin tournament with each other such that there are 4 players at each table.  I'd like for each player to play with each other player exactly once over the course of 5 rounds.  I just took a look at this post:  , and I was wondering if anyone knows if the case n=m=4 has been solved, and if so what that solution is.


Which web hosting can handle (+1000 clicks per day)?

I'm working on a site on which i'll start the marketing campaign in two weeks from now, so i have some concerns with my current hosting EasyWP (Namecheap), it seems they are low in performance with a lot of limitations to their users. For that reason, I'm considering migrating to another web hosting. I want my website to be ready for moderate traffic (+1000 click per day) For those who are experienced and sure on this matter, I would to know your experts' opinion, i'm considering HostGator Shared hosting will it be enough? I'd love to know your suggestions on this matter. Thank you in advance for your valuable insights.


There is a game that I really like to play when I was young. But there are some features that are not implemented that would be cool.  How can I find copyright database from games editor ?


Can you please explain differences in following phrases:   I am thinking      I thinking       I think      I have been thinking


evaluate $\lim_{n\to \infty} \left \{\frac{1}{k.n}+\frac{1}{k(n+1)}+\frac{1}{k(n+2)}+...+\frac{1}{k(n+p-k)} \right \}$    i think it can be written as a integral somehow but i can't


Show that $\frac c {1+c} \le \frac a {1+a} + \frac b {1+b}$ , for $c \le a+b$ and $a,b,c \ge 0$  So need to show $\frac c {1+c} \le \frac {a+b+2ab} {1+a+b+ab}$  We have $\frac c {1+c} \le \frac {a+b} {1+c}\le \frac {a+b+2ab} {1+c}$  So the whole thing reduces to showing $c \ge a+b+ab$ ?  Can anyone help me with this, I'm rubbish at inequalities...


what is the best way to update LibreOffice?

How to update to LibreOffice version 4 to version 5


How to make a stem and leaf plot with the following data in "R":  1717 1719 1645 3739 3024 3664 3830 2991 2430 2730 3469 5086 2119 3021 3292 2844 3426 2067 3215 2767 3124 2573 2840 2449 2584 1505 1390 1645 2497 3466 3228 3192  The only way to get a reasonable amount of stems is to make the stem the first digit in each number and the leaves will all be 3 digit numbers. I am not able to split the data in this way, R represents the stem with 1 digit but round my numbers  so 2584 is shown as 2| 5 (3 decimals to the right) which would be 2500. How do I adjust my stem and leaf numbers?


Geodesics: Straightest or Shortest? When and Why?

In classical General Relativity (meaning not modified) one can think of geodesics in two ways.    One way is to say that a geodesic is the curve which is the straightest (in analogy with the flat case) among all curves. More or less the story goes like this (correct me if I'm wrong): in the flat case geodesics are of the form $x^\mu(s)=st^\mu +b^\mu$ where $t$ and $b$ are constant vectors and $s$ is the curve parameter. The curve tangent vector is $\frac{dx^\mu}{ds}=t=const$ so $$\frac{dt^\mu}{ds}=t^\nu\partial_\nu t^\mu=0.$$ This is a tensor equation and by general covariance it  holds true in a general spacetime, mutatis mutandis: $$t^\nu\nabla_\nu t^\mu=0.$$ Another way is to obtain the equation by finding the minimum of the length functional $$L=\int \sqrt{g(t,t)} \,\, d\tau,$$ we get $$\frac{dt^\mu}{d\tau}+\Gamma^\mu_{\alpha\beta}t^\alpha t^\beta=0.$$ The above equation turns out to be just $t^\nu\nabla_\nu t^\mu=0$, with a certain parametrization choice.    The two formulations are thus equivalent. My question is when and why is it so? Is there a deep reason?  Looking up Wald's book I found the following, unclear to me, argument:     "On a manifold with a Riemannian metric, one can always find curves of arbitrarily long length connecting any two points. However, the length will be bounded from below, and the curve of shortest length connecting two points (assuming the lower bound in length is attained) is necessarily an extremum of length and thus a geodesic. Thus, the shortest path between two points is always a straightest possible path."    Later in the book he also says something about conjugate points.  I always thought it had to do with torsion: If we relax the condition $\Gamma^\mu_{\alpha\beta}-\Gamma^\mu_{\beta\alpha}=0$ then the connection is not Levi-Civita, hence $\delta_g L=0$ remains unchanged but $t^\nu\nabla_\nu t^\mu=0$ does and gives a different geodesic equation.. so Straightest $\neq$ Shortest anymore.  Can anyone clarify things to me?


The big dock on the left. In other versions you could escape Unity Launcher by going to GNOME, what now? GNOME tweaks is not showing it as an extension, even though it looks a lot like Dash to Dock.    I see autohide options in settings, but no way to completely remove it and use the GNOME default.  Edit: I'm not looking for vanilla GNOME, but simply to hide the dock.


Solve this limit: $\lim\limits_{n \to \infty} \frac{2^n+3^n}{2^{n+1}+3^{n+1}}$

I could not figure out how to solve this limit:  $$\lim\limits_{n \to \infty} \frac{2^n+3^n}{2^{n+1}+3^{n+1}}$$  I aleady checked the step-by-step solution by wolfram, still does not make sense.


How can I find out with which software a web page was written?

I'd like to know which software was used for the development of the web page from . How can I do it? Is there any tool for Firefox that could help me finding out this information?


Restrict access to admin pages by IP from .htaccess

I am trying to lock down a Drupal 7 site so that only users on a certain range of IPs can login. I tried using the Restrict IP module to block the /user and ?q=user routes but this did not work. Is there a way to do this with .htaccess and if so can someone point me in the right direction please?


Trying to get Schengen Visa for France - is Consulate Appointment Broken?

I'm trying to get a Schengen Visa from my first port of entry, France. I am trying to book an appointment with the French Consulate in SF, and the URL I am using is the following:   I've been checking this page periodically for the past few weeks, and I always see a dialog that that says "We are currently at full capacity. Please try again later." Their calendar provides no direct option for going to the next month. (Using the in-browser developer tools, I noticed that the button for next month is hidden. Un-hiding it and clicking on the Next Month button displays no available appointments either. I checked all the way until September 2016).  My guess is that there are absolutely no appointments for the next 6 months. Or, more likely, their page isn't functioning properly. I'll be traveling in July. Does anybody have any alternate suggestions to book an appointment?


I am looking at clustering about five machines and I wanted to get some opinions about what is the best way to go about it. I'm wanting to run one VM over the five machines, firstly I want to ask,  1: If I cluster the five machines will there hardware be combined? HDD's CPU's Ports etc..  2: Would the hardware be accessible(Usable) within the VM  Ultimately what I am asking is If I cluster five machines and run a VM over them will that make the VM a 'speed demon' combining CPU's and HDD's?  Also what are some of the clustering operating systems out there at the moment? I have looked around but it seems that allot of it is deprecated or just old.  If you need any more information just ask.  NOTE: Im not wanting the cluster to process files parallel, Im wanting the speed of the processors, RAM and HDD's combined into one VM working over top of the cluster


Apply display settings to all user accounts?

I spent some time getting my settings correct for multiple monitors, and that is working fine when I am logged in, but is not right at the login screen or for other users.  How do I set the display settings globally for all users and the login screen?


What is the reason of $dT/dh = 0$ in the gas column?

According to thermodynamics every adiabatic system and (with no external energy added) will reach thermodynamic equilibrium or an ergodic state (2 law of thermodynamics entropy can not decrease in a closed system). State at which Temperature (or mean kinetic energy of the particles) will be same everywhere. So the answer to the question should be simple and straightforward $dT/dh = 0$. But is it the case? Let's open  page on Wikipedia and will see that adiabatic system will always create and support gradient $$dT/dh < 0$ and equal to some constant. One can argue that this is because this system do not reach equilibrium and do not relax much. But look at calculation, if some additional relaxation took place then the gradient must decay and reach 0 at some time, but it is not the case. One can argue and say that ok gradient is there but there is no contradiction with second law. But a thought experiment conducted by Maxwell with two columns of different gases. He showed that if the calculations are correct, then gradients of different magnitude will be generated in these columns. And therefore, in a system where these two gas columns are isolated everywhere except at the top, there will certainly be a flow of heat from a colder body to a hotter one. Also, because gradient is exists Boltzmann distribution are mistaken. It is simply striking how two such contradictory statements, namely the universality of the second law of thermodynamics and the gradient in the gas column in the gravitational field, are able to coexist, this is pure schizophrenia. I also made a simple computational model which clearly shows that adibatic lapse rate you can find it on  or in the answer of this question. Here I list some findings which I made while discussed this question and made my model:  If you consider collisions of perfect gas particles it always leads to just velocity exchange (Newton's cradle as analogy), this statement can be easily proved mathematically, because masses are the same and collision are rigid and radius of the particle is negligible. This is the real reason why you should not take into account perfect gas collisions because it does not introduce into the model any new properties.  Despite the fact that Boltzmann and others derived their distributions for an ideal gas, implying the property of ergodicity of the system, in reality there is no energy mixing for the ideal gas model and particle collisions will not help at all here (see the previous paragraph). In reality, a certain entity is needed that would mix the energies of the particles and I introduced such an entity, and just after that the gradient manifested itself in all its glory.


Is this a valid proof for $\gcd(a,b) = \gcd(b,r),\ r = a-bq$?

Let $ a \in \mathbb{N}$, $ b \in \mathbb{N}_0 $, $ r \in \mathbb{N}_0 $, $ q\in \mathbb{N} $ and $ b \leq a$ so that $$a = bq + r $$with $$ 0 \leq  r \lt b$$ Proof: Let $ D = \{d \in \mathbb{Z} \vert ~  d \mid a \text{ and } d \mid b \}$ and Let $ D' = \{d \in \mathbb{Z} \vert ~ d \mid b \text{ and } d \mid r \}$ Let $ x \in D  $, so that $x \mid a$ and $x \mid b$: $$ a = bq +r   $$ $$ a - bq  = r   $$ So $x \mid a-bq=r$ so $x \mid r$ Let $$ x \in D',  $$ so that $x \mid b$ and $x \mid r$: $$ a = bq +r $$ So $x \mid b$ and $x \mid r$ but also $x \mid a$ and since $$ a \in D$$ $$ \gcd(a,b) = \gcd(b,r)$$ Any critique? Did i proved it somehow in a correct way? If not, could you show me what i did wrong or how to do it properly? Thanks in advance!


List of interesting math videos / documentaries

This is an offshoot of the question on . I have listed a few videos/documentaries I have seen. I would appreciate if people could add on to this list.  $1.$ Story of maths      $2.$ Dangerous Knowledge    $3.$   $4.$   $5.$


Do people “go half/halves” on something?

If two people want to buy a car together, would they go half on the car or halves. Example: Let's go half on this car or Let's go halves on this car?


Which Wacom tablet would suit my needs, Intuos vs. Bamboo?

I am not a graphic design student but digital painiting intrigues me quite a lot. I have been watching online lessons of it and have finally decided to buy a pen tablet. I want to pursue digital painiting as a hobby.   Budget is not a constraint for me (owing to the hige price difference between Bamboo and Intuous) but I want to use the money effectively.  Which tablet would you suggest me to buy?


Is there any reason to not complete the game?

Would there be anything in Skyrim where you wouldn't want to complete the main story? (Yes, I know the game continues after that)  Like something you can no longer access, or do after beating the game?


Define Pressure at A point. Why is it a Scalar?

I have a final exam tomorrow for fluid mechanics and I was just looking over the practice exam questions. They do not provide solutions. But pretty much I have to define pressure at a point and also say why pressure is scalar instead of a vector.  I am thinking pressure at a point is $P=\lim_{\delta A \to 0} \frac{\delta F}{\delta A}$. Please let me know if I am wrong.   But I do not know at all why pressure is a scalar instead of a vector. I know it has something to do with $d \mathbf{F}=-Pd \mathbf{A}$


How to parse release number for branch name

Given a branch name like release-1.0 or release-0.4alpha or release-12.02, I want to parse out the version number using a python 3 regex expression.  What I have is:  #!/usr/bin/python3  import re;  import sys  arg = sys.argv[1] regex = r'(?<=(^release-))\d+.\d+(alpha)?$'  match = re.match(regex, arg)  if match:     print(match.group()) else:     print('Branch "{}" is not valid release branch.'.format(arg))     sys.exit(1)   But this fails to match any of the attempted names:  $ ./scripts/bin/get-version-number-from-branch release-1.0 Branch "release-1.0" is not valid release branch. $ ./scripts/bin/get-version-number-from-branch release-1.0alpha Branch "release-1.0alpha" is not valid release branch.    I originally built and tested this on  and .  Any ideas what I am missing?


With the new update, we now have "Sightings." However, there is no indication of how this differs from "nearby Pokémon", though in the patch notes, it states they are testing a variation of "Nearby Pokémon" which appears to be the "Sightings." How do "Sightings" differ from "Nearby Pokémon"?


What is V-Sync and when should I enable it?

Most modern 3D games have a graphics option "V-Sync". It's usually an on/off setting. I'd like to understand settings I tweak with, and this one kind of eludes me.  What does "V-Sync" mean, and when should I turn it on?    I've tried a few things to answer my own question:    arqade. There's a more  about which way to go about enabling it,  about why limiting FPS to screen refresh rate won't prevent tearing, as well as several other game- or hardware-specific ones, but no real question or answer that explains what it is or when to use it at all. Use , which leads to a decent yet very . It does explain to some degree what it is, but not in very much detail nor anything about when you'd turn it on. A , which is (a) rather short and (b) obviously encyclopedic instead of aimed at a gamer deciding whether to use this option.   Finally I've tried messing with the setting in various games, mainly when I saw and googled about the "tearing" of images I had in some games, but a gamer-oriented explanation of the what and when still eludes me...  As a gamer to a gamer: please tell me what the option is and give me a rule of thumb of when I should (and should not) consider turning it on/off?


Huawei MU736 3G modem not showing in network manager and not connecting

I have a Huawei 3G module, model MU736, installed by default on my Clevo laptop, Ubuntu 14.04 64.  Here is what I know:   I have a dual boot with Debian 8 Jessie (which despite of Ubuntu doesn't work with nvidia drivers) and this one works almost properly with the modem (after doing dpkg-reconfigure modem manager) , maybe I can use it to know how it works. The module is fully supported by free desktop modem manager, as listed here:  Usb modeswitch works properly as I can see the modem interface in lsusb and even the modem serial port in /dev/ttyUSB1 and I den see it in modem manager GUI but with no access. I tried dpkg-reconfigure modemmanager with no luck, even purge and reinstall didn't work.   Help!


Can any one please tell me in what cases the hamiltonian is not Equal to Total energy. My guess, albeit educated, is if the potential is either a function of time explicitly or a function of velocity, then $H\neq T_{energy}$.   Consequently, then, in every other case $H=T_{energy}$. Am I right? I would also appreciate of you would give me an example of a systems in which $H\neq T_{energy}$.  If I am wrong, then please correct me.


I work for a government utility company. Our maps are broken down into 500x500 square meter grids. We have scanned images (TIFF) of these maps that we need to overlay and digize. The maps and the scans are saved in different folders with corresponding map and scan being named for example 5049.dwg and 5049.Tiff respectively. In the past we have been Georeferencing in AutoCAD but we migrated to GIS for better accuracy. Each of these scans are the same size but have different coordinates as they are building blocks of a bigger map,  like a jigsaw of sorts. Is there a way to automate the batch Georeferencing of these scans using either python or model builder?. The question was marked a duplicate, in this case the coordinates of each image is different.


Why during HashMap iteration, changing value of a key/value pair doesn't throw ConcurrentModificationException?

For example see the following code snippet:          Map<String,String> unsafemap=new HashMap<>();         unsafemap.put("hello",null);         unsafemap.put(null, null);         unsafemap.put("world","hello");         unsafemap.put("foo","hello");         unsafemap.put("bar","hello");         unsafemap.put("john","hello");         unsafemap.put("doe","hello");          System.out.println("changing null values");                  for(Iterator<Map.Entry<String,String>> i=unsafemap.entrySet().iterator();i.hasNext();){                      Map.Entry<String,String> e=i.next();                      System.out.println("key : "+e.getKey()+" value :"+e.getValue());                     if(e.getValue() == null){                          //why is the below line not throwing ConcurrentModificationException                         unsafemap.put(e.getKey(), "no data");                          //same result, no ConcurrentModificationException thrown                         e.setValue("no data");                         }                      //throws ConcurrentModificationException                     unsafemap.put("testKey","testData");                  }                 System.out.println("---------------------------------");                 for(Map.Entry<String,String> e :unsafemap.entrySet()){                     System.out.println(e);                 }   Modifying the map during iteration always results in an exception, if not done using the iterator e.g. iterator.remove(). So obviously adding a new value during iteration is throwing the exception as expected but why is it not thrown if the value of a particular key/value pair is modified?


Cannot create template vector::iterator in c++

template<typename T> bool Palindrome(vector<T> word) { vector<T>::iterator start = word.begin(); vector<T>::iterator end = word.end(); for (;start != (word.begin() + word.end())/ 2;start++) {     if (*start != *(--end)) {         return false;     } } return true; }   I cannot create iterator of as in line 3 of code. I have to make a palindrome checker for any data type. Is there problem regarding the syntax or we cannot do it this way. Thanks!  The error message is as follows:  'end' was not declared in this scope 'start' was not declared in this scope dependent-name 'std::vector::iterator' is parsed as a non-type, but instantiation yields a type dependent-name 'std::vector::iterator' is parsed as a non-type, but instantiation yields a type expected ';' before 'end' expected ';' before 'start' need 'typename' before 'std::vector::iterator' because 'std::vector' is a dependent scope need 'typename' before 'std::vector::iterator' because 'std::vector' is a dependent scope no match for 'operator/' (operand types are '__gnu_cxx::__normal_iterator >' and 'int')


I'm trying to add a new font to my iOS app. I've followed the following steps :   Add my font file to my "res" folder Add my full font name to my plist file Add a UILabel subclass with the following code     Code:  - (id)initWithCoder:(NSCoder*)aDecoder {     self = [super initWithCoder:aDecoder];     if (self) {         [self setFont:[UIFont fontWithName:@"Gotham-Book" size:self.font.pointSize]];     }     return self; }   However the font is not displayed... I've try the following code to display all the fonts of my app and Gotham is not displayed...   for (NSString *familyName in [UIFont familyNames]) {         for (NSString *fontName in [UIFont fontNamesForFamilyName:familyName]) {             NSLog(@"%@", fontName);         }     }   I don't understand why it doesn't work. So if you can help me !


Changing figsize results in empty output image

I want to save a plot with a transparent background using savefig. The code looks like this:  plt.savefig("filename.png", transparent=True) plt.show()   It works well and saves the images as expected (some graphs on a transparent background). However, if I change the size of the plot, the output image becomes an empty image, that is, a completely transparent image with no graphs. This is how I changed the size:  plt.figure(figsize=(6.4, 4.8), dpi=100) plt.savefig("filename.png", transparent=True) plt.show()   I want a 640x480 image. Even if I don't change the dpi the output images are completely blank. How can i avoid this?


Show that each number in the sequence $49,4489,444889,44448889$ is a perfect square.   My attempt is basically a common one.  $a_4=4444(10^4)+888(10)+9$  $=4(1111)(10^4)+8(111)(10)+9$  $=4(\frac{10^4-1}{9})(10^4)+8(\frac{10^3-1}{9})(10)+9$  $a_n=(\frac{10^n-1}{9})(10^n)+8(\frac{10^{n-1}-1}{9})(10)+9$  After some indices work, I managed to get $a_n=(\frac{2(10^n)+1}{3})^2$, which shows that each number in this sequence is a perfect square.   I'm basically has zero knowledge about number theory. Does any another way to solve this question? Thanks in advance.


Ctrl Alt Numpad 0 keeps moving my object?

Trying to follow along with a tutorial and in that tutorial the idea is to look at an object I created from the front and then set the camera to the current view.  The steps to do this are:   Numpad 1 (Front perspective) Ctrl+Alt+Numpad 0 (Align Camera to View)   For some reason whenever I do this I don't see anything in the camera and then panning the view around I see that my object seems to have moved to where I wanted the camera and my camera hasn't moved at all.


Difference between permutations of any given two n digit numbers is always an integer multiple of nine?

So I had this thought experiment.  I take an arbitrary n digit number, and the only condition is that all of the digits cannot have the same value, like the numbers 33, 333 and so on. However, I can assume there can be at most n-1 digits that are the same, such as 1112, 229 and so on. What I noticed is that regardless of any two permutations of the n digit number that I take, the difference between them is always an integer multiple of 9.   For example, I choose the number 229. The possible arrangements I can get are 229, 292 and 922. I pick any two of these numbers at random, the difference is always an integer multiple of 9.  292-229=63, an integer multiple of 9.  922-292=630, again an integer multiple of 9.  922-229=693, yet again an integer multiple of 9.  I do not have much knowledge on number theory and stuff, so it would be much appreciated if someone could explain what is going on.


At the risk of sounding like a complainer:  I just got (over) 200 rep.  It's 5:23PM here in Colorado, yet the rep I received just an hour ago is listed in "yesterday", and the most recent 30 in "today".  Am I missing a time zone setting, or is this something I have to remember when considering pursuing a badge?


What's the difference between Hard X-rays and Gamma-rays?

So I'm aware of  and , but the question is Are Hard X-rays and Gamma-rays the same thing? If not, then what would be the key difference between them. Moreover, How much would the properties of each type differ from each other? I'd appreciate a simple answer without much technicalities.


Match full number only regular expression

I am playing around with regular expression for trying to recognize dates and I have the following regular expression:  (([0]?[1-9])|^([1][3-9])|([1][0-2]))/([012]?[0-9]|[3][01])/[12][0-9][0-9][0-9]   The issue is that when I have an incorrect date (in America at least) like 14/02/2000 is still thinks 4/02/2000 is a date. How can I modify my regular expression so that it doesn't recognize part of the number?


For $G$ group and $H$ subgroup of finite index, prove that $N \subset H$ normal subgroup of $G$ of finite index exists

Let $G$ be a group and $H$ be a subgroup of $G$ with finite index. I want to show that there exists a normal subgroup $N$ of $G$ with finite index and $N \subset H$. The hint for this exercise is to find a homomorphism $G \to S_n$ for $n := [G:H]$ with kernel contained in $H$.   The standard solution suggests to choose $\varphi$ as the homomorphism induced by left-multiplication $\varphi: G \to S(G/H) \cong S_n$. I'm not 100% sure if I understand this correctly. What exactly does $\varphi$ do? We take $g \in G$ and send it to a bijection $\varphi_g: G/H \to G/H, xH \mapsto gxH$? If so, how can I see that its kernel is contained in $H$? Also, the standard solution claims its image is isomorphic to $G/N$ and thus $N$ has a finite index in $G$, how can I see that the image is isomorphic to $G/N$?  Thanks in advance for any help.


converting multiple files with avconv...libmp3lame0 not found

I have about 20 .webm files that I would like to convert to audio in the terminal. I want to do   avconv -i *.webm -acodec libmp3lame0 -aq 4 *.mp3   I tried:  for i in *.webm; do avconv -i "${i}" -acodec libmp3lame0 -aq 4 "${i%.wemb}.mp3"; done   but it says "libmp3lame0 encoder not found." It is installed, though. I also installed ubuntu-restricted-extras and reinstalled libav-tools.  I also tried   for i in *.webm; do avconv -i "${i}" -acodec -aq 4 "${i%.wemb}.ogg"; done   to remove the whole mp3/LAME aspect, but then it just said '.ogg encoder not found.'  This worked once before when I tried to convert using libmp3lame0 without the for loop...but I just tried to convert one file and it doesn't work anymore.  Thanks. (I'm using 12.10.)


Publishing on Scholarpedia: Experiences & feasibility (early career)

Some months ago, I ran across a peer-reviewed open access encyclopedia  and became rather excited about the idea and the implementation. So far I haven't had a chance to publish any materials there or, even, initiate that process (obviously, I'm talking about rather small and focused articles due to my limited research experience). However, I am curious about people's perceptions about the site (from both perspectives of an independent publishing outlet and an addition to traditional journal publishing) as well as your experiences, if any, with the publication process there and interactions with the site's editorial team. Also, what do you think about the feasibility and career value of publishing on Scholarpedia for a beginner researcher and scholar?


Young slits, mirrors and interference patterns

Why do Young slits projecting via an intermediary mirror to a screen still shows the normal pattern of interference? This happens even though the mirror is so close that not all interference is constructed yet. The more dramatic experiment being to use a mirror for each slit so as to split and then using two other mirrors to recombine the light. It is my understanding from QM that the interference pattern only happens because there is no measurement between the slits and the screen. However, I don't see how the mirror avoids any measurement at all. Do mirrors somehow escape measuring light and if so, what is the justification for this exception? I find it even harder to accept this possibility considering the mechanical effect of radiation pressure on the mirror.


Proving the continued fraction expansion of $\sqrt2$

I am working on a multi-part problem, which shows that $$\sqrt{2} = 1+\frac{1}{2+\frac{1}{2+...}}$$  I have shown that given some rational approximation $\frac{m}{n}$ to $\sqrt2$ , we can take $\frac{m'}{n'} = \frac{m+2n}{m+n}$ and get a better approximation.   I also know that this iteration goes back and forth between being larger and smaller than $\sqrt2$. Say if we start with $\frac{m}{n}<\sqrt2$, then iterating will give us $$\frac{m}{n}<\frac{m''}{n''} = \frac{3m+4n}{2m+3n}<\sqrt2$$  Finally, I am asked to prove that the sequence obtained by iterating in this fashion, starting with $$1,\frac{3}{2},\frac{7}{5},...$$ which I have shown is given recursively by $$q_1=1, q_{n+1} = 1+\frac{1}{1+q_n} $$  converges to $\sqrt2$.  My professor's "hint" is to consider the "odd" and "even" subsequences, and show that they both converge to the same limit. This makes sense to me, since both sequences are clearly monotone and bounded. Most (all?) of my classmates simply wrote that because they are both monotone and bounded by $\sqrt2$, then they must both converge to $\sqrt2$. However, just because they are bounded above and below, respectively by $\sqrt2$, it does not necessarily mean that $\sqrt2$ is the limit for both (or either!) of them. Some classmates have tried to prove by contradiction that if there were some other limit for one of the subsequences, we could iterate again and get closer to $\sqrt2$. I think that this is a faulty argument, because it assumes that we reach the limit. Remember: the sequence is "fixed" as soon as we choose to start it at $q_1 = 1$ !  My counterargument towards most of my classmates has been the sequence given my $\frac{1}{n}$. The sequence is bounded below by $-99$, and no matter how many times we "iterate" (in this case, just taking the next value of $n$) we can always get closer and closer to $-99$, but that doesn't mean that $-99$ is the limit.   If someone could offer me a resolution to this problem I would be hugely appreciative. It's been driving me crazy for the past week.  EDIT: I realize this post has been marked as a duplicate, however I think it should be left up, as the answer given is a bit different from that in the "original".


can i convert steam games in my library to my steam gift inventory?

is it possible to move steam games in your library to your steam gift inventory? i would like to trade my games for keys/metal/unusual's for tf2 but i can't figure out how to do so. Is it even possible? please help :P


Name of Book/Book Series Involving Time Travel By Dreams Throughout History to Protect It

I'm trying to remember the name of the book or series involving time travel through dreams. It would have been published pre-2004-2010 and was a young-adult book. I can't recall it having won any awards at the time of reading.  The plot involves a boy either in middle or high school who is part of a secret society who protect/travel through time to maintain it without messing it up or stop people from changing it. The story starts with him being told that although he has accomplished enough to earn some very high rank and "wings" he needs to to one more thing before he receives them. He needs to train some girl to be an new member. I seem to recall her at some point being in the same class and some scene with a pen (I think). They time travel by sleeping and their minds are transported and they either take the appearances of others or inhabit their bodies for a time. At some point the two travel to England and they almost get caught so they go into a room and pretend to be making out to have an excuse for why they are in the room. I recall that during this scene the boy's father wakes him up causing him to leave his partner as he was worried he wasn't waking up.   Things happen and it turns out the father used to be a part of this secret society until something went wrong with his partner, who is now the villain. I think there was something about going back in time during a plague and either the dad or his partner gives a vaccine for it to a women. I can't exactly recall what happens just mention that being the only survivor would drive her crazy or make her seem a witch to others. I don't remember where in the book, but the boy tells the girl that they must be careful in their interactions in the past so they don't mess with it and gives an example of some inventor and his invention never being invented due to time meddling.   Things happen and in the end the boys father decides to join his son to fight the big bad they succeed (either completely or to a degree) and the boy gets his wings. Actual wings as I recall.  I can't recall if this was a standalone book or the first in a series. I hope someone can help me remember the name of the book.


Why the outer shell in the cylindrical capacitor doesn't contribute to the field of the capacitor?

As per my question i don't understand why during the computation of the field between the inner and outer cylinder we just take into consideration the inner cylinder charges and neglect those of the outer shell?   some people argue that it's due to gauss theorem, but we also have the superposition principle so what'sthe point here?


NullPointerException when referencing ImageView Android

I am trying to build an app that uses the device's camera, takes a picture in one fragment, and displays that picture in a separate fragment. My app uses a DrawerLayout and several fragments. In the main Activity class when I try to reference the ImageView I would like to edit within the xml file of one of my fragments I am met with a NPE:  ImageView imgTaken = (ImageView) findViewById(R.id.post_imageView);   I have been encountering these types of exceptions too frequently; I think there is something about using View objects that I am not familiar with. If anybody has any useful insight on why exactly I may be repeatedly finding my code not working due to a NPE, please feel free to enlighten me.  Thanks for the help!


In what order should you do linear regression diagnostics?

In linear regression analysis, we analyze outliers, investigate multicollinearity, test heteroscedasticty.   The question is:  Is there any order to apply these? I mean, do we have to analyze outliers very firstly, and then examine multicollinearity? Or reverse?    Is there any rule of thumb about this?


unmet dependencies error after installing squid

I have this error message after running "sudo apt-get squid3 install" in terminal on ubuntu 12.04  The following packages have unmet dependencies:  squid3 :   Depends: squid3-common (= 3.1.19-1ubuntu3.12.04.3) but it is not going to be installed


Why is this template example code not compiling?

I am trying to make an example of using templates in order to learn how to use them. I have made a project in Visual Studio 2010 C++ with three files:  Controller.cpp:  #include <iostream>  #include "Foo.h"  using namespace std;  int main(){      Example<int,string> example;      example.appols(5, "Hi");      return 0; }   Foo.h:  #include <iostream>   using namespace std;  template <class T, class E> class Foo{ public:     void printThis(T t, E e); };  template <class T, class E> class Example{ public:     void appols(T t, E e); };   Foo.ipp:  #include <iostream>  #include "Foo.h"  using namespace std;  template<class T, class E> void Foo<T, E>::printThis(T t, E e){     cout << "FOO! " << t << ' ' << e << endl; }  template<class T, class E> void Example<T, E>::appols(T t, E e){     cout << "APPOLS!! " << t << ' ' << e << endl;     Foo<T,E> f;     f.printThis(t,e); }   When I try to compile, I get:  1>------ Build started: Project: Template Practive, Configuration: Debug Win32 ------ 1>Controller.obj : error LNK2019: unresolved external symbol "public: void __thiscall Example<int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >::appols(int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?appols@?$Example@HV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@@QAEXHV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function _main 1>C:\Users\Matthew\documents\visual studio 2010\Projects\Template Practive\Debug\Template Practive.exe : fatal error LNK1120: 1 unresolved externals ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========   Could you help me see what I have done wrong here and where error LNK2019 is coming from? Thank you in advance!


Was this the first use of the F-word in Star Trek?

In Series 1 Episode 2 of Picard, Admiral Clancey accuses Admiral Picard of 'f***ing hubris'. Is this the first use of the F-word in TV/movie Star Trek?


why we are using javascript:void(0) in Angular code

login   I've seen such anchor tag's href property having javascript:void(0) value many times. I don't know what exactly that means.I saw this when working with angular 5. Why is javascript:void(0) used as a value for href property?


Can i connect a dc power supply rated 20v,6 A to a system which needs a power supply of 8-32v and 1.5A? My  concern is about current. Will my system only consume max of 1.5A from supply instead of 6A?


Prove that $\gcd(a,b)=d \Rightarrow \gcd(p^a-1,p^b-1)=p^d-1$

I have to prove the following:.      For $a,b,p,d \in \mathbb{N}$ and $p>1$, $\gcd(a,b)=d \Rightarrow \gcd(p^a-1,p^b-1)=p^d-1$.   So as far as I know I have to prove two things: 1. $p^d-1 \mid p^a-1$ and $p^d-1 \mid p^b-1$. 2. $(c \mid p^a-1$ and $c \mid p^b-1) \Rightarrow c \mid p^d-1$.  I already managed to prove the first one, but i am not sure how to solve the second. Any help would be appreciated!


If I were to apply to a Ph.D. program for mathematics and in the application mentioned that my intended field of study would be something in algebra, would the admissions committee be interested in a paper on graph theory that I wrote and gave a talk about at an AMS conference for undergraduate research?  I think I did some good work (for an undergraduate), but I don't know if application reviewers would value work in graph theory for somebody looking to go into an algebra related field. If it matters at all, the paper was on various forms of dominating sets.


Can't level up after level-50 in borderlands 2 in True vault hunter mode

I am currently playing the Borderlands 2 game in True vault hunter mode. I am at 50th level. I have observed that I am no more being leveled up by killing enemies or by completing missions.  What could be the reason? Thanks


I cannot understand why the div named "boxb1" isn't inside the div named "bba". I have tried many different things but I just cannot nest these divs.  Shouldn't "bba" accomaodate "boxb1" within itself? I am trying to create a responsive page here. ?   of the code.  My code:    html {} body {    padding-bottom: 1%;  }  .container {    width: 98.3%;    margin: 10px;    padding-bottom: 5%;    position: relative;  }  #twlth {    width: 100%;    padding-top: 5%;    padding-bottom: 5%;    float: left;  }  #boxb1 {    width: 21%;    padding-bottom: 1%;    float: left;    margin: 10px;    text-align: center;    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;  }  .bba {    width: 100%;    -webkit-box-shadow: 10px 10px 108px 0px rgba(0, 0, 0, 0.68);    box-shadow: 10px 10px 108px 0px rgba(0, 0, 0, 0.68);    padding-bottom: 1%;    margin-bottom: 100px;  }

Text

box1


Why did Smaug gather a treasure of gold and other precious objects?

In The Hobbit, . But why did he have so much to steal from? He's a Dragon! He is not the kind of dragon that . He doesn't need wealth to buy a luxury cavern and/or pay his servant.   Why did Smaug gather his treasure?


What is the difference between “nope” and “no”?

What is the difference caused by using “nope” instead of ”no”?  Is it used because “nope” sounds better and not straight like “no”? In some situations, it feels like nope is better to use than no even though it adds 2 more characters. What is the reason why many use it?


Would it be possible to display Latex in comments.  Yesterday I posted a math question, which someone helpfully edited. They changed all occurrences of a^b to ab. Like two squared can be written 2 * 2 = 2^2 or 22.  This resulted in answers being posted containing LaTeX which the app doesn't format leaving what look like a combination of spurious characters scattered through your math formula.  If you can format LaTeX in questions, answers and comments on the full Web site. You can format LaTeX in app questions. Why not app comments.   On an aside what's the Web address for the SE mobile site. My search engine only finds links for app download and links to the main site.


I have this Xml file  and I want to read same specific colums, there are currency online rates and  want to read only the 3 of them, how can I do that with php? I try this but with no results  <?php $file = "feed.xml"; $xml = simplexml_load_file($file);  foreach($xml -> item as $item){     echo $item[0]; } ?>


Show the polynomial is irreducible in $\textbf Z_2$

Show that $p(\gamma) = \gamma^{4} + \gamma + 1$ is irreducible over $\textbf Z_2$. Okay, I would just like to see if i'm on the right track for this problem.  $$\gamma^{4}+\gamma+1=(\gamma +b)(c\gamma^{3}+d\gamma^{2}+e\gamma+\gamma)$$ So then $a = c = 1$.    So $$\gamma^{4}+\gamma+1=(\gamma +b)(\gamma^{3}+d\gamma^{2}+e\gamma+\gamma)$$  Let $b = 0$ $\gamma^{4} + \gamma+1=(\gamma)(\gamma^{3}+d\gamma^{2}+e\gamma+\gamma)$   Let $\gamma = 0$ Then we see $1 = 0$ which is a contradiction.  Let $b = 1$ $\gamma^{4}+\gamma+1=(\gamma+1)(\gamma^{3}+d\gamma^{2}+e\gamma+\gamma)$  Take $\gamma = 1$ And again $1=0$   So our polynomial is irreducible over $\textbf Z_2$  Is there another way I should be computing this? Maybe with Long division of polynomials?  I'm quite lost..


Is there a single word which means "not empty"? That is, a word which one might use to describe a field with one or more cows in it, as opposed to an "empty" field with none?  Full or even partially-full are not appropriate, because the number of animals is indeterminate, and the final count could be a single bull [which are best kept on their own] or fifty cows. Or three sheep. And the field is really only full when there is no more space available.  I'd prefer a single word, to go with the single word "Empty". Currently I'm using "has animals" which I feel is not particularly succinct.  [This is an edit of the original question reproduced below, in an effort to keep it on-topic]    I'm trying to figure out the names for different states of a set of items, empty or non-empty. What I came up with so far:  EmptyAndFetching, EmptyAndReady, HasItemsAndFetching, HasItemsAndReady, Error   HasItems seems awkward, I would rather use one word than two. How do you call a set that is not empty, i.e. has at least one item, in a common language?


How to cancel a credit card and verify it was closed

I would like . In the online portal, there are no links that permit me to cancel the card online and receive an instant verification that it was closed successfully.   Due to this, I assume that I will have to call the number on the back of my credit card, be directed to Customer Retention after I inform them I wish to cancel the card, and hassle for some time period before they give up and initiate the process to cancel my account.  I don't like this option because I won't get any kind of verification aside from the call center employee's word that he canceled my card.  What is the standard operating procedure for canceling a credit card and verifying it was successfully closed as quickly as possible?


Is it necessary to use commas in lists before the conjunction?

I have seen many sentences like this:     "Capitalism, Socialism, and Anarchism"   and this:     "She was happy, and cheerful"   Do we have to use a comma before "and", or is it incorrect?  If it is not, then why?


Cannot format USB flash drive after creating Ubuntu installation disk

I have a problem with my USB flash drive. I created an Ubuntu 16.04 installation on the drive using the Ubuntu standard tool to "Create a Bootable Disk", and now I can't format this USB drive.  When I delete the Ubuntu installation from this drive it just keeps coming back and and free memory on this drive is 0 mb.   How can I fix it?


Can I change delay on mouse over action in Windows 7

when you point your mouse over a taskbar pinned icon - there is some action happens - in Windows 7 you can see the windows opened (if its running) or there is a tooltip with the program name (if its not running).  There is considerable delay for the tooltip and very short delay for list of running instances.  Can I change the delay to open the list of the program running instances ?


Jawa asked me this  and I didn't know the answer. So I present it to the meta SO community:     [To get the Yearling badge] Do you need to earn the 200 rep within that one year or is it enough to get 200 at some point after being a member for a year? And does 'a year' mean the very first 12 months or the last (sliding window of) 12 months?    I would assume that if you hit 200 reputation after you've already been around for a year, then you would get the Yearling badge. But I don't know.


Calculating spaces between roads from PostGIS database?

Is it possible to calculate the spaces between the roads using a select statement in a PostGIS/PostgreSQL Database?   I tried using some combinations of the predefined functions as ST_Intersects & ST_Difference but did not succeed yet.


How can Silent Image be used to obscure vision in combat in 5E?

In my party I have a warlock who is partial to illusion magic. At second level, he took the 'Misty Visions' invocation, with the intent of using Silent Image to keep the party shrouded in illusory fog during combat. His logic is that because the party knows it is an illusion, they are never hindered by it, but the enemies are effectively blinded to the players until they manage to discern the illusion. In one instance, this resulted in two party members swinging with advantage on a bugbear who couldn't see them, and who had to use his action on the next turn to inspect the illusion.  In this situation, Silent Image gives most of the benefits of Darkness, a second level spell, without negatively affecting the party, and without costing a spell slot. I don't want to have to tell the player "No, that's too OP," but I'm not sure how to interpret the mechanics in a way that isn't broken.  In short: What does RAW say about using Silent Image on top of or between close quarters combatants? How can Silent Image be interpreted/altered such that it can provide some benefit in combat, while maintaining the intended power level?


Get path of where a script was called from

If I have a bash script in my home directory and call for it to execute from my Desktop, is it possible for the script to know the request to execute came from the Desktop? I've figured out how to get the path of where the script file is, but I want to know where the request came from.  Thanks!


Can I use greek letters such as alpha to denote a set?

Can we have a set which is called by a small greek letter, e.g. a set $\alpha$?


How to fix java.lang.NullPointerException: null in Bukkit plugin?

Can't understand how to fix that error, it's unreal to me (can't find where's void in my code):  java.lang.NullPointerException: null     at survival.MainClass.onEnable(MainClass.java:16) ~[?:?]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[spigot.jar:git-Spigot-dcd1643-e60fc34]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337) [spigot.jar:git-Spigot-dcd1643-e60fc34]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:403) [spigot.jar:git-Spigot-dcd1643-e60fc34]     at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:381) [spigot.jar:git-Spigot-dcd1643-e60fc34]     at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:330) [spigot.jar:git-Spigot-dcd1643-e60fc34]     at net.minecraft.server.v1_12_R1.MinecraftServer.t(MinecraftServer.java:422) [spigot.jar:git-Spigot-dcd1643-e60fc34]     at net.minecraft.server.v1_12_R1.MinecraftServer.l(MinecraftServer.java:383) [spigot.jar:git-Spigot-dcd1643-e60fc34]     at net.minecraft.server.v1_12_R1.MinecraftServer.a(MinecraftServer.java:338) [spigot.jar:git-Spigot-dcd1643-e60fc34]     at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:272) [spigot.jar:git-Spigot-dcd1643-e60fc34]     at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:545) [spigot.jar:git-Spigot-dcd1643-e60fc34]     at java.lang.Thread.run(Unknown Source) [?:1.8.0_161]   16 line is:  getCommand(commands.cmd3).setExecutor(commands);   Commands class:  public class Commands extends CommandExecute implements CommandExecutor, Listener {  public String cmd1 = "fly"; public String cmd2 = "feed"; public String cmd3 = "heal";  @Override public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {     if (sender instanceof Player) {         if (cmd.getName().equalsIgnoreCase(cmd3)) {             Player p = (Player) sender;             if (p.getHealth() < 20) {                 p.setHealth(20);                 p.sendMessage(ChatColor.GOLD + "Healed succesfuly!");                 return true;             } else {                 p.sendMessage(ChatColor.RED + "You are already healed!");                 return true;             }          }         return false;     } else {         sender.sendMessage("Only for Players!");         return true;     }    }  }   MainClass:  public class MainClass extends JavaPlugin implements Listener{ private Commands commands = new Commands();  public void onEnable() {     getServer().getPluginManager().registerEvents(new MainHandler(), this);     getCommand(commands.cmd1).setExecutor(commands);     getCommand(commands.cmd2).setExecutor(commands);     getCommand(commands.cmd3).setExecutor(commands);   } }   Have cmd1 and cmd2 before that and they're working fine, problem with only cmd3 command.  in plugin.yml:  name: Survival main: survival.MainClass version: 1.1 commands:   fly:     description: Toggle flight mode     usage: /fly   feed:     description: Feeds player     usage: /feed   heal:     description: Heals player     usage: /heal   Tried all answers on stackoverflow, but nothing helped me


How to set GRUB timeout to 0 on Ubuntu 18.04

I tried to update my grub config file to timeout to 0 value, so OS starts quickly. I modified /etc/default/grub configuration file on my Ubuntu 18.04 and then ran:  sudo update-grub   and it didn't work. I also ran:  sudo grub-mkconfig sudo update-grub   but they didn't work.  I searched a lot on the web to solve this issue, but all guides say to run the update-grub command to update grub by /etc/default/grub config file. I don't know if is Ubuntu 18.04 that handles grub files in a different way, but I cannot update my grub with my parameters.  This is my /etc/default/grub file:  # If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: # info -f grub -n 'Simple configuration'  GRUB_DEFAULT=0 #GRUB_HIDDEN_TIMEOUT=0 GRUB_HIDDEN_TIMEOUT_QUIET=true GRUB_TIMEOUT=0 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX=""  # Uncomment to enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch required) and with any kernel that obtains # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"  # Uncomment to disable graphical terminal (grub-pc only) #GRUB_TERMINAL=console  # The resolution used on graphical terminal # note that you can use only modes which your graphic card supports via VBE # you can see them in real GRUB with the command `vbeinfo' #GRUB_GFXMODE=640x480  # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux #GRUB_DISABLE_LINUX_UUID=true  # Uncomment to disable generation of recovery mode menu entries #GRUB_DISABLE_RECOVERY="true"  # Uncomment to get a beep at grub start #GRUB_INIT_TUNE="480 440 1"


where does the term "integral domain" come from?

Self-explanatory title really! A student today asked me why they were called integral domains -- and I realised that the word "integral" seems to be being used in a way totally unlike any other way I hear it used in mathematics. The student suggested that "integral" was used because the integers were an example -- but I didn't buy this because by that logic they could have been called "rational domains" or "real domains".  Any ideas anyone?


What is the expectation of ‘the number. of coin flips until any string of 4 is repeated’, but each pattern can overlap?

I asked  but did not get a reply, I am very keen to know how its done.  I think I worded it poorly.  You can flip a coin unlimited times.  There are ($2^{4} = 16$) blocks of 4, eg. HHTT, HHHH.  What is the expectation of ‘the number. of coin flips until any pattern is repeated’, but each pattern can overlap?  So HHHHH , would count as (HHHH)H and H(HHHH)


I have read an , it's a review of a specific brand and model, but most of their reviews includes an expected "lifespan" of a lens.      ↓10↑: 10-year expected life before being thrown away.   If lenses after the lifespan should be "thrown away", then why is it that there are a lot of decades-old lenses that are still usable today? I wonder if lenses really have lifespan, is it a definite lifespan or not? What are its major contributing factors "before being thrown away". Does the quality (glass) really decreases after time?  Is it really definite that lenses after a specific lifespan should be "thrown away"?


Converting UK OS NGR coordinates to lat/long using ogr2ogr?

How do I convert UK OS NGR coordinates to lat/long using ogr2ogr?  I've read through the  page, but I can't see anything obvious on how to do it  I've used the FME trial and it was as simple as setting the target to WSG84  I've read  but this uses a 3rd party tool, NGConv.exe


I tried to upgrade from 16.04LTS to 17.10 and got this.    What have I done wrong?


Why didn't Cudgeon "Escape" the time stop in Artemis Fowl?

In the first book of the Artemis Fowl series, Fowl Manor has been placed in a magically induced time-stop, which theoretically traps anyone inside it at the time that it was started. Communication with the outside world is completely cut off, and a side effect on living creatures is that they can't fall asleep if they were awake when the stop started, and vice versa.   A major plot point towards the end of the book is that someone can force themselves out of the time-stop by taking sleeping pills. The change in consciousness essentially spits them out of the past (where time is stopped) and into the present. To people in the time-stop, those who have left seem to have vanished, as evidenced by Artemis's mother disappearing from security footage earlier in the book.  In chapter 9, there a bit of a political power struggle between two fairy officers, which ends with one of them (Acting Commander Cudgeon) being knocked out by a tranq dart. However, he doesn't appear to exit the time stop. Is there any explanation given (either in the books or other supplementary materials) as to why this is the case?


prove that if $N\lhd G$, $ M\lhd G$, $M\bigcap N=\{e\}$ so: $mn=nm , \forall n \in N,\forall m\in M$


Options For Deleting A Folder, Which Won't Seem to Delete?

I'm trying to delete a folder unsuccessfully. When I try to delete it or move it to the Recycle Bin, the following message appears:    As far as I can tell, it is not open in another program or window.  What options do I have for deletion of this folder ?


How or where does Linux determine the assignment of a network device? Specifically, wlan0 or wlan1 for wireless USB devices.  I plugged in a TP USB wireless a while ago, and it was assigned wlan0. I removed it. This week I plugged in an Edimax USB wireless device and it comes up as wlan1. I removed it today to try a second Edimax USB wireless device (I bought two) and now it comes up wlan2.  I know enough of Unix/Linux to know this is being configured somewhere, and if I delete the unused config file I can make the latest Edimax become wlan0. But how/where?


LAPTOP battery draining faster without overheating issue

I have a hp laptop with an AMD graphics card and I have installed Ubuntu 14.04 alongside my window 8.1. Under Ubuntu the laptop is quiet silent and smooth (no overheating) but the battery is draining very fast. It only last for one hour max. In windows it lasts for ~2.5 hours.


How to implement events through interface in C#?

I have a problem: imagine I have a plugin-based system.  I need some kind of interface with which I could catch events from every plugin, which implements for example IReporting interface.  (IReporting) object.OnSomeEvent += <.....>   But I can't find a way to do that.


GRUB menu not loading after restart from Windows

I accidentally restored BIOS on my dell Inspiron 5559 which was dual booting earlier with Windows 10 and Ubuntu-16.04. After restoring BIOS, GRUB got deleted which I repaired using boot-repair. I restarted the system and GRUB successfully loaded. I wanted to make sure that windows was okay, so I booted into Windows.   The problem arose when I restarted from Windows. GRUB was nowhere to be seen after restarting from Windows.


Let $\{a_n\}$ be a sequence of reals going to $0$ but whose series diverges. Prove that we can flip the signs of each term to get a convergent series

Suppose $\{a_n\}$ is a sequence of real numbers that converges to $0$ but whose series diverges. Show that for amy real number $r$ there is a sequence $\sigma_n$, consisting of $1$ and $-1$'s, such that $$\sum_n \sigma_n a_n = r$$.  I am confused about how to show this. Considering the partial sums, we can construct a sequence of partial sums such that the sum of first few terms (by making all of them positive) go just above $r$, and make the 'second' frw terms all negative so that the partial sums up to that point goes just below $r$, and continue the process. But I wasn't sure how to make this mathematically rigorous.


Should I transfer the money now and reapply?

I had applied for a visit visa (business) to appear for my PLAB 2 exam on 21 June 2019. I had to attend practice classes from an academy in Manchester for which I had attached the invitation letter; my duration was 15 days to prepare my exam in a better way. I had mentioned the cost of my trip to be £1500 and my brother sponsoring me for £3000 (my entire trip).  My rejection letter stated that I was going with my mother, when I had nowhere in my form or cover letter mentioned that I am going with my mother, because I was going alone. I had shown that my brother is my financial sponsor as I didn't have enough funds in my account. I had attested all the documents of my brother but somewhere in my form I made a mistake where I wrote the total money I have is £3000, but I had only £1200 in my account. I thought we had to write the total amount, so I put my brother's sponsor money, which was supposed to be £3000; he hadn't transferred it into my account, it was in his account only.  I made one more mistake in the form where they asked how much is the cost of travel to you personally. I wrote £1500 but I think I had to write nil there. I don't know how to proceed now. Should I transfer £3000 into my account from my brother's account and get a bank statement proving the source of income? I don't have enough money in my account despite being employed since Nov 2018 with a salary of £700 per month( currently having around 700£ in my account which is less than before)as I had to make some big transactions such as booking my PLAB 2 exam (£830£), etc.  I have already booked the exam for and I don't have much time left.


Print Numbers From 1 To n, Skip If You Have Digit K in It, What's Wrong With My Code?

x = int(input()) d = int(input()) def isDigitPresent(x, d):      while (x > 0):            if (x % 10 == d or x / 10 == d):              break         x = x / 10     return (x > 0)   for i in range(1,x+1):     if(i == d or isDigitPresent(i,d)):         continue     else:         print(i)


Example of absolute convergent series divergent

I have learnt that in complete norm space any series that is absolute convergent is convergent.  However, I am wondering is there any example of divergent series which is absolute convergent in that norm space.   Thanks


Windows File Explorer Not Displaying Desktop Correctly

My file explorer isn't showing the relationship of the Desktop shortcut with other shortcuts correctly.  As you can see here, "This PC," "Libraries," etc., are showing under "Desktop," which is not what I wanted. I'd like all the shortcuts above to be displayed at the outmost level. The only change that I've committed and relate is that I changed the directory of the desktop into this:  But I've done nothing other than I can relate to this problem. Can anyone please help? Thanks in advance.


How do I fix unsatisfied dependency and install Chrome in 13.10?

When I try to install chrome I get the error message  dependency is not satisfiable: lib32gcc1 (>= 1.4.1.1).    What do I do to install chrome (version 30.0.1599.101-1)?


I can't do anything in APT: "E:Type 'sudo' is not known"

I can't install anything or do anything without ubuntu giving me   E:Type 'sudo' is not known on line 1 in source list /etc/apt/sources.list.d/spotify.list E:The list of sources could not be read   I only want to install adobe flash.   How can I fix this?


I'm currently working with PostgreSQL and CartoDB to display X and Y coordinates converted to a geom. My shp files have been created and are displayed through CartBD.  When I try and run a map view, the points are displayed in relation to each other accurately, they're simply in the wrong position on a global map.    As you can see in the image, the points are there, but they should be within the bounds of Washington DC. The SRID's I have used are 4326, 2248, 2804, and 2893.  Some example points are below:   "blocksiteaddress" | "blockxcoord" | "blockycoord" "2516 - 2599 BLOCK OF NAYLOR ROAD SE" | "402548" | "133051" "10 - 199 BLOCK OF DANBURY STREET SW" | "399075" | "128889" "1700 - 1799 BLOCK OF I STREET NW" | "396480" | "137054"   Is there a method for obtaining or deciphering what ESRI/SRID code would best fit my data?


For $n\in \Bbb N$, find and prove a formula for $$\sum_{i=1}^n(2i-1)$$  How do I use induction to find a formula for it? I haven't not encountered any question like this in my textbook.


How to measure areas of features in OpenLayers plugin background maps correctly?

I can't figure out how to make areal calculations (eg. in km2). I have tried the 'field calculator', I have tried the 'measure area' function on the "attributes" toolbar, and i have tried fTools in the "Vector"-menu.  How I do:   Open Qgis Add Google Hybrid Layer (OpenLayers Plugin) Find tenniscourt (should be 200-260m2) Measure   attribute toolbar->measure area - result: 65.060 m² hmm? layer->new shapefile layer->polygon, save, "add feature" and drawing polygon. Then field calculator $area - result: 118.48828125 repeat with new shapefile - result: 4.05503328693158e-08  vector->geometric tools->export/add geometric columns = another random result    I can't figure out what I am doing wrong! For me it seems like there is some error in the program? I have tried saving the shapefile and opening it again in a "blank" project - same result - and new result every time?


Charts from numbers not dynamically updating in Pages/Keynote

I have the 2015 versions of Pages, Numbers, and Keynote on Yosemite.  I created a chart in numbers and then copied it to Pages or Keynote. I then want to be able to change the data in Numbers and see the chart updated in Pages or Keyonte. However, I don't see an option to "refresh".  Is there a way to dynamically link Numbers to Pages or Keynote?


Whats the difference between a pipeline operator and $()?

mint@mint-VirtualBox:/$ ls -l $(which cp) -rwxr-xr-x 1 root root 153976 Sep  5  2019 /usr/bin/cp mint@mint-VirtualBox:/$ which cp | ls -l total 1043228 lrwxrwxrwx   1 root root          7 Jan 21 15:09 bin -> usr/bin drwxr-xr-x   4 root root       4096 Jan 21 15:22 boot drwxr-xr-x   2 root root       4096 Jan 21 15:10 cdrom drwxr-xr-x  18 root root       4100 Jan 22 20:33 dev drwxr-xr-x 149 root root      12288 Jan 21 15:22 etc drwxr-xr-x   3 root root       4096 Jan 21 15:11 home lrwxrwxrwx   1 root root          7 Jan 21 15:09 lib -> usr/lib lrwxrwxrwx   1 root root          9 Jan 21 15:09 lib32 -> usr/lib32 lrwxrwxrwx   1 root root          9 Jan 21 15:09 lib64 -> usr/lib64 lrwxrwxrwx   1 root root         10 Jan 21 15:09 libx32 -> usr/libx32 drwx------   2 root root      16384 Jan 21 15:09 lost+found drwxr-xr-x   2 root root       4096 Jan  3 18:00 media drwxr-xr-x   2 root root       4096 Jan  3 18:00 mnt drwxr-xr-x   2 root root       4096 Jan  3 18:00 opt dr-xr-xr-x 162 root root          0 Jan 22 20:33 proc drwx------   3 root root       4096 Jan 21 22:21 root drwxr-xr-x  35 root root        960 Jan 22 20:38 run lrwxrwxrwx   1 root root          8 Jan 21 15:09 sbin -> usr/sbin drwxr-xr-x   2 root root       4096 Jan  3 18:00 srv -rw-------   1 root root 1068185600 Jan 21 15:09 swapfile dr-xr-xr-x  13 root root          0 Jan 22 20:33 sys drwxrwxrwt  15 root root       4096 Jan 22 20:38 tmp drwxr-xr-x  14 root root       4096 Jan  3 18:00 usr drwxr-xr-x  11 root root       4096 Jan  3 18:34 var mint@mint-VirtualBox:/$  Why do this two commands produce a different result? Thought the pipeline operator connects the output of one command with the input of a second one and since the output of which cp is the path of cp it should work or shouldn't it? Thx for your time in advance, greetings!


Save screenshot to clipboard and file, simultaneously

My question is simple enough1, depending on your generosity: the steps posed in the above linked thread are straightforward, except for one small point... I can't find the Service receives no input step in my MacOS Mojave install. I've opened Automator, but I just don't see where that option is. Actually, I can see it in the Quick Option screen, but not in the Workflow screen.   Thus, I think this is why I'm also unable to follow the below step:     Assign a shortcut, in System Preferences > Keyboard > Shortcuts > Services:  Screen Shot to Clipboard and File       ⇧⌘5    That is, I don't see anywhere in the Shortcuts window to edit an existing 'Services: Screen Shot to Clipboard and File' shortcut or add a new one with the same name.   Has something changed about Automator since the otherwise awesome answer to the above linked question was first posted?     1 I would've asked this in  but it's locked and not only am I new to Mac, I'm also new to StackExchange.


isomorphic groups related in direct product.

I want to prove that the direct product $G\times H$ of two groups has a subgroup isomorphic to $G$ and a subgroup isomorphic to $H$.  How I thought to prove is that taking a pair $(g,h)$ from $G\times H$ and then to show that for some $g$ in $G$ there is an isomorphism with the pair $(g,h)$ of $G\times H$. and the same for $h$ in $H$ also.  Is this method correct? Or should I try to show that there is a bijection between the groups and there exists an equivalence relation between the groups?  Please explain how should I proceed.


Book series in which a world is divided into zones and people get transfigured when going from the hub to a zone

Fairly certain it's from the 70s and that the author is American or British. IIRC, the first book starts with a very old man travelling to the place, and when he eventually goes through the portal to a zone which is when other people have been transformed, he comes out the other side, says "Oh, of course," and moves on.  Other people are transformed into   Walking trees that reproduce by getting bigger, developing a second brain and consciousness, and then splitting A centaur-like race   You have the sense that the world in question is both very old, and now neglected by its makers.  Could swear "world" was in the title, at least of the first one.


Possible proof that the universe can not have infinite mass?

I was thinking about the possibility of the universe having infinite mass, but then it occurred to me that it would then perhaps violate conservation of mass. Here is my thought process:  Assuming that "infinite" means an amount greater than any number, and  assuming that no mass can be created from nothing or become nothing,  this would mean that even if mass somehow disappeared from the universe, conservation of mass would not be violated due to the fact that $\infty - x$ is still $\infty$. This means that, at least mathematically, there wouldn't be a way to account for or "enforce" conservation of mass (or energy, either). Meaning that, the creation of any any mass from nothing and/or the disappearance of mass into nothing should theoretically not violate any conservation laws assuming infinite mass.  Is this a valid way to prove that the universe has finite mass? Does the universe have finite mass?  Regarding the possible duplicate question: The other answer doesn't quite suffice an answer to my specific question, in the sense that it addresses general relativity more than this specific "proof" or inquiry I had. If I hadn't received the current accepted answer, I don't imagine that I would have had my question answered in full.


I've been reading up on why the value of 0^0 is controversial (see ) and I wondered: is it possible for $i^i$ to have a value? I plugged it into a TI-83 calculator and it returned 0.2078795764 (!) How is this possible and why is the result a real number not a complex number?  Update I realize how to use Euler's Identity of $e^{i\theta} = \cos(\theta) + i\sin(\theta)$ and I understand the oldest answer's value of $\theta = \pi/2$ to solve for $i^i$, but doesn't this mean I can pick any odd multiple of $\pi/2$ (such as $3\pi/2, 5\pi/2$, etc.) as a value of $\theta$? Does that mean that $i^i$ is somehow "periodic" like the cosine curve is?


"Back" and "Install Now" buttons grayed out in 14.04 installer

The "Back" and "Install Now" buttons are grayed out in the 14.04 installer. How do I restore them?


Show that if the intersection is non-empty, then the union is connected of the following

Let $\{A_i\}_{i \in I}$ be a family of connected subsets of a metric space $X$ ($I$ is some set of indices). Show that if the intersection $\bigcap A_i \neq \emptyset$ , then $\bigcup A_i$ is connected.


If every Left Cosets of H are Right Cosets of H, show that H is normal in G

If H is a subgroup of a group G and if every Left Cosets of H are Right Cosets of H, show that H is normal in G   As per the question, consider a left coset $aH$ and a right coset $Hb$ such that $aH=Hb$, $a,b\in G $ and $a\neq b$.  If $a=b$ then H is normal in G, by the definition of normal subgroup.   My question is if $aH=Hb$ then does it imply $a=b$ always? Please answer


Partitioning an existing table into multiple filegroups

I am working on a SQL Server 2016 SP2 Standard edition server, with an in-house application that is 24/7 used in multiple locations across multiple countries. The current application has one database per Customer (company using the application and central server). Eventually, there will be hundreds of Customers with databases in this system.  There is also one "Central" database, which includes all archival data from all of the individual DBs. A customer Id value is used to keep all of the different data separated.   To speed access to archival data, and to simplify maintenance, the current plan is to partition this Central DB, with the appropriate by-customer tables partitioned into one partition per customer, each on a separate physical file in a separate DB partition.  However, this DB and the relevant tables are already in use in an unpartitioned way. I am researching what needs to be done to split things out into the desired data structures.  Example: There is a table (Orders) that includes CustomerID. The desire is to split this existing table so there is one Customer per Filegroup/file based on the CustomeId. The partitioning function, partitioning scheme, and other miscellany is simple enough to figure out. However, the only examples I can find for splitting a table across filegroups involve creating a new table. The documentation doesn't explicitly state that ONLY a newly created table can do this in partitioning, and some older articles I have read (SQL 2005 and 2008) say that you can't do this.  So, the final question: Other than by creating a duplicate table with the correct partitioning, migrating the data, and renaming the old and new tables, is there any way to partition an existing table into multiple different new filegroups / physical files?  Directions to examples for SQL 2016 (or 2012 if it can be done there or later) will be accepted as well.   TIA


Increments in \foreach loop with two variables, TikZ

I'm trying to draw a stack of arrows at different angles in a \foreach loop in TikZ.  I don't want to have to declare every z coordinate and angle manually so I was using the {1,2,...,10} syntax but this doesn't seem to work in the example below with two variables in the for loop.  \documentclass{standalone} \usepackage{tikz} \usepackage{tikz-3dplot} \usetikzlibrary{arrows} \usetikzlibrary{3d} \tikzset{>=latex}  \begin{document}  \tdplotsetmaincoords{90}{90} \tdplotsetrotatedcoords{0}{20}{70}  \begin{tikzpicture}[tdplot_rotated_coords,scale=0.5]  \foreach \x/\y in {7/0, 8/10, ..., 10/30} { \draw (2, 2, \x) circle(2) node[right]{\y}; \draw[->, ultra thick, red] (2, 2, \x) --++ (\y:2) --++ (\y+180:4); }  \end{tikzpicture} \end{document}   Does anyone know how to get around this?  The code above gives the error ! Illegal unit of measure (pt inserted).  Thanks.


How many complements are in "I blame him for the failure of the report"?

Complement means required by the head. How many internal complements are required in the below sentence?     I blame him for the failure of the report.   and is it possible to say "I failed the report"?


Show how you can add /home/<yourusername>/bin to the $PATH variable. Use $HOME (or ~) to represent your home directory.


xargs: Does `-n` and `-I` work with each other?

Input file a.in:  00 10 11   Command 0  cat a.in | xargs -n 1 echo   Output 0  00 10 11   Command 1  cat a.in | xargs -n 1 -I '{}' echo '{}'   Output 1  00 10 11   Why does -n 1 lose its effect in Command 1?  Version: xargs (GNU findutils) 4.6.0


Denseness of the set $\{ m+n\alpha : m\in\mathbb{N},n\in\mathbb{Z}\}$ with $\alpha$ irrational

How to prove that the set $\{ m+n\alpha : m\in\mathbb{N},n\in\mathbb{Z}\}$, ($\alpha$ is an irrational number) is dense in $\mathbb{R}$?   Using the fact every additive subgroup of $\mathbb{R}$ is either discrete or dense in $\mathbb{R}$, we can prove that the set $\{ m+n\alpha : m,n\in\mathbb{Z}\}$ is dense in $\mathbb{R}$. But how to prove the denseness of the above set?


Prove that $A =\{\omega\in\Omega: X(\omega)\neq Y(\omega)\}$ is a event of $\mathcal{F}$.

Let $X$ and $Y$ be $\mathbb{R}$-valued random variables dened on the same probability space $(\Omega, \mathcal{F}, \mathbb{P})$ and consider the subset of $\Omega$ defined by $A=\{\omega\in\Omega: X(\omega)\neq Y(\omega)\}$.   Prove that $A$ is a event of $\mathcal{F}$.


Prove that $\forall x,y>0, x^x+y^y \geq x^y + y^x$   A friend of mine told me none of the teachers in my school have succeeded in proving this seemingly simple inequality (it was asked at an oral exam last year). I tried it myself, but I made no significant progress.


Is it possible for an old question to get on the hot questions list?

We on  are in beta and we're always watching the hot questions list to see if one of our questions has made it into the hot questions list. Now we observed that it seems that only new questions are listed there.  So is it possible at all for old questions if they earn enough attention (votes and views) to get to the hot questions list? I'm talking about the hot list of all SE sites and not just the hot questions list of a particular SE site.


I am developing web application and i need to know the location of the user they connecting from  For example this website  it can detect my location and redirect me to sub domain  So, it's redirect to:      What is the best way to do that with PHP ?  PART TWO  How can i make it redirect to subdomain with country/city ? like the above example ?


Why was it considered "appropriate" to dispatch Buckbeak by beheading?

First of all, I've not read the book I'm only going off the film.  In the Prisoner of Azkaban, Buckbeak is sentenced to death with the sentence to be carried out by an executioner with a rather large axe. Given the seemingly large number of spells / curses / potions available to wizarding-types, why was such a crude and inhumane (not to mention messy) method of dispatching the animal used?


What is the coefficient of $x^{11}$ in the power series expansion of $\frac 1{1-x-x^4}$?    How do I do power series expansions?


Add indicator for the OP to show that someone is writing an answer

When someone is typing an answer, the OP (and only the OP) could view something like this:    This would tell me if someone was answering my question, and would be an indicator of whether I should hang around with the page open, or just close it and check later.    Related, not duplicates:      Because they suggest everybody could see a list - rather than just the OP and some animated bubbles.


Do interfaces really need to "look good"?

I notice that sites and software with less superficial value (less style, inspiration, or simply "neat-ness") often succeed far above their fantastically, well-designed counterparts.  Is the style, creativity, & inspiration side of interface design not equally important compared to the content, efficiency, & productivity side of interface development?    In other words, if the buttons are where they should be and I can understand everything that's going on, is it not important to focus on additional fancy style?  Examples:    Reddit vs Digg  Reddit:    Known globally to look terrible, used monthly by 112 million unique users.  Digg:    Looks great, used monthly by 20 million unique users.  Windows 7 vs OSX  Windows 7:    Looks alright, but known more for efficiency and compatibility than beautiful, smooth design. 500 million licenses sold.   OSX:    Looks fantastic, performs and interacts smoothly, but 'natively' incompatible with most of the world's desktop software. 50 million copies sold.


What does the review counter indicate when you have the 10k tools?

I have the 10k tools on a site (a private beta, so 1k), and when I got it, the review counter suddenly changed. It went from showing suggested edits to something else much larger.    What does this represent now? Note it isn't all queues together:


make background transparent in Adobe Photoshop

I have a simple image of a dragonfly that I downloaded from Adobe stock. I would like to place this image on another image of a pond, but the dragonfly image has a white background.   Some tutorial videos I have found online provide following steps to make a background transparent.  - Copy background layer of image with white background - select this new layer - use Magic Wand tool to select white background - hit Delete  I have done this and it does not work. I still have a white background on the dragonfly image.   I need to learn how to get these white backgrounds off of images. It comes up over and over in my work.   Any help appreciated, thanks.


How can I recover files from my damaged harddrive?

I have a very old hard drive, a 320 GB Seagate Barracuda 7200.12 , with some important office files on it which I need to recover. However, when I try to connect the hard drive as a second hard drive in a desktop, it does not work. Disk Management prompts to select a partition style, but I when I try to read what partition style the hard drive is using it does not give any information about the hard drive. When I choose either, I get the following error:     The request could not be performed because of an I/O device error.   The computer does detect the hard drive, though, which gives me hope there still is a way to get my files back. How do I recover data from the drive?


Fixed points under action of conjugate group elements

Lecture notes:  If $g$ and $h$ are conjugate then $fix(g)=fix(h)$. To see this, say $g=k^{-1}hk$  If $g.s=s \iff k^{-1}hk.s=s \iff h.(k.s)=(k.s)$  Me: I understand the last line- I just fail to see how it implies $fix(g)=fix(h)$  EDIT: As Ben S says I think there was a typo in the notes and they forgot modulus signs so- New Aim: show $|fix(g)|=|fix(h)|$


i have a modal form displaying a table created by calling a php form      function search()     {         xmlhttp= new XMLHttpRequest();         xmlhttp.open("GET","searchitem.php?id="+document.getElementById("stext").value,false);         xmlhttp.send(null);         document.getElementById("d1").innerHTML=xmlhttp.responseText;         document.getElementById("d1").style.visibility='visible';     }   searchitem.php creates table from the searched value.  i want to click  BUTTON in a row to select the values.  <script>     var table = document.getElementById('sTable');     for(var i = 1; i < table.rows.length; i++)     {         table.rows[i].onclick = function()         {              //rIndex = this.rowIndex;              document.getElementById("sitemno").value = this.cells[0].innerHTML;              document.getElementById("sdesc").value = this.cells[1].innerHTML;         };     }  </script>


Can I pass arguments to an alias command?

I want to know if I can pass an argument with an alias command.  for example:  alias d="dmesg|grep -iw usb|tail -5"    Now d will print the last 5 lines. If I want to use d to print a different number of lines, I have to make change in the alias command declaration of d again.  Is there any way I can modify the declaration of an alias so that I don't have to retype the declaration to change the number of lines. Like incorporating passing the number of lines as an argument while declaring alias for d? Or is there some other method to solve this?


Forge CBC-MAC by creating a new message, given the MAC of two messages

The question is quite similar to this one :  But I still cannot fully understand it, and here's my question:  given two messages with known MAC:  CBC-MAC(a||b)= x  CBC-MAC(d||e)= y So from the given messages, I am able to forge a new message like this:  CBC-MAC(a || b || (d XOR x) || e ) = y (which is just like the post I read). But how about if I want to forge the message like this:  CBC-MAC(a || b || c || d || e ) = z The "c" maybe is something calculated from those two messages and its MAC, but I am not sure about it. Is it possible to achieve this?


I'm trying to draw an under brace below some subscripts. The thing is that, if I do it the normal way, displays just fine, but with the subscripts letter a little big for a subscript. However, if I force the size, it becomes horribly spaced from the preceding text.  Here's the code I'm using for each case Preamble:  \ProvidesPackage{mystyle} \usepackage[spanish]{babel} %Idioma \usepackage[utf8]{inputenc} %Codificacion \usepackage[T1]{fontenc}    %Para que use las formas vectoriales de las fuentes %\usepackage{lmodern}       %Cambia Computer Modern por Latin Modern \usepackage{mathtools}      %Paquete matemático general \usepackage{commath}        %Funcionalidad matemática adicional, como por ejemplo, derivadas \usepackage{hyperref}       %Links dinámicos en los capítulos y demás \hypersetup{hidelinks}      %Configura hyperref \usepackage{siunitx}        %Notación científica y unidades \usepackage{cancel}         %Para tachar expresiones matemáticas \usepackage{graphicx}       %Importar imágenes   First case          \begin{align}  \varepsilon_{\underbrace{ijl\hdots}_{n \text{ índices}}} =  \end{align}    Second case  \begin{align}   \varepsilon_{\underbrace{\scriptstyle ijl\hdots}_{n \text{ índices}}} =  \end{align}    Here the outputs, respectively:      (Do not worry about the overfull to the right... I'm into that)


How to display highlighted text generated by user command properly?

I want to highlight some things to do or alternative words/phrases for future refinement in a draft.  I have tried to highlight text with \hl in soul package or \colorbox in xcolor package. But \colorbox is not able to detect line breaks automatically, while \hl always results in compilation errors when there are user commands.  I have tried to add curly braces around the user command, but it didn't work.  I have tried to use \mbox to wrap the command, but the result is the same as \colorbox.  \documentclass{article}  \usepackage{color} \usepackage{soul}  \newcommand{\reftab}[1]{\mbox{Table \ref{#1}}} \newcommand{\reftabb}[1]{Table \ref{#1}}  \soulregister{\reftab}{1} \soulregister{\reftabb}{1}  \begin{document}      \begin{table}         \caption{tab \label{tab1}}     \end{table}      aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaa \hl{{\reftab{tab1}}}      \noindent\makebox[\linewidth]{\rule{\textwidth}{1pt}}      aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaa \hl{\mbox{\reftabb{tab1}}}  \end{document}     The picture above shows that the highlighted text is out of margin (the width of the line is text width), is it possible to make it wrap properly?  Even with microtype package, the output is still not desirable.


I have a site which is multilingual. I need to target it for visitors from different countries, including United Kingdom and USA.  The problem is that if I make the main site for USA, and subdomain uk. for UK, it will contain the same content, and Google will treat it as a duplicate.  I want to also link my subdomains in a footer, like:  our site in spain, our site in english, our site for UK etc.   Will it help in this case or should I use some special meta-tags like <link rel="alternate" hreflang="..." href="..." /> to avoid actions from Google?  Or should I write different content for every english language version? (other languages' versions will be just translations from the main).


Found out that having higher level allows you to naturally find and catch higher level Pokemon. If I have level 23 Pidgey (for example) and enough candy to evolve. Should I evolve the Pokemon, or wait for a higher level Pokemon so that I get a better Pidgeotto?  Is there a balance to be struck between evolving vs holding out for better level?


How to set "Notify me of a new Ubuntu version" on command line

How can I switch on the option to be notified for a new Ubuntu version, which you usually find in      Dash --> System Settings --> Software & Updates --> Updates --> Notify me of a new Ubuntu version`   from command line to never?


How can I delete spaces before only text:  "          with spaces between"    I need:  "some text with spaces between"   All I have found it's text.replace(/\s/g, '') but it doesn't work well:  "sometextwithspacesbetween"   and indexOf(' ') + 25 also isn't good solve, because I have a different text and number of spaces before it.  If it possible, help me please