In a fresh install of Windows 10 Pro. When I drag a window a snap target position image is displayed. See image.    This is very frustrating as the image is often displayed under the place where I want to place the window. The affect being that the window is therefore snapped and not placed where I intended it to be.  How do I disable this?  To be clear I don't want to disable snapping altogether just the annoying destination image underlay  UPDATE  I do not have the option to "Allow the system to suggest companion windows when using Snap"


Is there an easy way to uninstall an update to Thunderbird in Ubuntu 13.04?


Practical description of LOESS and smoothing splines?

I understand roughly that LOESS is a smoothing procedure that uses splines to interpolate data. However, I also know that outlier removal is a large problem with LOESS. I was trying to estimate a non-linear probability for a rare event with an exposure which I expect to take a quadratic form (bathtub shaped hazard). The smoothing spline that I obtain in R from calling smooth.spline gives me the "probability bump" that I expected to see, but LOESS does not. It makes sense if outliers are discarded: for rare events, positive cases will always be an outlier.  I am curious what the difference is between these methods. In particular: with smoothing splines, how do we choose the number and location of breakpoints as well as the polynomial degree of the spline? Also how does LOESS select outliers for removal? And what do the bandwidth arguments control in the function?


Nested element not centering with siblings

In the snippet there is a down arrow: #arrowDown. I am struggling getting this arrow to be placed centered, under the title and subtitle. I ma using the class .total-center to center the title and subtitle and then put the arrow's wrap within this centering div.  Does anyone see why #arrowDown isn't centering both vertically and horizontally like the other items?    .total-center {  text-align: center;  position: absolute;  top: 50%;  left: 50%;  -webkit-transform: translate(-50%, -50%);  transform: translate(-50%, -50%);  width: 100%; } #solMain {  width: 100%;  height: 100vh;  background: red;  background-repeat: no-repeat;  background-size: 100% 100%;  position: relative; } #solMainTitle, #solMainDesc {  color: #FFF;  text-shadow: 2px 2px #242424;  line-height: 1.5em; } #solMainTitle {  font-family: 'Muli', sans-serif;  font-size: 1.7rem;  font-weight: 800;  text-transform: uppercase;  margin-bottom: 50px; } #solMainDesc {  font-family: 'Nunito', sans-serif;  letter-spacing: .2rem;  font-size: 1rem; } #arrowDownWrap {  cursor: pointer;  width: 25px;  height: 25px;  position: relative;  text-align: center; } #arrowDownWrapInner {  bottom: 40px;  position: relative; } #arrowDown, #arrowDown2 {     border: solid #FFF;     border-width: 0 3px 3px 0;  width: 25px;  height: 25px;     display: block;     padding: 3px;  -webkit-transform: rotate(45deg);transform: rotate(45deg);  -webkit-transition: all 0.5s;transition: all 0.5s;  position: absolute;  top: 0;  left: 0; } #arrowDownWrap:hover #arrowDown2 {  -webkit-transform: translate(0,40px) rotate(45deg) ;transform: translate(0,40px) rotate(45deg);  -webkit-transition: all 0.5s;transition: all 0.5s; }

Title Text
   Subtitle text


Speed of light is different for different colours. What does the speed of a particular colour of light depend on? Which colour of light has the highest speed?


Issue with join after concatenating many rows into a single text string unique entries Microsoft SQL Server?

Consider a database with 3 tables holding names, with three rows:  names  ID,Name 1 , Eugene 2 , Igor 3 , George   rooms  ID, Roomnumber, Bednumber 1 , 10 , 1 1 , 15 , 1 1 , 10 , 2 2 , 5  , 1 2 , 3  , 1   Is there any way to get roomnumbers into single string with unique items only (can be separated by space or comma etc? So result will look something like this  ID, Name   , Roomnumbers 1 , Eugene , 10 15 2 , Igor   , 5  3 3 , George ,    I had no problem doing select from single table into same row, but I am having problem joining this tables together with distinc. Using samples that I found here the best I ever get is   ID, Name   , Roomnumbers 1 , Eugene , 10 10 15 2 , Igor   , 5  3 3 , George ,    The solution was   SELECT      distinct t1.ID, t1.Name,      SUBSTRING((SELECT ',' + CAST(t2.Roomnumber AS VARCHAR(10))              FROM (SELECT DISTINCT ID, Roomnumber FROM Table2) t2            WHERE t2.ID = t1.ID             ORDER BY t2.ID, t2.Roomnumber            FOR XML PATH ('')        ), 2, 100) [Roomnumbers] FROM Table1 t1   Thank you very much. I was trying to join and that was wrong and too complicated way to go around it. Thank you


Can you say "everything is good" as well was "everything is well"

Is it grammatically correct to say "everything is good"? And why is "everything is well" correct? Isn't "well" an adverb?  Edit: I'm looking for an answer for this phrase specifically.


When using the volume buttons (+, -, mute) there is no reaction, neither on laptop keyboard nor on USB keyboard. No popup, no volume change, and no sound indication.  Volume control with the mouse works fine.  The buttons are working and get recognized:  Checked with keyboard system settings tool: they get recognized by the tool both from the laptop directly as well as from my USB keyboard.  Who can help?


If you are log out of the guest. All the contents of your hard disk will be deleted

Ubuntu permit access to the hard drive in case of unavailability put. After restarting the computer, I am able to login using your username. I arrived as a guest. Unfortunately, the message was shown the exit if the guest user, all your hard drive data to be erased. Please help me.


I'd like to swap the controls for pan and orbit essentially so it's like AutoCAD where middle mouse click goes to pan and shift middle click is orbit. Where's the best place to suggest this as a feature add?


Does anyone know a closed form expression for the Taylor series of the function $f(x) = \log(x)$ where $\log(x)$ denotes the natural logarithm function?


R2-D2 has an intact memory of the events of the prequels. He should be aware of what Yoda looks like, and probably has met him.  So why did R2-D2 attack Yoda?


How do I arrange a private mortgage between myself and a trusted individual?

I live in the UK. Specifically, how do I draft a loan agreement that provides basic safeguards for borrower and lender (very basic safeguards, as we're talking about an intra-family loan and the level of trust is very high), and also satisfies tax requirements so that it doesn't look like the lender is gifting the principal at a non-commercial rate.  The  appears ideal, but about.com appears to be US-centric and I can find no evidence that Virgin Money actually offers such a product.


Using DC current to operate a fish feeder that takes 2 AA batteries

I'm a complete electronics newbie.   I have a auto fish feeder that takes 2 AA (1.5V) batteries. After changing the batteries quite often I got curious to find out if the feeder can be modified to run using the electricity at home. Some research led me to find these:    The AC current has to be converted to DC An adapter is needed that converts 220V AC to 3V DC  I need a multimeter    So I looked around and found an adapter at home which says: Output:3VDC 1000mA 3VA. I actually have no clue what that means but I'm guessing that it will output the 3V required to run the auto feeder.   Bought a multimeter and used it to measure the output of the adapter. I was expecting to see 3.00.   Nope. I'm getting a reading of 6.46 every time.   So this is my question - is it OK to go ahead and wire the adapter to the fish feeder despite the higher reading? Will everything magically work or something is sure to blow up? Will adding some register help? I would've gone ahead to find out  if the feeder was available in my Country. I imported it from the US so I don't want to mess it up.   Could you guys please give me advice on how I can accomplish what I'm trying to do?  I'm totally ok to start from scratch.    EDIT: As for the adapter, it's from an electric shaver and this is how it looks:


SQL Server JOINS: Are 'JOIN' Statements 'LEFT OUTER' Associated by Default in SQL Server?

I have about 6 months novice experience in SQL, TSQL, SSIS, ETL.  As I find myself using JOIN statements more and more in my intern project I have been experimenting with the different JOIN statements.  I wanted to confirm my findings.  Are the following statements accurate pertaining to the conclusion of JOIN statements in SQL Server?:  1)I did a LEFT OUTER JOIN query and did the same query using JOIN which yielded the same results; are all JOIN statements LEFT OUTER associated in SQL Server?  2)I did a LEFT OUTER JOIN WHERE 2nd table PK (joined to) IS NOT NULL and did the same query using an INNER JOIN which yielded the same results; is it safe to say the the INNER JOIN statement will yield only matched records? and is the same as LEFT OUTER JOIN where joined records IS NOT NULL ?  The reason I'm asking is because I have been only using LEFT OUTER JOINS because that is what I was comfortable with.  However, I want to eliminate as much code as possible when writing queries to be more efficient.  I just wanted to make sure my observations are correct.  Also, are there any tips that you could provide on easily figuring out which JOIN statement is appropriate for specific queries?  For instance, what JOIN would you use if you wanted to yield non-matching records?  Thanks.


Where can I ask questions about IT architecture?

I have a number of specific questions regarding the design of a high write throughput data ingestion stack into a highly relational database.   Where can ask high level software architecture questions on Stack Exchange sites relating to this project?


How to secure a php connect file with database passwords

I want to know how to secure a php file that has the database connect passwords  (info).   Currently I have just saved the file as connect.php because it is stored locally but now I need to upload the application and make it live.


$M^2<N^2$ if $M,N$ are two positive definite matrix

If $M,N$ are two positive definite matrix st. $M<N$, is that true that $M^2<N^2$?


What's the difference between "That is not good" & "That is not well"? In what context each expression should be used?

What's the difference between "That is not good" and "That is not well"?  In what context should each expression be used or does it not make any difference?   Example:      That's not good. He should do the right thing.   and      That's not well. He should do the right thing.


Nielsen & Chuang Exercise 2.2 - “Matrix representations: example”

Reproduced from Exercise 2.2 of Nielsen & Chuang's Quantum Computation and Quantum Information (10th Anniversary Edition):     Suppose $V$ is a vector space with basis vectors $|0\rangle$ and $|1\rangle$, and $A$ is a linear operator from $V$ to $V$ such that $A|0\rangle = |1\rangle$ and $A|1\rangle = |0\rangle$. Give a matrix representation for $A$, with respect to the input basis $|0\rangle, |1\rangle$, and the output basis $|0\rangle, |1\rangle$. Find input and output bases which give rise to a different matrix representation of $A$.   Note: This question is part of a series attempting to provide worked solutions to the exercises provided in the above book.


What does an infinite AIC mean and what can be done about it?

I have a question about performing stepwise regression. I realize that there are issues with using stepwise methods, but I have about 30 or so predictors and have constructed an lm object.  m1 <- lm(LEADSforester ~ . , data=dat) m2 <- lm(LEADSforester ~ 1 , data=dat) step(m1, m2, direction = "backward")   However, when I run the following line of code, I get an error message.  backBIC <- step(m1, direction="backward", data=dat)  Error in step(m1, direction = "backward") :    AIC is -infinity for this model, so 'step' cannot proceed   The same problem occurs when I run the following:  m1 = lm(LEADS ~ ED + Fa + Pu + New + Gr + Vol + Dur + Boun + Visit + views + Nw +                  Uniq + sits, data=dat) step(m1, direction="backward")  Error in step(m1, direction = "backward") :    AIC is -infinity for this model, so 'step' cannot proceed   What am I doing wrong?


Please, can you help me to find the limit of the example  where n goes to infinity ?


Are there physical reasons for breaking this symmetry in biological systems?

For some reasons, it seems that particular "handedness" are chosen by nature, because we have the prevalence of some , that have different optical properties respect to polarization. In nature L-amino acids are prevalent respect to D-amino acids and D-glucose are prevalent respect to L-glucose. Is this breaking of symmetry a poor accident, in both distinct cases, or could there be a deep physical reason that caused it to evolve?


Can't install Ubuntu anymore, no caching found

Lately, I was playing with Ubuntu distributions and wanted to try another version. I was trying to make an bootable USB on Ubuntu 16.04 and got some errors that /boot/uefi is out of space. I searched how to clean it, but I think I deleted more than I should have done. I managed to make a bootable USB with Mac OS X, but when I tried to reboot from USB, I  got this.  [    1.070715] nouveau 0000:01:C0.0: priv: HUBO: 10ecc0 ffffffff (1C40822c) [    3.378413] sid 3:0:0:0: [sdc] No Caching mode page found [    3.378453] sid 3:0:0:0: [sdc] Assuming drive cache: write through  BusyBox v1.22.1 (Ubuntu 1:1.22.0-15ubuntu1) built-in shell (ash)  Enter 'help' for a list of built-in commands.  (initramfs) mount: mounting dev/loop0 on //filesystem.squashfs failed: Invalid argument  Can not Mount /dev/loop0 (/cdrom/casper//filesystem.squashfs on //filesystem.squashfs   Now I'm stuck without any functioning OS again.  I also made a hash sum check to make sure I got the right file. If there's a way to make a cache folder or something like this, I'll try it out.


Cartoon Movie about a big robot that help fight aliens

It starts off with an alien abduction, not sure but might be the parents of the protagonist. I remember the main character being maybe 16 years old as he is riding a motor cycle and playing Football (american). There are other protagonist that each fly in a separate spaceship that can assemble to one big one. They have a big robot that is stored under water. I believe it is red and white but not sure. I remember it had a Typhoon attack. Can anyone identify this?  EDIT: to add some more information, I watched it on VHS, not sure the release date but guessing before 1990. I'm guessing it is from america. The characters are all white I believe.   There were one girl and 4 boys as main characters. they were wearing different colors. The protagonist was wearing red and I think the leader of the gang was blue. A scene: the protagonist was playing football but suddenly he left the court and drove off in a motorcycle, think he got a vision or something that made him leave.  Another scene/plot: I remember the protagonist leaving the rest of the gang to go and do something by himself but got scolded by the leader since they can't fight as well with only 4. Can't remember a ton about the aliens, but I think they had big green buildings that was a half sphere sticking out of the ground and had a green beam they used to attack with.


No meromorphic function dominates another meromorphic function?

It is well known that  "genuinely different" entire functions cannot dominate each other. More precisely, let $f$ and $g$  be entire functions in $\mathbb{C}$ satisfying  $|f(z)|\le |g(z)|$ for all $z \in \mathbb{C}.$ Then $f=Cg$ for some $C\in \mathbb{C}.$  I'd like to know the result for meromorphic functions similar to the above result for entire functions.  Please let me know if you have any comment about this question. Thanks in advance!


How to give a medicine with really bad taste

My 4 year old daughter recently have scarlet fever. It seems antibiotics are non-negociable for it, and since she has great chance of being allergic to Penicillin, there is only one antibiotic she can get. It is not the first time we have to give it to her, and probably not the last time.  Apparently, that medicine tastes really REALLY bad. She cries a lot, panics every time we say it's time for this medicine, and vomit it most of the time, resulting in even more medicine being force into her mouth.  It is only this medicine that causes problem. She does not tantrum for other medicine, and most of them, she can take the dose we give her all by herself.  We tried reassuring her, explaining why it is mandatory to get it, explaining it will make the scarlet fever go away. We tried mixing it into other food (which seems clearly worse, taste-wise). We tried asking her to take her herself. It seems we tried everything, and the only thing that achieve it for the moment is actually forcing it into her.  We really do not want to force her in any way. Her mother cried yesterday because we had to force her, and we need to do it twice a day. It is very exhausting, and we would welcome any input or new ideas on how to give her this really bad tasting medicine to her.  EDIT : For clarification, it is a liquid medicine that is administrated with a syringe. It seems there are no alternative, although we will check with the doctor again (particularly if pills are available)


Just thought about this:  What will happen if you cast a Vanishing Charm to a human? Will they to end up in "nothingness"? If that is true, then why was it not an unforgivable curse?


Are nuclear weapons simply non-existent in the Star Wars universe?

The resistance is attacks the Starkiller Base with what appears to be pretty small time ammunition even by modern earth missiles, which requires a long running sequence of repeated flybys.  The objective, IIRC was to destroy a critical piece of machinery on the surface which would then destabilize the entire planet/weapon (feel free to correct in edit if I remember incorrectly).  OK cool, but then why the force wouldn't they just drop a nuclear bomb on it?  Have nuclear weapons been used any other time in Star Wars (including EU), or, like smart phones, have they just not been invented in that world?


Age of the universe versus absolute time

In Wikipedia, the age of the universe is defined as the "time elapsed since the Big Bang" while "time" links to "the cosmological time parameter of comoving coordinates" which itself links to "the elapsed time since the Big Bang according to a clock of a comoving observer", the latter being defined as "the only observer that will perceive the universe, including the cosmic microwave background radiation, to be isotropic".  Meanwhile, we also find in Wikipedia: "The theory of relativity does not allow the existence of absolute time because of the nonexistence of absolute simultaneity. Absolute simultaneity refers to the experimental establishment of coincidence of two or more events in time at different locations in space in a manner agreed upon by all observers in the universe."  While both makes sense to me, I feel like a contradiction between them in the sense that the age of the universe for the comoving observer located where and when an event occurs could be considered as the absolute time at which this event occurs. Indeed, such a definition of time would probably be impossible to implement in practice due to measurement uncertainties. However, it could be used in principle to define in which order two events actually occur in a way on which all possible observers should agree.  So, what did I miss and how can we reconcile these two points of view?


Over what period of time do the events in “The Force Awakens” take place?

Title says it all: With regards to the the on-screen actions and events that encompass “The Force Awakens,” they transpire over what span of time. Was it a day? A few days? Is there any canonical information on this?  To me it seems like the events began at night on one day and simply—then maybe—spread out to possibly 2-3 days total but nothing longer than that.  For those who don’t know—like me a few hours ago—time measurement in the Star Wars universe is based on the  and is similar to our measurement of time on Earth:     The Coruscant solar cycle was 368 days long with a day consisting of   24 standard hours.   And more specifically towards time measurement:   60 seconds = 1 minute 60 minutes = 1 hour 24 hours = 1 day 5 days = 1 week 7 weeks = 1 month 35 days = 1 month 368 days = 1 year 10 months + 3 festival weeks + 3 holidays = 1 year


ubuntu boot stick black screens, what should i do?

Hello i got the problem that the Ubuntu live Stick black screen after starting.


I have a MySQL database that is almost is in English but I want to accept all foreign language character sets. Someone submitted a form in Japanese and this came in:  åã¶ã¾ã‚€ã˜è·æ¨©ã‚·ã‚«ãƒ¦å…·å´æ¨©ã›æ±ºæ—©ãƒ   How can I make it so all language characters are stored properly?  My MySQL DB is set up as: InnoDB, utf8mb4, utf8mb4_general_ci  I am using PDO:  $conn = new PDO("mysql:charset=utf8mb4;host=$servername;dbname=$dbname", $username, $password);   and I am using this PHP to call the header:  $header_text = 'Content-type: text/html; charset=utf-8'; header($header_text);   It is sending emails out correctly, just not storing the data in MySQL correctly.  Thanks


I have written this code and I wanted to know why the value of the object being referenced is not being changed  All calls in java are call by value. But when the call refers to the same object , why is the object not being updated  class Main {   public static void main(String[] args) {     Integer n = 3;     triple(n);     System.out.println("Hello world! " + n);   }   public static void triple(Integer x)   {     x *= 8;     System.out.println("Hello world! " + x);   } }   Actual output  Hello world! 24 Hello world! 3   But I thought that output should be   Hello world! 24 Hello world! 24   Is it so because of the unboxing and autoboxing for the Integer class that a new object is created with the same name as 'x', because Integer is immutable that is locally available and which does not point to the argument/ the object being passed - n.


How to fix "Referenced assembly does not have a strong name" error

I've added a weakly named assembly to my  project (which is strongly named). I'm now getting the error:  "Referenced assembly 'xxxxxxxx' does not have a strong name"  Do I need to sign this third-party assembly?


given a continuous function from $f:\mathbb{Q}\to \mathbb{Q}$

Given a continuous function from $f:\mathbb{Q}\to \mathbb{Q}$ there exists a continuous function  $g:\mathbb{R}\to \mathbb{R}$ such that g restricts to f on $\mathbb{Q}$  I could think of one example which cannot be extended namely $f(x)=1\ if\ x> \sqrt{2} $ and $f(x)=0\ if\ x< \sqrt{2} .$   I am interested in knowing more examples. I am looking for different kind of examples other than mine. The reason why my example works because the left limit and right limit of $f$ at $\sqrt{2}$ do not match. Are there different kinds of examples which exploit some other property of discontinuous functions or of totally different nature?  gives only one example I am interested in knowing other examples and is there any clasification of such examples?


I am trying to get user device information(device type, IP address....) in lwc but I could only find FormFactor (import FormFactor from "@salesforce/client/FormFactor" by which I can only get device size. Can anyone please help me in this?


Running .exe files (absolute newbie question, sorry)

I have an old computer and decided to play with it. No IT background, just user experience.   I am using computer -extensively- (10+ hours every day).   I dedided to try Linux - Ubuntu (as a newbie friendly version of Linux).  However I struggle to launch crucial software, which is Office 365, UiPath robotic process automation software, Teachmaster vocabulary software, local accounting software from my country among others.   This is a serious issue for me and I dont believe Ubuntu hasnt solved it over the years. I googled a lot and after two days decided to ask here, because Ive found some workarounds like using LibreOffice instead of 365 (but I dont want to switch because of many reasons), I run process automation in UiPath daily, same with accounting soft.   Is there any way how to run those programs? I dont consider Wine (they dont support my soft) or VirtualBox an option (whats the point of switching to Ubuntu if I need to run Windows all the day inside it?)  Please help, because I could not find anything reasonable on the web and I just simply cannot believe that Ubuntu is unable to run omnipresent .exe format.   Thank you a lot.


How does Windows do case-insensitive file names and paths?

On Windows, file comparisons are case insensitive operations. However, a truly case insensitive system would be sensitive to locale settings, and would have to deal with three cases, rather than two (at least, according to Unicode). For various reasons, I'd like to replicate the way Windows does this outside of Windows, if possible.  Does Windows use this kind of locale support, or does it follow a more predictable pattern (e.g. somewhat like C#'s OrdinalIgnoreCase settings)?


I have a question about getting the length of an array in C. I always get the result 1. This result probably comes from the fact, that int is 4 bytes big, and 4 / 4 = 1. So the problem is that I dont get the size of the whole array, only of a single value in it. Here is my code:  #include <stdio.h>  int getArrayLength(int array[]);  int main() {     int myArray[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};     printf("Length of array is: %d", getArrayLength(myArray));      return 0; }  int getArrayLength(int array[]) {     int size = (int) sizeof(*array) / sizeof(array[0]);     return size; }   Maybe someone can help me fixing my problem. Thank you^^


How to see joins (one-to-many) in the QGIS 2.18.14?

I made a join with two tables - one to many.  territories and roads. Meaning, one territory have many roads.   territories -> 98 territories/features roads -> 529 roads/features  So, in the territories, properties, made a join:    But in the attribute table I still see only 98 territories. Shouldn't see more than 98? Shouldn't see another rows for the related roads...?


Are private, public, protected modifiers still essential in Java?

With the introduction of Reflection API we now can freely access any private fields as we wish.   For example :   Field f = obj.getClass().getDeclaredField("stuffIWant");    So now, what if we eliminate all modifier and set a common rule for Java developers to not access field directly but via getter/setter ? Obviously one can violate the rule but even if we have modifiers, we can still access them without using modifiers.


how to check if the first line of file contain a specific string?

I need to write a shell script that find and print all files in a directory which starts with the string: #include. Now, I know how to check if a string is in the file, by using:  for f in `ls`; do     if grep -q 'MyString' $f; then:         #DO SOMETHING     fi   but how can I apply this to the first line? I thought to maybe create a variable of the first line and check if it starts with #include, but I'm not sure how to do this. I tried the read command but I fail to read into a variable.  I'd like to hear other approaches to this problem; maybe awk? Anyway, remember, I need to check if the first line starts with #include, not if it contains that string. That's why I found those questions:   they are not completely helping.


I can't find my .minecraft folder (windows 10 minecraft edition)

I have tried %appdata%\.minecraft but it isn't there! Where can I find my save files?


How to recover a village linked on the same Gmail address?

When I started playing I got through TH3 and linked it to my Gmail account, but then I realized I was spending a lot of gems with that village and wanting to create another account. What I did was I uninstalled the client and re-installed it again and create another village and got through TH6 and tried to link it on the same Gmail account but it's asking me if I want to load my previous account which has TH3 which I did and now I can't go back to my TH6 village.  If anybody could help me with this one, that would greatly appreciated!


how to make keyboard shortcuts work while in another language

Is there a way to make standard keyboard shortcuts (e.g. Ctrl+C for copy or Ctrl+A for select all) work while the input language is not than English?  For example, while writing in Word on Windows you can still do Ctrl+A even if you're in another language, even in right-to-left languages such as Hebrew. However on Libre Writer on Ubuntu it seems that you have to switch back to English, then do a shortcut, then switch back. That's kind of not short for a shortcut...


Where to place currency symbol when localizing and what to do with odd symbols

Is there a suggested, single location to place the currency symbol every time for any given locale?  For example, always on the left with a space before the amount like this:  R 10.00 $ 10.00 € 10.00 ¥ 10.00   Is this acceptable even in instances when the currency symbol is usually placed to the right of the amount, or should you keep track of the placement per locale?  Also, what is the best way to handle currencies with odd unicode characters when you plan on targeting devices that don't support the displaying of these characters? Do you default to using the three letter international code? If you do then do you still obey left-or-right placement or can you place all on the left?


Split 32-bit LFSR into two 16-bit LFSR which xor to same sequence

Today I was thinking about exactly this.   Is it possible, for a 32-bit LFSR e.g.  x^32 + x^30 + x^28 + x^26 + x^22 + x^21 + x^20 + x^16 + x^14 + x^12 + x^10 + x^8 + x^7 + x^6 + x^2 + x^1 + 1   to generate two 16-bit LFSR which xor to each other generate the 32-bit sequence?    edit: my wording wasn't exactly  there is a LFSR sequence with a known plaintext of 64 bit e.g.   1010111000000011 1111001010111001 0001010011010111 1001001111101101   it is known that this LFSR is built upon two 16bit LFSR which xor together give the same sequence as the LFSR above.  is it possible to generate the two unknown 16bit LFSR?  technically you have many lineary connections,  for example you know either the first bit in the first LFSR or the first bit in the second LFSR is 1


Topology and geometry books for particle physicists

What is the best book covering basics of topology and geometry for particle physics  graduate student who wants to go deeper into gauge theories and string theory? I am looking for something which is not horribly rigorous and verbose.


Where can I see beatifully formated online man pages?

I find the terminal man pages hard to read. I tried some online versions, but all cases I've seen are also hard to read because of poor formatting. Do you know where can I read modern, beautifully formatted, online man pages?


I have a bivariate normal distribution  $$f(x,y)=\frac{1}{2\pi \sigma_{1}\sigma_{2}\sqrt{1-\rho^{2}}}\exp\left(-\frac{z}{2(1-\rho^{2})}\right) $$  where $$z=\frac{x^2}{\sigma_{1}^2}+\frac{y^2}{\sigma_{2}^2}-\frac{2\rho xy}{\sigma_{1}\sigma_{2}}$$  Is there a simple way to calculate way to calculate the standard deviation of the difference (x-y) ?


In The Lord of the Rings films, Sauron has an army he is controlling to do his bidding.  But he is only a great big eyeball.     So how can he tell them what to do?


Regex, Excluding a in between word while grouping

I want to parse a string like this - "The time is 12-jan-20 12:11:32.1112 AM"  I used this regex to group the timestamp = (?s)^.?(?:\s|^)?(?<time>(?<!\d)(?:0?\d[012]?)(?:-|:|\.)[0-5]\d(?:-|:|\.)[0-5]\d.*(?:a|A|p|P)(?:m|M))  Refer -   The group 'time' contains 12:11:32.1112 AM. But I don't want the millisecond value(.1112) in the group.  I want to group the string as 12:11:32 AM  Is it possible to exclude it while grouping with regex?


Set framerate of movie (mp4, no audio) without reencoding

I have a video only (no audio) file in h264, mp4 format with 25 FPS and I would like to just set the framerate up to 30 without reencoding the video. Source file: ffprobe 25fps.mp4  ffprobe version 4.1.4-1build2 Copyright (c) 2007-2019 the FFmpeg developers   built with gcc 9 (Ubuntu 9.2.1-4ubuntu1)   configuration: --prefix=/usr --extra-version=1build2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared   libavutil      56. 22.100 / 56. 22.100   libavcodec     58. 35.100 / 58. 35.100   libavformat    58. 20.100 / 58. 20.100   libavdevice    58.  5.100 / 58.  5.100   libavfilter     7. 40.101 /  7. 40.101   libavresample   4.  0.  0 /  4.  0.  0   libswscale      5.  3.100 /  5.  3.100   libswresample   3.  3.100 /  3.  3.100   libpostproc    55.  3.100 / 55.  3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '25fps.mp4':   Metadata:     major_brand     : isom     minor_version   : 512     compatible_brands: isomiso2avc1mp41     encoder         : Lavf58.20.100   Duration: 00:00:04.96, start: 0.000000, bitrate: 15858 kb/s     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709/unknown/bt709), 1920x1080 [SAR 1:1 DAR 16:9], 15854 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)     Metadata:       handler_name    : VideoHandler  Expected output: [...] Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '30fps.mp4':   Metadata:     major_brand     : isom     minor_version   : 512     compatible_brands: isomiso2avc1mp41     encoder         : Lavf58.20.100   Duration: 00:00:04.13, start: 0.000000, bitrate: (approx. 19000) kb/s     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709/unknown/bt709), 1920x1080 [SAR 1:1 DAR 16:9], (approx. 19000) kb/s, 30 fps, 30 tbr, 15360 tbn, 50 tbc (default)     Metadata:       handler_name    : VideoHandler  What I could acchieve so far is either:  creating a file with 29.86 FPS without reencoding (following this post ) creating a file with 30 FPS with reencoding (ffmpeg -i 25fps.mp4 -r 30 -filter:v "setpts=PTS/1.2" 30fps.mp4)  Both is not what I wanted. Any suggestions? I thought/expected this should be as easy as "man, play this at 1.2 speed, thanx" EDIT: Solved as stated in the comment. Had to try some values arount 5/6 until I found it: ffmpeg -itsscale 0.832 -i 25fps.mp4 -c copy 30fps.mp4


If the Nazgûl are neither dead or alive then would it really matter to them if they were set on fire? I'm talking of when Aragorn fights the Nazgûl in the film when Frodo is stabbed.


Which version of ubuntu is compatible with my hardware?

I am using an old millennia desktop - here are the specs:   Cpu: Pentium III  866.4 MHz L1 Cache: 16K 8097 MB/s L2 Cache: 256K 3686 MB/s L3 Cache: none Memory: 320M 343 MB/s Chipset: VIA Apollo Pro/133/133A   I am trying to install 11.10 server because that is the latest non DVD operating system. However when i try it only gives me a blank screen and the 'Caps lock' and 'Scroll lock' keyboard lights flash.  I looked at the 11.10 requirements and it says I only need:  Ubuntu Server (CLI) Installation   300 MHz x86 processor 128 MiB of system memory (RAM) (256 MiB for a virtual installation) 1 GB of disk space Graphics card and monitor capable of 640x480 CD drive   what did i miss?


My screen got broken, how to see on the computer what I'm doing in my device?

My Android device screen got broken and I can't see what I'm doing. That's the only wrong thing with my device, the rest is apparently working OK. Is there any way to send my device screen to my computer? I don't want to work blindly anymore!


Should I use 'or' or 'nor' after a negative statement?

This document does not cover the SDK interfaces nor any other reference material.   I think the above is correct, but my grammatical checker in Microsoft Word underlines nor and suggests or. Why?


i would like to know the departure and arrival of a French Bee Flight BF711 on May 9,2019 from SFO to ORY if that is possible to know


If    $$ \lim_{x \rightarrow a} f(x)= \infty\quad \lim_{x \rightarrow a} g(x)=\infty$$  and    $$ \lim_{x \rightarrow a} \frac{f'(x)}{g'(x)}=L $$    then   $$ \lim_{x \rightarrow a} \frac{f(x)}{g(x)}=L  $$     Is this correct? Any response would be appreciated.


Are there any known asymptotics for $\sum_{p\leq x} p$?

As a prospective undergraduate who has really benefited from his time on MSE thus far, i recently learnt that there exists asymptotic approximations for $\sum_{p\leq x} 1,  \sum_{p\leq x} p, \sum_{p\leq x} \frac{1}{p}, \sum_{p\leq x} \frac{\log p}{p}, \sum_{p\leq x} \log p, \sum_{p^m\leq x, m\geq 1} \log p$ where $p$ is a prime,                                                                                but have never seen any for $\sum_{p\leq x} p$ ?  Out of curiosity, i'm wondering if there is any such formula yet ?  An idea that quickly came to mind was, $\sum_{p\leq x} p$ =  $\sum_{p\leq x} (p/\log p)\log p$, and then apply the Abel/Euler summation theorem ?


How to prove this inequality $\frac{a}{b+c} + \frac{b}{c+a} + \frac{c}{a+b} \ge 1.5$?

Given $a$, $b$, and $c$ are three positive real numbers. How to prove that sum of $\frac{a}{b+c}$, $\frac{b}{c+a}$ and $\frac{c}{a+b}$ is greater than or equal to $1.5$?


how to traverse all elements of the same key in multimap of C++?

We can access one element by using find, but how can I traverse all the elements of the same key?  // unordered_multimap::find #include <iostream> #include <string> #include <unordered_map>  int main () {   std::unordered_multimap<std::string,std::string> mymap = {      {"mom","church"},      {"mom","college"},      {"dad","office"},      {"bro","school"} };    std::cout << "one of the values for 'mom' is: ";   std::cout << mymap.find("mom")->second;   std::cout << std::endl;    return 0; }


The situation where I am stuck:    The issue is that I am trying to install Ubuntu 15.10 as my primary OS.  I had windows 10 and tried to use both OS in dual boot but got stuck at some point. So my easiest option was to take backup and entirely delete the previous OS (Win 10 in this case) and install Ubuntu 15.10. All went great until the fatal error popped up.  Bootloader install failed .. and then it askes me "how would you like to proceed?" Giving me three options:   choose a different device to install the boot loader .. between /dev/sda ATA WDC WD7500BPVT-2 (750.2 GB) and /dev/sda1 and then not continuing when I click on OK. continue without a boot loader .. saying that I will need to manually install a boot loader in order to start Ubuntu. Then again not proceeding when I click on OK cancel the installation.. Saying that this may leave my computer unable to boot. Then again not proceeding as I click on OK.   What should I do in this case?


Show the first 4 items in a different format

I have a current view set up that displays a feed of stories and is sorted in descending order. I now need to have the first 4 stories display as a different style then the remaining ones. I have pagination set to 10. I only want the first 4 to show differently on page 1, and then the current style will show on the remaining pages. Is there a way to do this?


Null pointer exception in Retrofit 2 GET request reponse method

I am using retrofit 2 to query the TMDB api. In the call.enqueue method I am doing   List<Movie> movies = response.body.getMovies();   When I run, I get an error saying that the method getMovies produces a null pointer exception  API-INTERFACE  public interface ApiInterface {  @GET("/movie/now_playing") Call<MainMovieNowPlayingResponse> getNowPlayingMovies(@Query("page")int  page, @Query("api_key") String API_KEY); }   Here is my ApiClient Class  public class ApiClient {  private static Retrofit retrofit = null; public static Retrofit getClient(){     if (retrofit == null){         retrofit = new Retrofit.Builder()                 .baseUrl("https://api.themoviedb.org/3")                 .addConverterFactory(GsonConverterFactory.create())                 .build();      }     return retrofit;  }}   Here is the enqueue method im calling from the fragment  ApiInterface service = ApiClient.getClient().create(ApiInterface.class);     Call<MainMovieNowPlayingResponse> call = service.getNowPlayingMovies(1,API_KEY);     call.enqueue(new Callback<MainMovieNowPlayingResponse>() {         @Override         public void onResponse(Call<MainMovieNowPlayingResponse> call, Response<MainMovieNowPlayingResponse> response) {             if (response.code() == 200 && response.isSuccessful()){                 movies = response.body().getResults();             }         }          @Override         public void onFailure(Call<MainMovieNowPlayingResponse> call,          Throwable t) {          }     });   I am calling this from the onCreateView method of a fragment which is a part of a tab view.  The error I'm getting is a NULL POINTER EXCEPTION in the response.body.getMovies() call. Where is my mistake??  P.S : I intentionally didn't place the Models because they were too long and I didn't want this question to be too lengthy. I have triple checked the models and all of them are right. All are private variables with public getters and setters.  And before you downvote this because this is yet another question of NullPointer , I know what a null pointer exception is. I just cant find the error in this code.   Where is my mistake?


SF story where man must answer questions to get to untold treasure

There was a great SF story I read some time ago (probably 25+ years ago) where there was a well known treasure trove, guarded by a killer robot that would ask all comers a series of difficult questions from all areas (math, physics, literature, history, etc.)  But everyone eventually failed and died... until the last person managed to make it past the robot:     By just answering gibberish to the robot.  Unfortunately, after collecting a ton of treasure, the robot casually asked him why he wanted it, he answered in a sensible way (something like "because it's valuable"), and the robot killed him, because he failed the final test.   Any ideas who wrote this?  What it was titled?


How do you estimate the mean of a Poisson distribution from data?

I have thought of three different approaches for estimating the mean for a Poisson, but I am not sure which one is the correct method to estimate it (the third one is documented separately at the end of the question).  For the sake of a concrete example, say that we want to find the Poisson distribution for the number of cars passing by in an hour (in front of our house or whatever).  Say that we want to estimate this by standing outside of hours house for $t$ hours and counting the number $n$ of cars we saw.  Then we could approximate the mean $\lambda$ as:  $$\lambda \approx \frac{n}{t}$$  where $\lambda$ is the mean number of cars that we see per hour.  That is first approach (which is the one I believe is the correct one).  (note: that I know the first one is easier to do in real life for the specific example, but I am not concerned with that, I am concerned with the mathematical correctness)  The second approach is the following approach.   Instead imagine that for some reason we are only allowed to record how long it takes us to see 1 single specific car. We record how long it took to see car i as $\tau_i$ (hours). Now we could estimate how many cars we see expect to see in 1 hour by doing:  $$ \lambda_i \approx \frac{1}{\tau_i}$$  [note that if $\tau_i < 1$, then we can have an mean value of seeing a car for an hour to be > 1]  So now, say that instead we choose to do this on independent days and we took k of these time periods $\tau_i$ and instead we estimated the "global" mean by doing a average of the means:  $$\lambda = \frac{1}{k}\sum^{k}_{i=1} \lambda_i = \frac{1}{k}\sum^{k}_{i=1} \frac{1}{\tau_i}$$  The second method might seem a little strange, but I was wondering if the two method where actually equivalent somehow, or if the second one was completely wrong and I why. The first one seems to be the correct one but I can't seem to "prove" to myself why my intuition says that.  [notice that the second method has an interesting property where we can instead of weighting all of them equally, we can do a weighted average to maybe insert the intuitive concept of which $\tau_i$ we trust more for our certain application. A little tangential to my original question, but an interesting thought...]    Bounty Section  I forgot to add this the first time I asked the question and thought it was important to add it now (since this was the reason my question came up in the first place!).  I have a different method for estimating the mean and was wondering if it was correct.  Instead of waiting outside for t minutes, what if you did the following.  You waited outside and recored how much time it took to see 1 car. Let $\tau_i$ be amount of time you waited to see the ith car. However, notice that after you see a car, you stop your stop-watch and later (maybe on another day), you restart your watch waiting to see the next occurrence of a single car (otherwise, if you you just stop your stop-watch and re-start it immediately, its just the same as the original MLE estimator I was asking about), and you obviously repeat this a but of times. In fact, assume you do this $n$ times (i.e. you see n cars and record how long it took to see each one). Then instead of doing my previous method of $\frac{1}{\tau_i}$, you instead try to do something similar to the first maximum likelihood method by doing the following:  $$\lambda \approx \frac{n}{t} = \frac{n}{\sum^{n}_{i=1} \tau_i}$$   where t is the total time it took you to see n cars. But this time these cars were seen by n independent "samples". It feels that this method might not be correct but I was not sure. Is there something about necessarily having the total time interval t happen in one consecutive time interval?


Create a line perpendicular to an existing line in ArcGIS

For an existing set of line features, I would like to generate a perpendicular line, of say 1km, at the midpoint of each existing line feature in ArcGIS.  I imagine that The methodology would be to:   create a tangent line at the midpoint of each existing line feature calculate the angle of the tangent line based on the angle of the tangent line, calculate the location of the endpoint of the new line create the new line with the calculated endpoint of the new line and the existing midpoint of the old line   Let's assume that we are in a UTM projection and can use coordinates to calculate distance and direction.  How would I do this with ArcGIS tools or with ArcPy?


How do I type this symbol on LaTex?. Is a \vee, but with a floor. I've tried using \lhat and \bhat it doesn't work. Thank you very much.


Is there is group which can not be made into ring with any operation?

I wanted to have example of group which can not be ring?  I think if we have non abelian group with some operation we can not proceed to ring . Is it correct or it required to more argument ?   Actually this question asked by my prof in class I answered same but he is not satisfied . so I was confused whether I am correct or not ?  Please give me suggestion .


I have this determinant:   $A=\begin{vmatrix} 1 & a_{1} & ... & a_{1}^{n-2} & a_{1}^{n} \\  1 & a_{2} & ... & a_{2}^{n-2} & a_{2}^{n}\\   .& . & ... & . & .\\   .& . & ... & . & .\\  1 & a_{n} & ... & a_{n}^{n-2} & a_{n}^{n} \end{vmatrix}$  Prove that: $A=\left ( a_{1}+a_{2}+...+a_{n} \right )\det\left ( B \right ),$ inside $B$ is the Vandermonde matrix.  Actually, I have not yet thought of a solution. Hope everyone helps me with the solution of this problem.


Why do different variable names get different results（python2.7）?

in this code:    results = [] for i in [1, 2, 3, 4]:     def inner(y):         return i     results.append(inner)  for i in results:     print i(None)     the output is "function inner at 0x107dea668"  if i change i to other letter, for example:  results = [] for i in [1, 2, 3, 4]:     def inner(y):         return i     results.append(inner)  for j in results:     print j(None)   the output is "4"    Answer  results = [] for i in [1, 2, 3, 4]:     def inner(y):         print "in inner:%s " % id(i)         return i     results.append(inner)  # i -> 4 for i in results:     # i -> func inner     print "i: %s" % i     print "in loop: %s " % id(i)      # func inner <===>  A     # i == A  ->  return i -> return A, so when call funtion inner, will return itself     # print "call: %s" % i(None)      print "call: %s" % i(None)(None)(None)     print "------------------------------"   i: function inner at 0x101344d70 in loop: 4315172208 in inner:4315172208 in inner:4315172208 in inner:4315172208 call: function inner at 0x101344d70    i: function inner at 0x101344de8 in loop: 4315172328 in inner:4315172328 in inner:4315172328 in inner:4315172328 call: function inner at 0x101344de8    i: function inner at 0x101344e60 in loop: 4315172448 in inner:4315172448 in inner:4315172448 in inner:4315172448 call: function inner at 0x101344e60     i: function inner at 0x101344ed8 in loop: 4315172568 in inner:4315172568 in inner:4315172568 in inner:4315172568 call: function inner at 0x101344ed8


Understanding an example in Golan on pg.309

The example is given below:        My questions are:  1-How do we get the matrix $B$?   2- can not the diagonal elements be arranged as follows instead 2,2,3,3,3?    3- From where the 1 below number 3 in matrix B came?  Could anyone help me answer these questions, please?


I am puzzled on how to pronounce cha- words. For example, I know that "chameleon" or "chamomile" are pronounced with a hard "c" like in "camel", not with a soft "c" like in "change". "Charity", on the other hand, is pronounced as in "change".  Is there some rule to infer the correct pronunciation?


dd aplied to dev USB before connect corrupt /dev/sdX and dont work

I have a USB where I'm coping an ISO of 5 Mb aprox with a small OS with its own grub. If I connect the device and check it sudo fdisk -l I get:  ... Device     Boot Start   End Sectors  Size Id Type /dev/sdb1  *        1  9551    9551  4.7M cd unknown   If I copy with dd the ISO sudo dd if=my_os.iso of=/dev/sdb   14852+0 records in 14852+0 records out 7604224 bytes (7.6 MB) copied, 0.538487 s, 14.1 MB/s   It works perfectly. An boot from BIOS in other PC.  The problem is, sometime I forget to connect the USB after update the BIOS, so I do ff WITHOUT the USB connected,  the output is:  14852+0 records in 14852+0 records out 7604224 bytes (7.6 MB) copied, 0.00987684 s, 770 MB/s   Now, the /dev/sdb register is corrupted, the copy speed (770 MB/s) have no sense, and cannot user again dd until reboot.  I have tried to repair it with ddrescue and it doesn't work  sudo ddrescue /dev/zero /dev/sdb conv=noerror,sync   My question is, what is happening exactly and if is possible, how to repair /dev/sdb to avoid reboot and dd start working again?  Thanks.


Casting multiple spells in a single round

In the PHB page 202 under the bonus action heading it states:     You can't cast another spell during the same turn, except for a cantrip with a casting time of 1 action.   This seems to state that if you cast a bonus action spell, you could not cast a reaction spell in the same round.  That is to say, there is no limit to how many spells you could cast in a round (action economy willing) as long as you don't cast a bonus action spell.  Is this correct? What is the maximum number of spells that a character could cast in a round? Does anyone know the reasoning to exclude casting both a bonus action spell and a reaction spell in the same round?


How to find the minimum/maximum distance of a point from elipse

I have the point $(1,-1)$  and the ellipse $$x^2/9 + y^2/5 = 1 $$  How to find the minimum and maximum distance of the point from the ellipse ?  from exploring the ellipse I know that $$a = 3$$ , $$b =\sqrt{5}$$ $$ c = \sqrt{a^2-b^2} =\sqrt{9-5} = \sqrt{4}=2$$  the eccentricity of the ellipse is $$e=c/a = 2/3 $$ the center is $(0,0)$ and the guides are $$x=3,~~x=-3,~~y=\sqrt{5},~~y=-\sqrt{5}$$  the focus points are : $(2,0)$ and  $(-2,0)$  how from all of that do I find the requested in the question?


I am looking to a formula for the conformal map from the unit disc in the interior of an ellipse centered in $0$ and with semiaxes $a,b>0$. I know that depends on elliptic function, but I didn't find any references.  Thanks in advance for any formula or reference.


"let's make a robot ___ creates a copy of itself" What would be the right word to use here? That or which?


Struggling to deserialize JSON with escaped double quotes

JSON(I am working with): JSONLinter confirms this is a valid JSON.  {     "errors": [         {             "params": {                 "password": "size must be between 4 and 30",                 "loginId": "must match \"^[a-zA-Z0-9_]*$\""             }         }     ] }   Attempt 1(Using JSONParser:  String str = '{ "errors": [ { "params": { "password": "size must be between 4 and 30", "loginId": "must match \"^[a-zA-Z0-9_]*$\"" } } ] }'; JSONParser parser = JSON.createParser(str); while(parser.nextToken() != null){     parser.nextToken(); }   Fails:      ▸    ERROR: System.JSONException: Unexpected character ('^' (code   94)): was  ▸    expecting comma to separate OBJECT entries at input   location [1,99]  ▸    ERROR: Class.System.JSONParser.nextToken: line   94, column 1  ▸    AnonymousBlock: line 3, column 1  ▸   AnonymousBlock: line 3, column 1   Attempt 2(JSON2Apex option):  public class JSON2Apex {      public class Errors {             public Params params;     }      public List<Errors> errors;      public class Params {             public String password;             public String loginId;     }  }  String str = '{ "errors": [ { "params": { "password": "size must be between 4 and 30", "loginId": "must match \"^[a-zA-Z0-9_]*$\"" } } ] }'; JSON2Apex obj = (JSON2Apex)JSON.deserialize(str, JSON2Apex.class);   Fails:     ▸    ERROR: System.JSONException: Unexpected character ('^' (code   94)): was  ▸    expecting comma to separate OBJECT entries at [line:1,   column:99]  ▸    ERROR: Class.System.JSON.deserialize: line 15, column   1  ▸    AnonymousBlock: line 2, column 1  ▸    AnonymousBlock: line 2,   column 1   Attempt 3(deserializeUntyped):  String str = '{ "errors": [ { "params": { "password": "size must be between 4 and 30", "loginId": "must match \"^[a-zA-Z0-9_]*$\"" } } ] }'; Map<String,Object> jsonObj = (Map<String,Object>)JSON.deserializeUntyped(str);   Fails:     ▸    ERROR: System.JSONException: Unexpected character ('^' (code   94)): was  ▸    expecting comma to separate OBJECT entries at [line:1,   column:99]  ▸    ERROR: Class.System.JSON.deserializeUntyped: line 11,   column 1  ▸    AnonymousBlock: line 2, column 1  ▸    AnonymousBlock:   line 2, column 1   Attempt 4(replace the problem causing double quote in JSON):  String str = '{ "errors": [ { "params": { "password": "size must be between 4 and 30", "loginId": "must match \"^[a-zA-Z0-9_]*$\"" } } ] }'; Map<String,Object> jsonObj = (Map<String,Object>)JSON.deserializeUntyped(str.replaceAll('\"', '\\"'));   Still fails:     ▸    ERROR: System.JSONException: Unexpected character ('^' (code   94)): was  ▸    expecting comma to separate OBJECT entries at [line:1,   column:99]  ▸    ERROR: Class.System.JSON.deserializeUntyped: line 11,   column 1  ▸    AnonymousBlock: line 2, column 1  ▸    AnonymousBlock:   line 2, column 1   I have looked into the below similar questions but still don't see any solution:


How to apply for UK travel visa with my parents

Planning to apply for UK tourist visa for me and my parents , i have got enough documents but not my parents except passport and identity card.  Is there any chance of visa refusal considering there is not enough documents for my parents, and do i need to apply visa separately or together?  Would be great if someone could answer my queries.


Difference between the default access specifier and protected access specifier in java

I was trying to learn java and when I went through access specifiers I had a doubt. What is the difference between the default one if none is specified and the protected access specifier in java?


how many semantically different boolean functions are there for n boolean variables?

In short, this is an assignment question for a course I am taking - the exact wording is this:  "Given n Boolean variables, how many 'semantically' different Boolean functions can you construct?"  Now, I had a crack at this myself - and got pretty stuck. The question doesnt state how many boolean operators there are (and, or, xor, nand, nor, iff, implies, not) nor does it state whether brackets should be used, i.e. a ^ (b v c) is different from (a ^ b) v c.  So, my question for you is - is this question possible given the limited information available?   Is it going to be something like ${n^x}$ where x is the number of boolean operators.  Any direction here would be greatly appreciated.


How many injective functions  $f:[1,...,m]\to{[1,...,n]}$ has no fixed point? $(m\le n)$  I thought about the next thing:  $f(x_1)\neq x_1$, Means i can choose for $x_1$ - (n-1) options,  But then, for $x_2$, there are two options:   If i choose $f(x_1)=x_2$ then for $x_2$ i still have (n-1) options. If i choose $f(x_1)\ne x_2$ then for $x_2$ i'll have (n-2) options.   So how can i take care of that? Or am i looking the question totally wrong?


How to move Ubuntu 12.04 launcher to the right?

I've just upgraded from Ubuntu 10.04 LTS to 12.04, and the launcher is on the left side of my monitor. This is great, except I'm using a dual screen setup and my main monitor is the one of the right, so when I select my main monitor as the one where launcher resides in, it's residing in the middle of my extended desktop, causing problems when I try to mouse between screens.  How do I place the launcher on the right side?  Thanks


looking for advice on miniatures and RPG

can anybody offer any advice on what path to follow for solo playing games. I have been looking at different aspects of gaming. I have looked at a lot of board games and have recently bought Arkham horror which I play Solo, and will probably buy Mage Knight and a few others I have looked at on boardgamegeek.   I have friends who play 40K but I have been reading a lot of bad press from fans about games workshop so I am reluctant to get involved. I love the back story that comes with 40k though and have read several books. I like the miniatures side of games and would like to start painting at some point.   After reading a few blogs i have come across 'tunnels&trolls'"Darkcitygames' for solo playing RPG. but the obvious is D&D + Pathfinder. I have heard of party of one for pathfinder but not read any info for playing D&D solo.  So, I am a bit overwhelmed with all the information that I have gathered. I love boardgames so will probably still collect them, but its the world of RPG and Miniatures that I am seeking advice on. I have recently moved to Australia from the UK so I am not really part of a group except the 40k guys. I am thinking pathfinder party of may be the way forward. can anyone offer any advice.


I would like to ask you if anyone of you knows how can I save changes in the progrem so when It will be restarted, the changes would remain?   for example, I have a boolean variable which his defualt value is "false".  I want after the inital start, change the value to "true"  so when I'll close and start the program, the boolean variable value  would be true.


What is the difference between summary() and loadings() for princomp() object in R?

Example code:  (pc.cr <- princomp(USArrests))   summary(pc.cr) loadings(pc.cr)  ## note that blank entries are small but not zero   I am getting different outputs from each, and I am not sure I understand what the difference is.  Here is the output:  > summary(pc.cr) Importance of components:                            Comp.1      Comp.2      Comp.3       Comp.4 Standard deviation     82.8908472 14.06956001 6.424204055 2.4578367034 Proportion of Variance  0.9655342  0.02781734 0.005799535 0.0008489079 Cumulative Proportion   0.9655342  0.99335156 0.999151092 1.0000000000   > loadings(pc.cr)  ## note that blank entries are small but not zero  ...                 Comp.1 Comp.2 Comp.3 Comp.4 SS loadings      1.00   1.00   1.00   1.00 Proportion Var   0.25   0.25   0.25   0.25 Cumulative Var   0.25   0.50   0.75   1.00   P.S: how can I get access to the table created by summary(pc.cr)?? (I can't seem to find it in str.)


Windows 7 installation INSIDE Ubuntu 14.04.1

I installed Ubuntu but I did not partition my 500GB HDD at all, so basically it's one partition. Now to install Windows 7 in the installed Ubuntu, I had to create a partition using GParted, but can't because the ONE partition is the filesystem that can't be unmounted.   What do I do? Do I install Ubuntu again with partitions and then install Win 7 in a new partition? If someone can give me a step by step process on the partitioning that would be best! I would like 1:1 partition for Ubuntu and Win 7 spaces.


How exactly works the Javascript variable scope?

I am pretty new in JavaScript and I have some doubts related to the variable scope.  So I tryed to do this example:  function outer() {      alert("INTO outer()");     var val1 = 1;      inner();      alert(val2); }  function inner() {     alert("INTO inner()");      val2 = 2;   }  outer();   In this simple example the outer() function is perform, in this function I call the inner() function that declare and initializes the val2 variable. Then come back to the outer() function and from here I access and print the val2 value.  So it seam to me that in Javascript I can access to the variable defined in the inner function from the outer function but I can't access to the variable declared in the outer function from the inner function.  Is it true? If it is true why this choose?


How can I remove all build dependencies for a particular package?

When I want to compile something from source in Ubuntu/Debian, I usually get build-dependencies by running "sudo apt-get build-dep PACKAGE_NAME" in the terminal.   They are (usually) useless once the compilation job is done.  So, how do I remove all build-dependencies for a particular package?


How to construct a homomorphism from an abelian group to $\mathbb{Q}/\mathbb{Z}$?

Let $A$ be an abelian group.   I don't know how to construct a nontrivial map from $A$ to the group $\mathbb{Q}/\mathbb{Z}$.  Can anyone help me, please?


I have install VGA driver and after that the prompt worrying message to me disabled UFHI and I say use after that asked me password, aftet I reboot system I enter password loop. After entering the password the ask me again for password.


How do you make Ubuntu accept files sent over bluetooth

I have a problem when I send my files from phone to ubuntu 12.04 via bluetooth as the phone prompts with the message "the file not sent"! I can send any files from ubuntu 12.04 to my android phone.


Using command line in Fedora to print/echo certain lines in a file

For Fedora OS  I'm still learning here, but I need help to insert a command for example "XXX" to say that I have a file that contains 1000 lines of single product names. I need to write a command to basically print specific lines, such as:  print line 50-100 from MyProductList.sh  This is just an example to give you an idea. inside the file will simply be 1000 lines of 1 worded products. One word on each line.   The result I need might look like this:  50. tea 51. coffe 52. orange 53. banana 54. etc


How to write long arithmetic expressions in several lines in python?

I have a long expression, its' not fitting in my screen, I want to write in several lines.  new_matrix[row][element] =  old_matrix[top_i][top_j]+old_matrix[index_i][element]+old_matrix[row][index_j]+old_matrix[row][index_j]   Python gives me 'indent' error if I just break line.  Is there way to 'fit' long expression in screen?


Issue when installing anything from terminal

I'm having trouble installing anything through the terminal, I'm using Ubuntu GNOME 15.10. After typing in my password I get this message      E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)     E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?     Any help would be appreciated, thank you


How can I change the boarding station for the Nagpur-Pune Express?

I have booked a Tatkal ticket from Nagpur to Pune with the Nagpur-Pune Express, but I have to board from Wardha. I will be traveling on the 9th of May 2016. How can I change the boarding station?


Force alt + tab to switch only on current workspace in GNOME shell

I am looking for a clean and fast method to force GNOME in Ubuntu 14.04 to switch between active apps only on the current workspace when pressing the shortcut alt + tab.


Is this some type of moth, it looks dangerous is it? I have only seen something like this once before. Thank you for any information you can give me.


What is the best way to deal with this problem.   I have a VPN set up on my firewall that runs from a server on my side to a Customer Site.  It is configured as serverA on my side and 172.31.255.1 /24 on the customers side.  I now have a new customer who also needs a VPN set up. But their IP address clashes with the above range.  So they need to run from serverB on my side to 172.31.255.18 /32 on the customers side.  As you can see, the new one is right in the middle of the range used by the other one.  What is the best / recommended way of working around this problem?


What's a word for someone who needs to always be flustered about something?

A word for a person who if left in an impossibly perfect environment, would find a way to be upset with how perfect it was. Someone who will invent issues to be offended about. Someone who is never satisfied. I found a similar post here but it's not quite the same:  I'm not talking about someone who holds onto problems after they're fixed, but someone who must always have a problem at all times, no matter how small. Drama Queen is close, but not quite right. Entitled is very close.


Checking whether a variable is an integer or not

How do I check whether a variable is an integer?


Is there anything SE Inc can do to support all the new online learners?

Given the new mandated shifts to online learning during the outbreak, I find myself worrying about those students who manage to scrape by in a traditional learning environment with study groups and the help of their peers, let alone the help of university tutoring resources.  The people that are involved in tutoring resources are probably way too busy right now to keep that going with anywhere near the efficacy they did in the before time.  Other than really constraining discussion forums inherent to our LMS's, collaborative tools are sparse.  Given that so many industries, like carriers, publishers, content providers, are bending over backwards to support education (including higher education), I'm wondering if any of the SE products can help with alleviating the lack of student-student interactions.  In the long run, this might open some new markets to SE, and might prove a boon.  In the short run, our students need help to make the second half of this semester a better learning experience, and if SE can make the right tools available, that's a good thing.


Drawn through gate during an Arkham encounter

Two investigators were in the same location in Arkham. The first investigator drew an encounter 'A monster and gate appear!'. He resolved that encounter by fighting the monster and then getting drawn through the gate. The second investigator also got drawn through the gate before having an encounter.  We also said that the two investigators did not have an Other World encounter as they were 'delayed' as they were drawn in to the gate. This ended up with the second investigator not having any encounters on this particular turn.  Was that the correct ruling?


How do you add friends in Alpha Sapphire?

My son has Alpha Sapphire for the 3DS and is unable to add friends. They show up as acquaintances but when the prompt to add them as friends shows, the option to add them is greyed out. I have never played this game, so I have no idea what the problem could be. I googled, but couldn't find anything that tells me how to resolve this issue. Is it a setting that needs to be changed, or is there something that he needs to do, but isn't?


Let $G$ be a finite abelian group. Show that there is a Galois extension $K/\Bbb Q$ with $\text{Gal}(K/\Bbb Q) \cong G$.   I have seen one proof using For a ﬁxed positive integer $n$, there are inﬁnitely many prime numbers p such that $p ≡ 1$ (mod $n\Bbb Z)$.   But is there any easy way to prove this? Please reply


Function to print the members of each struct in an array of structs in C

I'm trying to write a function in C that takes a struct array (of structs that hold employee information) as an argument and prints each member of each struct. For some reason my code isn't producing any output. Could anyone tell me where I am going wrong? Thanks.  Here it is:  #include <stdio.h> #include <stdlib.h>  typedef struct Employee {     int number;     char name[20];     char department[15];     double salary; }Employee;  void employeePrint(Employee arr[]);  main() {     Employee e1 = {101,"John Smith\0","Accounting\0",54926.25};     Employee e2 = {102,"Jane Q. Public\0","Retail\0",54926.24};     Employee e3 = {103,"George Washington\0","Tech\0",70417.76};      Employee empArr[3] = {e1,e2,e3};     employeePrint(empArr); }  void employeePrint(Employee arr[]) {     int i;     for(i = 0; i < sizeof(arr)/sizeof(arr[0]); ++i)     {         printf("Number: %-4d\n",arr[i].number);         printf("Name: %-6s\n",arr[i].name);         printf("Department: %s\n",arr[i].department);         printf("Salary: $%-2.2lf",arr[i].salary);         printf("----------------");     } }


Would it be okay if I called you when I got back home?     Would it be okay if I called you when I get back home?       Are both the above sentences grammatically correct?  I'm still kinda confused with the tenses agreement thing.  And how backshifting works.  What i don't get is,do i have to convert the entire sentence to the past,or do i have convert certain parts of the sentence to the past. Or whether i should keep a sentence where i have past tense strictly to the past.  Like:        I was walking down the street the other day, and it hit me how the world worked.     I was walking down the street the other day, and it hit me how the world works.      Do I keep the sentence to the past? Or do I mix tenses?


Nonempty sets in $\mathcal{B} ( \mathbb{R}^{[0, \infty)})$ are not contained in the set of continuous functions

I am reading a book in probability theory, which claims that the $\sigma$-algebra $\mathcal{B} ( \mathbb{R}^{[0, \infty)})$ on  $ \mathbb{R}^{[0, \infty)}$ is so "small" that it does not include even the space $C[0,\infty)$, which is the space of continuous functions from $[0, \infty)$ to $\mathbb{R}$. To be precise, it says that      The only $\mathcal{B} ( \mathbb{R}^{[0, \infty)})$-measurable set contained in $C[0,\infty)$ is the empty set.   By definition, $\mathcal{B} ( \mathbb{R}^{[0, \infty)})$ is the $\sigma$-algebra generated by the collection of cylinder sets of the form $$ \{ \omega \in \mathbb{R}^{[0, \infty)} \, | \, (\omega(t_1), \ldots, \omega(t_n)) \in A \},$$ where $t_i \in [0, \infty)$ and $A \in \mathcal{B} ( \mathbb{R}^n)$.   Intuitively, this definition suggests that $\mathcal{B} ( \mathbb{R}^{[0, \infty)})$-measurable sets are only determined by countably many coordinates, whereas a continuous function is determined by uncountably many values. But I do not know how to prove this rigorously. Any suggestions?


In Jürgen Neukirch's "Algebraic Number Theory", page 5.     An algebraic number field is a finite field extension $K$ of $\Bbb Q$. The elements of $K$ are called algebraic numbers.   Is $K$ here a subfield of $\Bbb C$?


If all distances are constantly increasing, as Hubble's law say, then lots of potential energies of form ~$\frac{1}{r}$ changes, so how is the total energy of the Universe conserved with Hubble's expansion?


Getting web data into Google Sheets - from formatted chart

Edited: this question was associated with another question. I read that answer, appreciate it. Since importxml not working, I wonder what the format would be to read this in another way like importdata? ======= I am trying to get the data from this web page into a Google sheet:  For example for the value 77 in the chart near the bottom, I had been using importxml but it returns #N/A: =importxml("https://www.validea.com/factor-report/AAPL", "/html/body/form/div/div/div[6]/div/div[1]/div/svg/g[1]/g[4]/g[24]/g/g/text[2]")  How do you pull the data from the chart, and is there a way to pull the data in once so that each item doesn't need to re-query the page? Any help is much appreciated.


How would I implement an endless road the player runs down?

I want to create the illusion that a man is running down a long road i.e. this pic    If you have played Temple Run on the iPhone, it's the same principle, but instead of a temple it's a normal road.   I want to know how this is implemented. For example, do I just repeat this road image in a loop?


I have a database to hold data about projects.   Projects have lots of data associated with them that is segmented into other tables such as project_contacts and project_images. Those are one-to-many relations where 1 project can have many contacts and many images.   However, I need to be able to keep "versions" of projects. So, if a project is updated, the previous data about the project is still present. This is a large issue with many-to-many relationship. For example, there is a categories table, and a project_categories table - many projects can have many categories.  When a project updates, not every piece of data will be updated. For example, if a project gets a new contact, it won't always have a new image, so the images table won't be updated.  One solution I have considered is to have a versions table with an auto-incrementing ID; a project_id column and a time column. Each table will also get a version_id column. Whenever a project is updated, a new row is created in versions. Then, when the tables are updated, the version_id gets entered too. This means that the latest row about a project in project_images might be 3 whereas the latest version in project_contacts might be 27.   Because the version_id is incrementing, it's really simple to get the latest version of a single project, as you can join all the tables by the highest version_id.  Where this idea seems to fail for me is if I want to get the version of a project from a specific date.  Could I use my current solution to address that problem?


Why use javascript:void(0) instead of # in href?

I can see a lot of <a href="javascript:void(0);"> on html pages. From I've read it does nothing by returning undefined. How is this different with <href="#">


On-Premises Deployments for SharePoint 2013 Apps?

I configured all requirements for deploy Apps from store and i can access all apps, browsing and download available after find it on apps i can add it but;      This page can't be displayed    •Make sure the web address  is correct.    any solution?


Integral $I=\int_0^1 \frac{\arctan\big(\sqrt{x^2 + 2}\big)}{\sqrt{x^2 + 2}(x^2 + 1)}dx$

Hi I'm trying to show that  $$ I=\int_0^1 \frac{\arctan\big(\sqrt{x^2 + 2}\big)}{\sqrt{x^2 + 2}(x^2 + 1)}dx=\frac{5\pi^2}{96}. $$ We can try the substitution $u=(x^2+2)^{1/2}, du=x(2+x^2)^{-1/2}dx$ but that didn't help me much because of the (x^2+1) piece.  Any ideas?  Thanks.


I've created a custom JtextField but any proprety defined method don't working like getText or SetText when I call it in the main JFrame.  import javax.swing.JTextField; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent;  public class JTextFieldDecimal extends JTextField {     private static final long serialVersionUID = 1L; public JTextFieldDecimal() {     super();     addKeyListener(new KeyAdapter() {         @Override         public void keyTyped(KeyEvent e) {             char c =e.getKeyChar();             if(!((c>='0') && (c<='9') ||                      (c==KeyEvent.VK_BACK_SPACE) ||                     (c==KeyEvent.VK_DELETE)))             {                 getToolkit().beep();                 e.consume();             }          }     });  } }     when I click in validation button in jframe Produit the compiler give me an error and point to line 98 wich content my statement parameter of Custom JtextField named txtPrixHT.  btnValider.addActionListener(new ActionListener() {             public void actionPerformed(ActionEvent arg0) {             Connection cn=null;             PreparedStatement pst =null;             ResultSet rs=null;             try {                 Class.forName("com.mysql.jdbc.Driver");                 cn=DriverManager.getConnection("jdbc:mysql://localhost/gesticom", "root","");                 //String sqlAdd ="insert into produit (PrCodeBarre,PrDesignation,PrPrixHT,PrRemise,PrPrixAchat,PrStockAlerte,PrStockReel) values (?,?,?,?,?,?,?)";                 String sqlAdd ="insert into produit (PrCodeBarre,PrDesignation,PrPrixHT) values (?,?,?)";                 pst=cn.prepareStatement(sqlAdd,Statement.RETURN_GENERATED_KEYS);                 pst.setString(1, txtCodebarre.getText());                 pst.setString(2, txtDesignation.getText());                 pst.setString(3,txtPrixHT.getText());                 pst.execute();                 rs=pst.getGeneratedKeys();                 if(rs.next())                 {                     txtIdprod.setText(rs.getString(1));                     JOptionPane.showMessageDialog(null, "Nouveau Produit créé", "Fournisseur",JOptionPane.INFORMATION_MESSAGE);                 }             } catch (ClassNotFoundException e) {                 // TODO Auto-generated catch block                 e.printStackTrace();             } catch (SQLException e) {                 // TODO Auto-generated catch block                 e.printStackTrace();             }             finally {                 try                 {                     cn.close();                     pst.close();                 }                 catch (SQLException e)                 {                     e.printStackTrace();                 }             }             }         });


Prove by induction $(1+x)^n≥1+nx, ∀x>-1, ∀n∈N$

I think I understand how induction works, but I wasn't able to justify all the steps necessary to prove this proposition: $(1+x)^n≥1+nx, ∀x>-1, ∀n∈N$  One thing that confuses me is that I don't know whether I should use induction with both x and n. I didn't pay attention to the x and I still couldn't justify all the steps.  Thanks.


Showing which way line features are oriented in QGIS?

I'm working on QGIS on a street shp file which has Left From, Left To, Right From, Right To fields fields, building a geocoder.  I need to know which way these features are oriented, which I think is the same as knowing which of the two (or more) points that make the lines comes first.  Is there a way to automatically rotate a triangle marker on the marker line style so that it shows how the line is oriented?


How does "this" keyword work within a function?

I just came across an interesting situation in JavaScript.  I have a class with a method that defines several objects using object-literal notation.  Inside those objects, the this pointer is being used.  From the behavior of the program, I have deduced that the this pointer is referring to the class on which the method was invoked, and not the object being created by the literal.    This seems arbitrary, though it is the way I would expect it to work.  Is this defined behavior?  Is it cross-browser safe?  Is there any reasoning underlying why it is the way it is beyond "the spec says so" (for instance, is it a consequence of some broader design decision/philosophy)?  Pared-down code example:  // inside class definition, itself an object literal, we have this function: onRender: function() {      this.menuItems = this.menuItems.concat([         {             text: 'Group by Module',             rptletdiv: this         },         {             text: 'Group by Status',             rptletdiv: this         }]);     // etc }


Lots of layers in one or multiple services? (and why)

I have a conundrum that I am getting mixed advice on how to go about.  Therefore id like to put it to GIS-SE for some justified answers.  Scenario:     Client has a web mapping application.  Does not want to split into multiple smaller applications.  Although this goes against what the modern day approach is for maps on the web,  (i.e. lots of focussed web-map apps over one main web-map) I strongly believe that for some users, trying to replicate a GIS application on the web is ok (). Client has cached as much of his basemap layers into separate services. Client still requires an additional 600-700 layers in a dynamic map service... The service will be published with all of these layers turned off. It is not anticipated that users will turn on more than 10-40 layers at a time.   I imagine your initial reaction to this is similar to mine (600+?! WTF?!)  However - the requirement is set in stone and why not?  Their prior ArcIMS application had similar functionality, so why can't this newer ArcGIS Server product do the same?  The users potentially need to be able to cross compare and perform analysis on the entire range of layers, even if the layers belong to other departments.  Before you jump to conclusions, the client is a clued up ArcGIS Server admin. They have administered the 600 layers by all of the best practice rules: e.g. scale ranges combined with definition queries; annotation over labelling; generalising complex layers at small scales; publish as MSDs; etc  Problem:  What is the better approach here?     Publish all 600 layers into one dynamic map service   Split the layers into logical groupings (hydrology, planning, ecology, utilities, etc)   If you go with #1, and you have a few complex layers turned on.  If you want to turn on a simple points layer, then ArcGIS Server will still have to render the entire layers being displayed all over again.  If you go with #2, each time your making a request, potentially, the web application could have to make several GET requests for ExportMaps from the individual map services (is this bad, or does it create additional load to ArcGIS Server over #1?)  And then this leads to configuration & tuning to ensure everything is as quick as possible. We can scale the back end of ArcGIS Server to multiple hosts and have some good hardware to sit it on.  If you go with #1, you can throw the maximum # of instances that you AGS can handle.  If you go with #2, I assume you evaluate the performance of the map services (load testing and look at wait times) and address the min/max instances accordingly to ensure there is not one service that is a 'weak link'.  Im currently leaning towards the #2 approach, as my head is still telling me that having 600 layers in one service is madness, but if they are all turned off by default, there really is no issue.  Would love to hear your thoughts.  Let me know if you need more info via the comments, but not looking for answers like 'use a desktop application' or 'educate them to do things differently'    From discussions in comments, I failed to mention another consideration.  The application that the service will be consumed within, has the ability for layer level security (at the application level).  Therefore the group of users (that is fairly large) are assigned to a particular role, and that role will have access to the full 600 layers.  Other roles will be limited.


What Easter eggs do we have on Stack Exchange sites?

I would like to know what Easter eggs are hiding in Stack Overflow, and all the other Stack Exchange sites. I love Easter eggs and I love Stack Overflow, so adding even more is a good idea in my opinion, what do you think?


How to stop text from taking up more than 1 line?

Is there a word-wrap or any other attribute that stops text from wrapping?  I have a height, and overflow:hidden, and the text still breaks.  Needs to work in all browsers, before CSS3.


Remove win 8, install Ubuntu 16.04 64 bit on a laptop with UEFI

I want to remove win 8 and install Ubuntu 16.04 64bit on a Samsung laptop with UEFI. I'm not interested in a dual boot setup.   With the intention of changing the boot order so that I can boot from a USB drive,  I swiped the top right screen corner (charm bar) in the win 8 start page,  going to  Settings>Power (shift clicking on Restart) >Troubleshoot>Advanced Options. However, there are no UEFI settings options on this page.   I would be most appreciative if anyone can offer any suggestions as to where to go from here.


I am a trivial high school student who loves maths. Recently I found some maths-related YouTube channels. Although they cover a broad range of mathematics, many of them are about integration. So I mainly watched videos about integration.  I found such integrations very difficult or impossible to solve with the scope of the high school maths curriculum. We learn some basic substitution and integration by parts, however, they are insufficient.  For most 'interesting' questions on YouTube, it is not necessary to know the university level of calculus, but the problems require either patience or ingenuity. They often involve several substitutions (which make the calculation very long and complicated) or require creative thoughts that people cannot easily come up with. Challenging questions give me a kind of enthusiasm and encouragement at first, but after 30 mins or so, I feel depressed being unable to solve them and realising my lack of talent.  I fully acknowledge that these YouTubers (or anybody else teaching mathematics and doing such interesting questions) are highly enthusiastic in maths so that they do not hesitate to put a lot of effort learning and practising, and that they are talented and knowledgeable. However, I wonder how they can think so deeply as such, and how they can use such sophisticated arts of techniques to approach to problems.


How can I regain access to my Windows 7 after installing Ubuntu 13.04 alongside Windows 7

I am very new to Ubuntu. Chose the option to load Ubuntu alongside Windows 7 from my flashdrive. When I was prompted to set the partitions, I allowed it to do it automatically (to avoid issues... so much for that).   Everything seemed to go fine but my PC now just boots into Ubuntu 13.04 as if it is the only OS; there is no option to choose Windows 7. I tried boot-repair (recommended settings option) to no avail. I haven't tried anything under the Advanced Options so that I won't make it worse before getting some feedback.  In the past, I had to have my PC repaired after a nasty virus. It's an HP pavillion 1230n that had Windows XP originally, but when I got it after repairs it had Windows 7 ultimate 7601 build (I think) anyway, it always had a pop up that I needed to get genuine Windows. I also noticed Vista listed on my pastebin but I've never used Vista on my PC.   I downloaded gparted but haven't made any changes.  I hope I've provided enough information. Any help would be greatly appreciated or just point me in the right direction. I've seen many similar posts with small differences and countless "solutions" however I don't know enough to be able to identify if what worked for them would work for me or make it harder for someone to help me.   Thanks in advance  sudo fdisk -l shows:  Disk /dev/sda: 200.0 GB, 200049647616 bytes 255 heads, 63 sectors/track, 24321 cylinders, total 390721968 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x1549f232     Device Boot      Start         End      Blocks   Id  System /dev/sda1            2048    30722047    15360000    7  HPFS/NTFS/exFAT /dev/sda2   *    30722048    30926847      102400    7  HPFS/NTFS/exFAT /dev/sda3        30926848   316314777   142693965    7  HPFS/NTFS/exFAT /dev/sda4       316315646   390721535    37202945    5  Extended /dev/sda5       316315648   388757503    36220928   83  Linux /dev/sda6       388759552   390721535      980992   82  Linux swap / Solaris  Disk /dev/sdb: 2003 MB, 2003795968 bytes 32 heads, 63 sectors/track, 1941 cylinders, total 3913664 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x2c46034e     Device Boot      Start         End      Blocks   Id  System /dev/sdb1   *          63     3913055     1956496+   6  FAT16   I never see any options to boot into Vista or anything when booting. It just goes straight into Ubuntu. When I hit enter during booting to get into settings the only thing I can do is boot into Ubuntu from hard drive or boot into Ubuntu from my jump drive.


Changing Section Heading Style Ruins Theorem Counter

This is my code:  \documentclass{article} \usepackage{amsthm} \theoremstyle{definition} \renewcommand{\thesection}{Section \arabic{section}} \newtheorem{theorem}{Theorem}[section]  \begin{document}  \section{}  \begin{theorem}     A theorem. \end{theorem}  \end{document}   This produces:  Section 1 Theorem Section 1.1. A theorem.  I would like it to say:  Section 1 Theorem 1.1. A theorem.  How can I do this?  Thanks.


How to best display the distribution of a large dataset with many outliers?

I have a very large data set (~300'000 data points) and a subset of it (6000 data points), which shows the difference of travel time [in seconds] of agents before and after a road closure. I want to show the difference in their distribution.  However, the data set is so large, that the outliers are still so many and nothing can be read from the boxplot. A simple table would be an option of course, but I believe if done right, a graph can be more helpful to see the difference.   Really interesting, for the analysis, is the difference between -1000 and 1000. So I wonder, is it ok to simply truncate the data set or is it more appropriate to transform the data?


jQuery keyup event not working from another php file

In main.php i call settings.php with ajax, inside settings there is one input text field with id #newlogintext, if i put the jquery keyup in settings.php it's working, but if i put it in main.php it's not.  in main php call settings.php :  function CheckSettings() {  $.ajax({    type: 'POST',    url: 'settings.php',    data: form_data,    success: function(data)     {       $("#settings").html(data);     } }); } CheckSettings();   Keyup:  $( document ).ready(function() { $("#newlogintext").on("keyup", function(){ alert("test"); }); });   Settings php:
  General Settings

New login:
 <input id="newlogintext" type="text" name="newlogin" />


Let's say I have a file named 'newfile' . Now I do some text substitution using sed command  sed 's/text1/text2/' newfile > newfile   In the above command I am subsituting text1 with text2 and then redirecting the output to the samefile. However after executing this command when I use   cat newfile   An empty file is showed.   What's the problem here?


prove that the finite group G has a fixed point in S if |G|=$p^r$, p prime, |S|=N, (p,N)=1

I am asked to solve the following  Let G be a finite group with $p^r$ elements, where p is prime. if G acts on the finite set S with N elements and $(p,N)=1$, prove that there exists $s\in S$ such that $g*s=s,\forall g\in G$  I am able to get that $\sum_{g\in G}I(g)>0$ but I don't see how to convert that into $I(g)>0, \forall g\in G$


Is there a command to start a program after a delay?  Something like shutdown 0 for firefox where firefox launch after a delay.  I was following  where it says adding sleep 150 adds a delay of 150 seconds before it starts the program. But it doesn't seem to be working. The program never launches on startup after I made this edit.


Function which preserves closed-boundedness and path-connectedness continuous?

Let $f:\mathbb{R^n}\to\mathbb{R^m}$ be a function such that the image of any closed bounded set is closed and bounded, and the image of any path-connected set is path-connected. Must $f$ be continuous? What if we replace "path-connected" with "connected"?


"Your Mac restarted due to a problem."  System.log showed boot time as 17:19 and the last message before was 17:13 but things had been working in the five minutes before the restart.  Six log files had file dates after 17:13, but five of them had NO messages before the reboot.  (The other has timestamps only in raw integer format)  So how do I look for clues to what happened between 17:13 and 17:19 ?  It's a Macbook Pro 2012 refurb still under warranty (purchased January) but the RAM and SSD were transferred from an older machine.


I've been wondering for a long time what (if any) the difference is between the following:  Dim myString() as String   and  Dim myString as String()


Ipad won't mount on Ubuntu 12.04 after updating it to iOS 8

I just updated my iPad Air to iOS 8. Now it won't mount any more on my computer running Ubuntu 12.04. When I plug it in, it gives me a message that says, "Unable to mount iphone / Unhandled Lockdown error (-3)".  Before the update when I'd mount it, I would see two drives in the file explorer window, "Documents" and "Ipad". The former has the files of all my apps, while the latter has my photos and settings and stuff. Now the "Documents" drive won't mount and I see an unmounted drive icon labled iphone. The Ipad drive mounts as normal. What I need is to get the Documents drive back. My iPad isn't jailbroken.  Until now Ubuntu has allowed me to be a proudly iTunes free iPad user. I'd hate to change that.


I've been wondering if is there an easy way to explain derivative's Chain Rule, since it's such a fundamental topic in Calculus and people struggle to understand the first time that they get in touch with the subject (like I did).  How would you explain it to your grandmother?  Thank you!


Is there some functional difference between using:  var Hello = function() {     this.a = 1;     this.b = 2; };  hello = new Hello(); hello.a; // 1 hello.b; // 2   and the most used way where you use:  function Hello() {   this.a = 1;   this.b = 2; }  hello = new Hello(); hello.a; // 1 hello.b; // 2   As far as I understand, the code inside function() is a constructor, and nothing more. Both have Hello.prototype created upon their definition, the only difference is hoising. Is there something I'm missing?  EDIT: In , one person pointed that using the function expression version, one.constructor.name will not be defined which I validated is true. Another person pointed that __proto__ of the newly created object in the function expression points to Object.prototype but I can't verify this in Chrome. Maybe it's true for earlier versions of IE etc.?


Why do we treat the action as dimensionless in QFT?

When determining whether the couplings in a QFT Lagrangian are relevant/irrelevant/marginal, we set $\hbar = c = 1$ and use the fact that the action is dimensionless to find the dimensions of the field itself. For example, the action for a scalar field might look like $$ S = \int \mathcal{L } d^4 x$$where $$\mathcal{L} = \partial_\mu \phi \partial^\mu \phi -\sum_{n\in \mathbb{N}} \lambda_n \phi^n.$$ Imposing $[S]=0$ then implies that $[\phi]=1$ (where [ ] denotes mass dimension), from which we can determine the dimensions of the $\lambda_n$ and conclude that terms with $n>4$ are irrelevant at low energies. If we were dealing with classical field theory, where $\hbar$ doesn't appear and can't be set equal to $1$, would the above analysis fail? Or would it still be true that $n>4$ terms would become negligible at low energies? More generally, if we think of the action as a functional to be minimised (rather than the exponent in the QFT path integral), it would seem that we could artificially give the action any units we like (say by writing "kilograms" or "meters" or "seconds" after whatever we had before). This wouldn't affect any dynamics, since the same fields will minimise the action. So why is it correct to take $[S]=0$? Can we be more precise about the exact logic of the dimensional analysis, perhaps re-wording the standard argument more mathematically, in terms of symmetries under scaling, instead of using dimensions?


How to add links of websites with their logo/icon in LaTeX?

- \profilepic{alice.jpeg} - \cvname{Alice} - \cvjobtitle{Advanture} - \cvdate{26 November, 1865} - \cvaddress{United Kingdom} - \cvnumberphone{+880567632189} - \cvsite{http://en.wikipedia.org} - \cvmail{alice@gmail.com}   This code has been taken from Overleaf that works based on online. I would like to add two more lines in this code. Below the line showing phone number, I want to delete cv site, and want to add my Facebook and LinkedIn profiles links. And I want to show these two links in such a way that only my name will be shown in blue color and when anyone will click on my name, they will automatically visit my profiles. I also want at the left hand side of these links, their logo/icon (Facebook logo and LinkedIn logo) will be shown.   Please instruct me how I can do that. Thanks in advance.