Where do confiscated items go in Markarth?

I was in Markarth, and got my stolen items taken. I checked the Guard's Tower and the Keep, but I couldn't find anything. Any clues as to where my items are?


I am using a python program to copy an input and pasting the output to chrome browser input field .  For windows there is the 'clip' command that pastes the data.  name = "งดดา" command = 'echo ' + name.strip() + '| clip' os.system(command)   This works perfectly in windows.  I am having issue with pasting the value to input field in Ubuntu. I have tried various ways but have not succeeded yet. I have used Xdo Library which seems to work for standard English words and numbers but doesnot work prefectly for Thai text. Here is the link to the code i have used .   I believe there is an alterante for 'clip' command in Ubuntu that will do the trick.   The  here deals with files, but I am using specific texts (Thai texts to be precise which requires tis-620 decoding) which are not supported easily.


I have these 2 queries below that I use to calculate net profits from Jan to Dec.  Query 1  /* Profit for the Period 13 */ SELECT * FROM ( SELECT MONTH(T0.RefDate) AS Month, '311999' AS 'SAP Code', 'Period Profit' AS 'Description', SUM (T0.[Credit] - T0.[Debit]) AS 'Amount', '311200' AS 'FatherNum', 12 AS 'Group', 'Liabilities' [Liabilities]  FROM JDT1 T0 WHERE (T0.RefDate BETWEEN DATEADD(yy, DATEDIFF(yy,0,'20151231'), 0) AND '20151231')  AND T0.[ContraAct] <> '311201' GROUP BY T0.RefDate) AS q PIVOT ( SUM(Amount)  FOR [Month] IN ([1],[2],[3],[4],[5],[6],[7],[8],[9],[10],[11],[12]) ) AS query   Results:    Query 2  /* Profit for the Period 13 */ SELECT * FROM ( SELECT MONTH(T1.RefDate) AS Month, '311999' AS 'SAP Code', 'Period Profit' AS 'Description', SUM (T1.[Credit] - T1.[Debit]) AS 'Amount', '311200' AS 'FatherNum', 12 AS 'Group', 'Liabilities' [Liabilities]  FROM OACT T0 INNER JOIN JDT1 T1 ON T0.[AcctCode] = T1.[Account] WHERE (T1.RefDate BETWEEN DATEADD(yy, DATEDIFF(yy,0,'20151231'), 0) AND '20151231')  AND T0.GroupMask > 3  GROUP BY T1.RefDate) AS q  PIVOT ( SUM(Amount)  FOR [Month] IN ([1],[2],[3],[4],[5],[6],[7],[8],[9],[10],[11],[12]) ) AS query   Results:    The difference between the 2 comes in month 12. Query 1 accurately gets the Dec profit because it is an account that stores data after a process of closing the 2015 year in December.  How do I combine the two into one query such that I get all results of query 2 except for month 12 instead of -4764758.550000 I get 3280335.630000?


How to search for a word in entire content of a directory in linux

need to search for something in entire content  I am trying:  find . | xargs grep word   I get error:     xargs: unterminated quote   How to achieve this?


Death because of distilled water consumption

One of my friends said that I would die if I drank distilled water (we were using it in a chemistry experiment) I gave it a go and surprisingly did not die.  I did a bit of  and found    It said that drinking only this kind of water could definitely cause death, as distilled water was highly hypotonic and it would make the blood cells expand and finally explode and ultimately cause death.  I wanted to know exactly how much of this water on an average was needed to be consumed to cause death.


What are the technical differences between these two versions of the NCC-1701?

What are the major technical differences between the Enterprise NCC-1701 (TOS) and NCC-1701 (Abrams)? I don't recall TOS engineering looking like a sterile brewery or having a large transparent water pipe with those ridiculous blender blades. Did they both ? Are there technical manuals for both ships?  I'm not looking for an exhaustive list as it would likely be too broad. I just want major differences to try and determine if Abrams' NCC-1701 is more advanced than TOS' NCC-1701 and by how much. I prefer any in-universe answers but will accept out-of-universe explanations.


How does one get supergravity from string theory?

I know one can get the Fermi theory of weak interactions as a low energy effective theory of the electroweak interaction by writing down Feynman amplitudes for weak decay processes, noting that $\tfrac{1}{p^2-M_W^2}\approx-\tfrac{1}{M_W^2}$ for small momenta $p^2\ll M_W^2$, and then identifying the new effective coupling $\tfrac{g^2}{M_W^2}\sim G_F$ (up to some conventional factors like $\sqrt{2}$ that I don't precisely recall). I know a bit about string theory and supergravity and I've always heard that supergravity is a low energy effective theory for superstring theory, so I was wondering how that comes about? Is it a similar process or something totally different?


real-anylsis: topology, continuous maps, and metric spaces

I am so lost trying to figure out this question:  I'm not even sure what it is asking, let alone where to start. I basically only have definitions to use; but I can't seem to fit them all together to make this work:  Let $\\X$ be an infinite set, $\\a\in X$, $\Sigma$ be a set of all finite subsets of $\\X$ that do not contain $\\a$.  Prove that $\Sigma$ is the set of all closed sets for some topological structure on $\\X$ and that any two continuous maps of $\\X$ with this topological structure to the same metric space $\\Y$ coincide with each other on $\\a$ if they coincide with each other on every $b \ne a$.  Keep in mind that, even though this is an analysis course, I can only use the topological definitions and theorems from the notes, which include the basics of topological spaces, metric spaces, continuous functions, compact spaces, and connected spaces.  So while there might be some elegant way of doing this with a theorem, I have to resort to using the bare-bones definitions.


I searched all over this site and the web for a good and simple example of autocomplete using jQuery and ASP.NET. I wanted to expose the data used by autocomplete with a webservice (and will probably do that next). In the meantime, I got this working, but it seems a little hacky...  In my page I have a text box:  <input id="txtSearch" type="text" />   I am using jQuery autocomplete, set up per their example:  <link rel="stylesheet" href="js/jquery.autocomplete.css" type="text/css" /> <script type="text/javascript" src="js/jquery.bgiframe.js"></script> <script type="text/javascript" src="js/jquery.dimensions.pack.js"></script> <script type="text/javascript" src="js/jquery.autocomplete.js"></script>   Here is where it starts to get hacky... I call a page instead of a webservice:    <script type="text/javascript">     $(document).ready(function(){         $("#txtSearch").autocomplete('autocompletetagdata.aspx');     });         </script>   In the page I stripped out ALL of the html and just have this (otherwise, various HTML bits show up in the autocomplete dropdown):  <%@ Page Language="C#" AutoEventWireup="true" CodeFile="autocompletetagdata.aspx.cs" Inherits="autocompletetagdata" %>   And in my autocompletetagdata.aspx, I am using SubSonic to query, format and return data from the database (one data item per line):  protected void Page_Load(object sender, EventArgs e) {     // Note the query strings passed by jquery autocomplete:     //QueryString: {q=a&limit=150&timestamp=1227198175320}      LookupTagCollection tags = Select.AllColumnsFrom<LookupTag>()         .Top(Request.QueryString["limit"])         .Where(LookupTag.Columns.TagDescription).Like(Request.QueryString["q"] + "%")         .OrderAsc(LookupTag.Columns.TagDescription)         .ExecuteAsCollection<LookupTagCollection>();      StringBuilder sb = new StringBuilder();      foreach (LookupTag tag in tags)     {         sb.Append(tag.TagDescription).Append("\n");     }      Response.Write(sb.ToString()); }   If you don't do a LIKE query, then it returns everything that contains a match for the character(s) you type -- e.g., typing "a" will include "Ask" and "Answer" as well as "March" and "Mega." I just wanted it to do a starts with match.  Anyway, it works and it's pretty easy to set up, but is there a better way?


I would like to move my family to a new home but the speech option does not appear

I have built a new house near Dawnstar and I have all the requirements for asking my family to move but the speech option to ask them does not appear.  What am I doing wrong? By the way, I don't know if this might have something to do with it but I have asked my wife to move once before - might that be the problem?  I am playing on the PS3.


How to solve this recurrence $T(n) = 2T(n/2) + n\log n$

How can I solve the recurrence relation $T(n) = 2T(n/2) + n\log n$? It almost matches the Master Theorem except for the $n\log n$ part.


Prove that $\mathbb{Q}[\sqrt{3}, \sqrt{5}] = \mathbb{Q}[\sqrt{3}+  \sqrt{5}]$  Take $x \in \mathbb{Q}[\sqrt{3}+  \sqrt{5}]. x = a_x + b_x( \sqrt{3} + \sqrt{5}) = a_x + b_x\sqrt{3} + b_x\sqrt{5} \in \mathbb{Q}[\sqrt{3}, \sqrt{5}] \Rightarrow \mathbb{Q}[\sqrt{3}+  \sqrt{5}] \subset \mathbb{Q}[\sqrt{3}, \sqrt{5}] $  I am having trouble proving the other inclusion.


Firstly, I know i can specify default_server to force a default site, but I want to understand why nginx isn't simply picking the first defined server as .  At the end of the http section in nginx.conf I have  include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*;   /etc/nginx/conf.d/*.conf is just some default proxy config and ssl config  Sites defined are  000-default example.com zombo.com  the default site points to a local directory and index.html, the other two point at proxied servers.  000-default  server {   listen   80;   server_name  aaa-test;    access_log  /var/log/nginx/localhost.access.log;    location / {     root   /var/www/nginx-default;     index  index.html index.htm;   } }   example.com  server {      server_name example.com *.example.com ;     listen 80;      location / {         proxy_pass  http://10.245.0.19;         proxy_redirect default;     }  }   zombo.com  server {      server_name zombo.com *.zombo.com ;     listen 80;      location / {         proxy_pass  http://10.245.0.36;         proxy_redirect default;     }  }   But if I brows to the nginx servers IP, I get an answer from example.com. I've tried renaming the config files to load them in different orders, and always get example.com as the default. Even if I name its config file zzz.com  The docs say traffic with no Host header should go to the first virtual host, but I can't seem to make that happen.  If I remove example.com, then traffic goes to the default host, not zombo.com.  I'm really stumped here ...  Edit: Info requested by comment  # ls -lU /etc/nginx/sites-enabled total 0 lrwxrwxrwx 1 root root 38 Oct  3 00:05 example.com -> /etc/nginx/sites-available/example.com lrwxrwxrwx 1 root root 34 Oct  3 00:05 000-default -> /etc/nginx/sites-available/default lrwxrwxrwx 1 root root 36 Oct  2 22:58 zombo.com -> /etc/nginx/sites-available/zombo.com


how to share a folder between windows 10 and an Ubuntu which is installed on virtual box?

I want to share a folder which is on one of my drives on windows 10 with the ubuntu i've installed on virtual box.  What should i do on both of the operating systems?


Why does getch() in c not work on my mac os x?

I use mac OS X Yosemite. Getchar() works fine, but getch() does not work. It says "Implicit declaration of function 'getch' is invalid in C99.


I'm seeing a very minimalistic version of the site. How do I get the full version again?

I seem to have clicked on something that changed my display preferences. The main site is now very minimalistic, with fewer controls and different fonts.  I want to change it back, but where is it?


Proof by induction for $\left(1−\frac14\right)\cdot\left(1−\frac19\right)\cdots\left(1−\frac1{n^2}\right)$ for all natural numbers $n$ with $n \ge 2$

Make a conjecture about a formula for the product: $\left(1−\frac14\right)\cdot\left(1−\frac19\right)\cdot\cdots\cdot\left(1−\frac1{n^2}\right)$ for all natural numbers $n$ with $n \ge 2$. Then, state a theorem about the formula and use mathematical induction to prove your theorem. Any help appreciated!  I don't know what the conjecture is, thats what I need help with. All I found was the result is always between 0 and 1. I don't know if there should be something more to that or not.


How To Calculate Text Width With Javascript?

I need to calculate my text with using JavaScript. But can't find a simple and working method. Please, help me :) Thanks in advance.


How could Harry and Ron bypass Hogwarts' security in a flying Ford Anglia?

How could Harry and Ron so easily fly Mr. Weasley's car (the magically enhanced Ford Anglia) to Hogwarts, when many times in the book it is mentioned that Hogwarts is protected by various spells, such that even Dumbledore had to revert all the security spells in Harry Potter and the Half-Blood Prince so that Harry and Dumbledore could enter Hogwarts on a broomstick?


Make 15 lines / ticks with Photoshop, each of them rotated of 20°

I would like to draw a few short lines, each of them rotated from the previous one of 20°, to do a knob graduation (here only 9 ticks). How to do this in Photoshop?


What problem does double or triple buffering solve in modern games?

I want to check if my understanding of the causes for using double (or triple) buffering is correct:  A monitor with 60Hz refresh's the monitor-display 60 times per second. If the monitor refresh the monitor-display, he updates pixel for pixel and line for line. The monitor requests the color values for the pixels from the video memory.  If I run now a game, then this game is constantly manipulating this video memory.  If this game don't use a buffer strategy (double buffering etc.) then the following problem can happen:  The monitor is now refreshing his monitor-display. At this moment the monitor had refreshed the first half monitor-display already. At the same time, the game had manipulated the video memory with new data. Now the monitor accesses for the second half monitor-display this new manipulated data from the video memory. The problems can be tearing or flickering.  Is my understanding of cases of using buffer strategy correct? Are there other reasons?


Moderators can't reset a user's network profile

Moderators have the ability to clear a user's profile on our site, if it violates site policy.  We also have the ability to copy these changes to the user's profiles on other sites.  However, doing this apparently leaves the network profile unchanged.  This is surprising and unexpected.  It seems like a design flaw.  There are circumstances where a moderator needs to clear a user's profile (e.g., because it is abusive or violates our guidelines).  In those circumstances, we need to clear the user's network profile, too.  Moderators should be given that capability, without needing to contact a community moderator.  I don't see much of a risk or harm.  Also, when we need to clear a user's profile because of abusive content, there is no indication that clearing their profile leaves the network profile untouched, or that we need to contact a CM.  This is a trap for the unwary.  I'd go farther and suggest that in every situation where a moderator changes a user's profile and copies it to all other public sites, it should also change the network profile as well.  For moderators: I'm referring to the interface in the tab labelled "Edit profile and settings", and specifically the button labelled "Save and copy changes to all public communities".


Cheapest flight to anywhere at any given time

I'm looking to take a spontaneous trip for a long weekend. The date is flexible and the destination can be anywhere in the world. Is there a site that would allow me to search airfares within a date range, while keeping the destination parameters open?


What is a question page's title made up of?

Take a look at this image:    It appears the page's title's is made up of someTag, dash, question title, but what tag is someTag?  This question has three tags, yet it shows the singlepage tag out of all three, so what is the tag that appears in the page's title and why?


What is the good practice of learning LaTeX for a CSE student?

A CSE student has knowledge about some programming language. So, learning LaTeX is not so hard for him. And he also familiar about some indentation and syntax of different language.   Now , what is the starting point and practice for a CSE student for leaning LaTeX completely.   In addition  , if he uses a Linux as OS and  vim as text editor.


Show a holomorphic function on unit disc with with $|f'(z) - f'(0)| < |f'(0)|$ is injective

I am working on the following question:  If $f(z)$ is holomorphic on the unit disc with $|f'(z) - f'(0)| < |f'(0)|$ for all $z$ in the unit disc, then f is injective.  I've had several thoughts, but I don't really seem to be getting anywhere.  I defined a new function $g(z) = \frac{f(z)}{f'(0)} - z$.  Then $|g'(z)| < 1$.  I picked two distinct points, $z_1$ and $z_2$, took a path between them, and integrated $g'$ along a path between them.  But the best estimate I got from this was $|g(z_1) - g(z_2)| \le |z_1 - z_2|$.  If I has a strict equality, I can see how this would be enough to show that $f(z_1) \not = f(z_2)$, but I don't see how to make the inequality strict.  I thought about seeing if I could use the Schwarz lemma somehow instead, but I don't see how I would know that $g(0) = 0$ or $g'(0) = 0$, and even if I could so that I'm not sure that Schwarz would be useful here.    Any advice would be appreciated.


Book set in contemporary times about a travel writer who is inducted into the world of the supernatural

I read it within the last 3-4 years in the United States in English, and I think it was a relatively new book at the time. The protagonist is a female, I think recently laid off from her job as a travel writer. She finds a notice on a messageboard (at a coffee shop?) for a local business looking for travel writers. She bulls her way into an interview despite them repeatedly telling her she's not suitable, and finds that the business caters to supernaturals. Long story short, despite her relative frailties and ignorance, she's engaged to build a guide to exploring the city when you're a vampire, a zombie, or the like. Most aspects of the supernatural are fairly traditional. Vampires need to drink blood and can hypnotize people with their gaze. Zombies are slow rotting corpses and eat brains (although there's a slight twist in that the brain-eating is an addiction of sorts and being without them results in them going on rampages to get their fix). I want to say that the human resources woman is a water-spirit of some sort.   Plot developments included the delivery of the zombie's brains being disrupted, nearly resulting in a rampage, a shadowy organization dedicated to killing the supernatural which the main character gets mixed up in, and a fortune-telling witch who favors the protagonist for being willing to buy her a coffee. The witch is somehow tied into the supernatural-slaying group, although I forget exactly how.  I'm pretty sure that it was set in a real-world city, maybe New York. The title might include the name of the city, and I think was entitled something like "Things to Do in Denver When You're Dead" (no, it's not that movie or book). The cover was mildly cartoonish and showed the protagonist walking down a street with some supernatural characters sprinkled in the background.


Conceptual understanding of bringing limit inside the sum

Does anyone know why bringing the limit inside the sum doesn't work sometimes, other than the fact that sometimes the resulting answer contradicts the answer when the limit is not inside the sum?


Block all but specified range of ip's input to an specific port

In a CentOS 7 web server, how do I configure firewalld to block all but a specific list of ip addresses from making successful http or https requests?  I know that I can use httpd.conf to restrict by ip, but how can I get firewalld to restrict by ip? What file? Do I use firewall-cmd? What syntax?  I imagine this involves creating one or more rich rules, which are described in . But I want to make sure that I do this properly. For example, would one rule specify rejecting all http/s requests from anyone?  And then would another rule be required to approve http/s requests for each specific ip?  Would the rule be for the service http/s, or would the rule be for the port 443?  Or some combination? What about logging the rejections and acceptances?


Please help me. I need gambas3-gb-qt4-webkit (>=3.8) very badly! It is required by Estru3D software for installation. I have installed gambas3-gb-qt5-webkit_3.8.4-2ubuntu3_amd64, but Estru3d won't recognize it at all!! I can't find that file anywhere!


I would like to create a function that accepts Double mean, Double deviation and returns a random number with a normal distribution.    Example: if I pass in 5.00 as the mean and 2.00 as the deviation, 68% of the time I will get a number between 3.00 and 7.00  My statistics is a little weak…. Anyone have an idea how I should approach this?  My implementation will be C# 2.0 but feel free to answer in your language of choice as long as the math functions are standard.  I think  might actually be what I am looking for.  Any help converting this to code?  Thanks in advance for your help.


I have a long string with some placeholders like %name% which should be substituted with a value given by a dict. According to  link, I was able to solve it. Some parts however should only be included in the returned string, if another parameter is True. For example with this formatting: >>optional:This should only get printed, if 'optional' is True<<  I might get it to work, but I was not able to create a regex expression that works also with multiline import re   # This works (https://stackoverflow.com/questions/26844742/advanced-string-replacements-in-python) def replaceParameter(string, replacements):   return re.sub('%(\w+)%', lambda m: replacements[m.group(1)], string)  # This does not work def replaceOptionalText(myString, replacements):   occurences = re.findall(">>(.*?):(.*)<<", myString, re.MULTILINE)   # ... #  myLongString = r"""My name is %name%. I want to >>eat:eat some %food%. (in two lines)<< >>drink:drink something<< """  replacements = {   'name': 'John',   'eat': True,   'food': 'Apples',   'drink': False, }  myLongString = replaceOptionalText(myLongString, replacements) myLongString = replaceParameter(myLongString, replacements) print(myLongString)  with the expected Output: My name is John. I want to eat some Apples. (in two lines)


Unity not working after changes using compiz config

I have made some changes to effects using compiz config, however ever since doing this the launcher, taskbar, and borders around windows has disappeared.   I have tried reinstalling unity and compiz through terminal (via ALT-F1), but to no avail, any advice would be greatly appreciated.


Incorrect datetime format 'YYYY-MM-DDThh:mm:ss.sssZ'

I am trying to convert this tring into a datetime object so I can remove the timezone. I am using the strptime function to turn it into a datetime object createdAt = datetime.strptime(createdAt, 'YYYY-MM-DDThh:mm:ss.sssZ'). However, even though this looks correct I still get the error: ValueError: time data '2020-11-26T18:53:09.284Z' does not match format 'YYYY-MM-DDThh:mm:ss.sssZ'. After I do this I plan to use the code createdAt = createdAt.replace(tzinfo=None) to replace the timezone info. Can someone tell me how my format is incorrect?


Have the physical properties of Kryptonite been discussed?

I am wondering if, for example, kryptonite is supposed to be to like radium or some other radioactive metal is to humans to Superman? Is it radioactive in a conventional sense? Does it decay, have a half-life? Or does it bear no resemblance to other elements? Is it even supposed to be an element or is it a compound? Does it melt? Of course, I am asking based on what has been disclosed in comics/novels/movies. It does not seem to me that any substance would affect a human as rapidly as kryptonite does, maybe some gas like fluorine would but not merely being in the presence of solid form of any element. I think a human could even hold Pu or radium for minutes or longer without noticing a problem.


Can I use any 5 volt 2 ampere (that is, 10 W) charging adapter to charge my iPad 2018?

My iPad's charging adapter has malfunctioned. The lightning to USB cable is fine. My place is likely to be under a Covid19 lock down for at least two more weeks, so I cannot get a replacement soon.  Can I meanwhile use an android charging adapter to charge my iPad?  I checked the specs. The apple adapter has 5.1 V X 2.1 Amp output (10 W). My Android (Motorola) adapter is 5 V X 1.6 A (8 W) output. I have another android adapter (Vivo) with 5 V X 1 A output (5 W).  I tried the android adapters briefly. They are working with the iPad.  I connected the iPad to my windows PC. There it is charging very slowly (~6% per hour).  There is one complication with the Motorola adapter. It also has 2 turbo charging modes- 9 V X 1.6 A (~15 W) and 12 V X 1.2 A (~14.5 W). But these turbo charging modes only work for a supported device, otherwise the output is simply the 5 V X 1.6 A one.   But, to play it safe, should I use the other adapter with a single 5 W output?  Should I even try these android adapters?  I do feel that what really matters is the voltage and the current of the supply. Still, I do not want to wreck my iPad, and that too in the middle of a lock down.  If the charging is fast enough, do I really need to get the apple charging adapter later?


Which positive integers can NOT be written as a sum of consecutive positive integers

I have been wondering about this question for a while (I am almost sure that I read it in some contest mathematics book a while ago)     Determine which positive integers cannot be written as a sum of consecutive positive integers.   All numbers will be considered positive integers in the following unless stated otherwise.   I was thinking as follows: odd numbers will always work since if we take an odd $m$, we have  $$ m=2\cdot k+1=k+(k+1). $$   Then I realised that all numbers having at least one odd prime factor will also work. Take $n$ as a number having an odd prime factor and let this odd prime factor be $m$ and let $n=m\cdot k$. Then $$ n=\underbrace{k+k+\ldots+k}_{m \ \text{times}} $$ and since $m$ is odd, say $m=2\cdot l+1$ we have $$ n=\underbrace{k+k+\ldots+k}_{l \ \text{times}}+k+\underbrace{k+k+\ldots+k}_{l \ \text{times}} $$ and we can start moving $1$s one by one from the left side of the middle "$k$" to the right side of it $$ n=\underbrace{k+k+\ldots+(k-1)}_{l \ \text{times}}+k+\underbrace{(k+1)+k+\ldots+k}_{l \ \text{times}} $$ $$ n=\underbrace{k+k+\ldots(k-2)+(k-1)}_{l \ \text{times}}+k+\underbrace{(k+1)+(k+2)+\ldots+k}_{l \ \text{times}} $$ this way we end up in a sum of consecutive integers. It may happen that some integers on the left will be negative which is undesired but since these numbers are consecutive integers we always be able to cancel out the negative ones without disturbing the structure of the uncancelled ones. To see this in action let us take $22=11\cdot 2$. This would give $$ 2+2+2+2+2+2+2+2+2+2+2 $$ so $$ 2+2+2+2+1+2+3+2+2+2+2 $$ the next step gives $$ 2+2+2+0+1+2+3+4+2+2+2 $$ it seems that now we are out of numbers but we just continue moving an increasing number of $1$s to the right $$ 2+2+(-1)+0+1+2+3+4+5+2+2 $$ $$ 2+(-2)+(-1)+0+1+2+3+4+5+6+2 $$ finally $$ \underbrace{(-3)+(-2)+(-1)+0+1+2+3}_{=0}+4+5+6+7 $$ so we get $$ 22=4+5+6+7. $$  Now we have a method to generate the desired expression for all odd numbers and all the ones having at least one odd prime factor. Which numbers are left? The ones having ONLY even primes in their prime factorisation. These are of the form $2^n$. I was thinking what do these have in common and I thought that they are separated by a factor of $2$. The first of these are $1$ for $n=0$ and $1$ cannot be expressed in the desired for so if I could show that  $$ m \ \text{cannot be expressed}\Rightarrow 2m \ \text{cannot be expressed} $$ I am done. So I was trying to show the contrapositive $$ 2m \ \text{can be expressed}\Rightarrow m \ \text{can be expressed}. $$ So assume that $2m$ can be expressed. Now, eihter $m$ is odd in which case we are done since odds were easy to express or it is even, that is $m=2l$. From here the argument repeats. Eihter $l$ is odd in which case we are done or it is even, so $l=2k$ and so on. After a while we factored out all of the $2$'s and we end up with and odd number which we can express and we are done.  So integers of the form $2^n$ cannot be expressed in this form.  Is my reasoning correct?  If not please point out where I made a mistake. If it turns out to be correct then we are all happy I can sleep well tonight but it would be nice to see a more rigorous proof of this so if someone can provide one I am more than happy to read it. Since this is a contest question I expect it to have a really elegant solution and I do not consider mine an elegant one.


How to get the PropertyName of a class？  For example, How can I get the PropertyName "StudentName" of a Student class instance.  public class Student {     public string StudentName{get;set;} }   Student student = new Student();  //I want to get the PropertyName "StudentName" student.StudentName.GetName();


The title says it really. Why is  so special?   I'm just curious as to how and why the term 'special' came to describe the theory of relativity where gravitational forces are negligible. I guess there was a need to distinguish it somehow from general relativity, but it still seems a slightly strange choice. Can anyone shed any light on the history of this?  Are there any versions of relativity that aren't special?


set workspace for MavensMate projects on Mac OS

I followed  .But I am getting below error on step 5 for OSX (workspace path like /Users/Andy Ray/Documents/mm_workspace)  Error trying to parse settings: Expected value in Packages/User/mavensmate.sublime-settings:1:1


Each element of a ring is either a unit or a nilpotent element iff the ring has a unique prime ideal

Let $R$ be a ring. Prove that each element of $R$ is either a unit or a nilpotent element iff the ring $R$ has a unique prime ideal.  Help me some hints.


New to c#. I want my program to count the amount that a specific letter appears in a string.  public static int countLetters(string word, string countableLetter) {     int count = 0;     foreach (char c in word)     {         count++;     }     return count; }


Correct way to delete unnecessary files from /boot directory (Ubuntu)

Currently there is not enough space on by /boot partition/folder and the sofware update can not be performed.   Question: how should I correctly free-up some space in that directory?  Here is the listing:  root@mindaugas-ubuntu-14:/boot# ls -la total 156607 drwxr-xr-x  4 root root     3072 Kov 12 09:37 . drwxr-xr-x 24 root root     4096 Kov 23 23:36 .. -rw-r--r--  1 root root  1163858 Rgs  4  2014 abi-3.13.0-36-generic -rw-r--r--  1 root root  1164720 Grd 16 03:17 abi-3.13.0-44-generic -rw-r--r--  1 root root  1164967 Sau 13 22:12 abi-3.13.0-45-generic -rw-r--r--  1 root root  1164852 Kov 10 22:43 abi-3.13.0-46-generic -rw-r--r--  1 root root   165671 Rgs  4  2014 config-3.13.0-36-generic -rw-r--r--  1 root root   165748 Grd 16 03:17 config-3.13.0-44-generic -rw-r--r--  1 root root   165748 Sau 13 22:12 config-3.13.0-45-generic -rw-r--r--  1 root root   165748 Kov 10 22:43 config-3.13.0-46-generic drwxr-xr-x  5 root root     1024 Kov 12 09:37 grub -rw-r--r--  1 root root 29225220 Rgs 25  2014 initrd.img-3.13.0-36-generic -rw-r--r--  1 root root 29264463 Sau 24 20:22 initrd.img-3.13.0-44-generic -rw-r--r--  1 root root 29267419 Vas 23 20:30 initrd.img-3.13.0-45-generic -rw-r--r--  1 root root 29268175 Kov 12 09:37 initrd.img-3.13.0-46-generic drwx------  2 root root    12288 Rgs 14  2014 lost+found -rw-r--r--  1 root root   176500 Kov 12  2014 memtest86+.bin -rw-r--r--  1 root root   178176 Kov 12  2014 memtest86+.elf -rw-r--r--  1 root root   178680 Kov 12  2014 memtest86+_multiboot.bin -rw-------  1 root root  3386479 Rgs  4  2014 System.map-3.13.0-36-generic -rw-------  1 root root  3388834 Grd 16 03:17 System.map-3.13.0-44-generic -rw-------  1 root root  3389258 Sau 13 22:12 System.map-3.13.0-45-generic -rw-------  1 root root  3389458 Kov 10 22:43 System.map-3.13.0-46-generic -rw-------  1 root root  5806848 Rgs  4  2014 vmlinuz-3.13.0-36-generic -rw-------  1 root root  5814496 Grd 16 03:17 vmlinuz-3.13.0-44-generic -rw-------  1 root root  5814112 Sau 13 22:12 vmlinuz-3.13.0-45-generic -rw-------  1 root root  5814592 Kov 10 22:43 vmlinuz-3.13.0-46-generic   There was a mention of it here:      $ sudo apt-get remove linux-image-2.6.31-21-generic   but will it delete all the files?


I am learning powershell, and am curious as to why the syntax Remove-Item does not put the file(s) in the recycle bin?  Where do these files go when you remove them, and are they recoverable?  I read the  article, but did not see anything in there that answered my question, so I ask here.


Javascript remoting: to invokeAction or not to invokeAction

Digging in deeper to Javascript Remoting and I'm a bit confused.  The  starts off by showing how to set up everything and uses code like the following:  function getRemoteAccount() {     var accountName = document.getElementById('acctSearch').value;      // This remoting call will use the page's timeout value     Visualforce.remoting.Manager.invokeAction(         '{!$RemoteAction.AccountRemoter.getAccount}',         accountName,          handleResult     ); }   However, I've also seen examples where Visualforce.remoting.Manager.invokeAction is never called.  They end up looking something like the following:  function getText() {   var text = "";   JSRemotingBasicsController.doGetText(     function(result, event) {       // do something here     }   ); }   I'm wondering what is the point to using Visualforce.remoting.Manager.invokeAction when you can just reference the RemoteAction directly like the second example?  Is there something I'm missing?  Is there a time where the second example doesn't work?


$f \in C^1$ defined on a compact set $K$ is Lipschitz?

Let $f: \Omega \subseteq \mathbb{R}^N \to \mathbb{R}^M$ be $C^1$, and $K \subseteq \Omega$. Prove that $f \mid_K$ is Lipschitz.    Letting $x,y \in K$, I know that $f$ is loccaly Lipschitz, I thought about taking a finite subcover of $K$ by  the open cover of the balls which makes $f$ locally Lipschitz, and then take a sequence of $x_k, k=0,\dots, n$ in such that $x_0 =x$ and $x_n=y$, $x_k =y$ and $(x_i)$ are aligned, then try to use $|f(x)- f(y)| \le \sum_{i=1}^{n}|f(x_{i=1})- f(x_i)|$. But the very first problem is to take this sequence as $K$ is not necessary convex.  Again, if $K$ was convex I would make use of the Mean Value Innequality and that $K$ is compact to limit the value of $||Df_{p}||$, but as it is not the case I don't know how to procede.   So how can I avoid that? Does it hold for a general $K$ compact?  Finally, I am aware of this , but his question ,at the end, was only concearning the continuity, which I already know how do deal with there was no useful answer, nor comment for me, I apologise if I acted wrong by oppening a new one.


How can I find out what application is using the command line?

I occasionally see the Windows command line window open and close quickly after. I recently formatted, and I'm seeing the issue again.  It's irrationally annoying me, and I was wondering if there's a way to find out what's causing it.


Could not get lock ... Resource temporarily unavailable after running sudo apt update (Error 11)

I have a fresh installation of Ubuntu 18.04-x64.  In the terminal I enter the command:  sudo apt update   And I get the following error:  E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/lib/apt/lists/   When I run sudo apt update again, the command runs successfully and I get:  Reading package lists... Done                                                   Building dependency tree        Reading state information... Done 103 packages can be upgraded. Run 'apt list --upgradable' to see them.   This behaviour is consistent. I have a VM snapshot of the fresh Ubuntu installation and everytime the first sudo apt update fails with this error and the second sudo apt update completes successfully.  EDIT: Should have mentioned that the sudo apt update command lies inside a script. Running the script with sudo privileges seems to have fixed the problem.


I am trying to reduce image size to less than 20kb (Dimension 940*884 )for a eCommerce website. Using features of photoshop cs6 I am able to reduce image size to around 65kb. Below which the image gets distorted.  Wondering how to solve this, I downloaded a similar image from web of less 20kb. Saved it again via photoshop(using default setting) to only find it saved as 80kb. Am I missing any photoshop settings which is always increasing the size? Any help is greatly appreciated.  Note: All images are jpeg.   Change of question: I am unable to find my previous example. Let me give another example. I have downloaded a pic from the following link: flipkart.com/puma-pulse-5000-flex-tech-wicket-keeping-pads/p/… Now, The dimension of this pic is 252*400 and size is 32 kb. I open the same image in photoshop. Go to save for web option. Choose 100% quality, click save. The image gets saved as 48 kb. Why this increase in kbs? What should be done to avoid the increase in size and keep the kb size as good as original 32 kb!


How do I prove $[G:H\cap K]\leq [G:H][G:K]$?

Reference:   Let $G$ be a group. Let $H,K$ be subgroups of $G$. How do I prove that $[G:H\cap K]\leq [G:H][G:K]$?  Let's not assume any index is finite. Then, still the result holds? If so how do I prove it?


C ++ undefined reference when inheriting from template class

I have MapListDialog which inherits from base class ListView. But I have problem with "undefined reference to" by MapListDialog constructor definition.  //create instance in main.cpp mapListDialog = new MapListDialog(this);   Definition for MapListDialog inherited from ListView  src/modes/MapListDialog.h   #include <controls/ListView.h>  class MapListItem {  public:     const char *label;  };  class MapListDialog : public ListView<MapListItem> { public:     //***compiler fails at line below ***     MapListDialog(BaseView *parent): ListView<MapListItem>(parent) {};     ~MapListDialog() {};     };   Definition of ListView  src/controls/ListView.h  #include "Dialog.h"  template<class T> class ListView : public Dialog { public:     ListView(BaseView *parent);     ~ListView(); };   src/controls/ListView.cpp  #include "ListView.h"  template<class T> ListView<T>::ListView(BaseView *parent):Dialog(parent) {}  template<class T> ListView<T>::~ListView() { }   I think, is not necessary put here definition of Dialog, but for every case...  class Dialog : public BaseView {     Dialog(BaseView *parent);     ~Dialog(); }  class BaseView { public:     BaseView(BaseView *parent);     ~BaseView(); }      MapListDialog.h:23: error: undefined reference to   'ListView::ListView(BaseView*)'


Loading locations faster in ArcGIS Network Analyst?

I am currently using ArcGis Network Analyst to calculate an OD cost matrix.  I was wondering whether there is a faster way to  (origins, destinations and barriers) because my current rate is around 10 locations loaded per second (which is quite slow for I have about 7.000 points to load).  Moreover, is there a way to save these locations in order to use them later?   I think of origins/destinations but also of the barriers. I didn't find anything about this in the ArcGIS documentation.


In s matrix calculation we use in and out states. I have few doubts about in and out states.  In which representation do we discuss about in and out states (Heisenberg picture or interaction picture)? In and out states are called asymptotically free particle states. Why?


Need a hint to start prove an inequality

wan't know how to start this problem, tried to multiply by $\sqrt{n}$, but it does not work. Can someone help me with that? Thanks. Here is the inequality.  $$2(\sqrt{n+1}-\sqrt{n}) < \frac{1}{\sqrt{n}} < 2(\sqrt{n}-\sqrt{n-1})$$


Question weight recount, does it retroactively affect daily limit counters?

Can anyone say whether the complete recount of question voting changed counters such as the one for the Legendary badge?


Looking for a market price algorithm for a turn based game

I am new at game development and am now facing the problem for a market price algorithm in a turn based game. What I try to achieve:  the market starts with fixed bidding and asking prices for one piece of goods. To keep it simple the minimum value is 1, the maximum 20 if the user buys/sells the same goods in too large quantities in a certain amount of turns, the prices should rise/drop; simple supply and demand logic. The maximum amount of a goods per transaction is 100 if the user doesn't trade that good for a few turns, it should adjust the price in the other direction there are certain type of goods that can be "easily" produced by the player and are thus sold and some that are harder to get by and are usually bought. the market can sell each good infinitely and would also buy everything, so it has no stock to take into account.  What I tried and didn't work:  if the accumulated quantity of bought/sold good reaches 500 (I use negative values for buying) the price rises or drops by 1 respectively to factor the turns into it, I thought I just reduce the accumulated value by 10 each turn and then adjust the price if it reaches 0 again. This has one big flaw, as you can easily cheat by just selling a small amount, wait a few turns and the price will rise; repeat until the price reaches the maximum of 20.  Any simple ideas on how to fix this? ps. I hope this is an appropriate question to ask here


If an edit was suggested to an answer to my question and I go to this edit, I see the checkmark

For example,  edit was proposed to an answer to my question. The bug is I see the checkmark when I go to this edit (I can't click checkmark however).


How to change font without changing document font

Surely this is easy, but I'm just beginning.  I've created a font and I want to change "My Words Here" without modifying the document font for the rest of the page.  I'm sure I just have the syntax wrong.  How do I fix it?  \newfontface\Gentium{Gentium}  \begin{Gentium} \begin{center} \begin{huge} \textsc{My Words Here} \end{huge} \end{center} \end{Gentium}


I'm running Ubuntu 18.04. I haven't done much to it besides installed Google Chrome, git and sublime text 3.  Multiple apps sometimes become frozen after use. Why?  For example, sometimes after using Firefox (59.0.2) just fine for a while it will suddenly only display the page I'm on with a  cursor. Any action attempts (e.g. scrolling, link clicks, highlighting etc.) have no effect. Can't even close the app.  I don't know what brings this behavior about on Firefox but I can consistently repare it on Sublime Text 3 (3143) by launching the app then giving it a CTRL+O command. Game over.  Any ideas?   has great ideas for an infrequent issue that one could live with. But this is happening many times per day to me, making 18.04 almost unusable. So I need an actual fix. The ideas in that link do not permanently fix my issue.  Here's my hardware: Dell Inspiron, 8GB memory, Intel Core i7-3612QM CPU @ 2.10GHz x 8, Intel Ivybridge Mobile graphics


Confusion regarding the usage of "till" and "until"

Can you explain the difference between the till and until using some examples? I am confused in this. When should I use till? And, When should I use until?


I'm stuck in a teleporting loop. What can I do?

I set a command block to /tp. It was supposed to activate only if you had 0 time left, and to activate the command block with a hopper clock to keep giving it power.   But it is not checking if you have 0 time left, so it keeps teleporting me. I can't get close enough to the command block to break it, so I'm stuck in a neverending teleport loop.  Any ideas?


Making a simple Keras classification with a low sample size

I am trying to learn Keras and rather than starting with a large dataset I dont understand, I figured it would be better to create a simple dataset that in theory should be abe to have a 100% succesful prediction rate, but it only predicts 16.67% correct (?).  I tried to adjust some of the the epoc and batch_size values, but nothing works. What should I do here. Thanks in advance.  X = [0,1,2,3,4,5,6,7,8,9,10,11,12] Y = [0,0,0,0,0,0,0,1,1,1,1,1,1] le = 1  encoder = LabelEncoder() encoder.fit(Y) encoded_Y = encoder.transform(Y)   def create_baseline():      model = Sequential()     model.add(Dense(le, input_dim=le, kernel_initializer='normal', activation='relu'))     model.add(Dense(1, kernel_initializer='normal', activation='sigmoid'))      model.compile(loss='binary_crossentropy', optimizer='adam', metrics=['accuracy'])     return model   estimator = KerasClassifier(build_fn=create_baseline, epochs=1, batch_size=12, verbose=0) kfold = StratifiedKFold(n_splits=2, shuffle=True, random_state=seed) results = cross_val_score(estimator, X, Y) print("Results: %.2f%% (%.2f%%)" % (results.mean()*100, results.std()*100))


Recently installed ubuntu 18.04 erasing windows, and show no wifi adapter found

on typing : lspci -vnn | grep Network it showed : 03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:d723]  I am using HP Notebook - 15q-by004ax Wifi was working on windows.


c++ define variable inside switch statement - defining with/without initializing

I know lot of questions stackoverflow on this topic one but I did't find answer to this one.  struct message {     int  myint; };  int main(void) {   switch(1)   {     case 0:       break;     case 1:       int i; // this is fine, but int i = 10; is compile error       break;     default:       break;   }   return 0; }   Logically speaking why is defining variable and initializing it with some value is different than just defining variable for 'case labels'?


How to Restore/Reset Unity after Messing up with Unity Tweak tool?? [Ubuntu 16.04 LTS]

So I had my perfect desktop and everything was running smooth, and then I decided to press one button on the Unity-Tweak-Tool Software and Booom, my unity-panel is gone, I can't access unity-dash and the themes don't apply correctly.    The button that messed up everything [Restore Defaults]:    My Desktop now (no Unity-Panel, Can't access Unity Dash, theme decorations to windows borders doesn't work):  I am running Ubuntu 16.04 LTS


Does a Ghana citizen need $3000 in hand to travel to the USA?

I have met a girl online and wish to bring her to the USA. We have talked on the phone and via video chat. All documents are in order but they say she needs $3,000 (USD) in hand to travel.   Is this true?


Linearity of Lebesgue measure: $\mu(AV)=|\det A|\mu(V)$

Suppose $\mu$ is the Lebesgue measure defined on $\Bbb R^k$, I want to show that $\mu$ has some kind of linearity, which seems intuitively correct:      Suppose $A$ is a linear transformation on $\Bbb R^k$ (namely, a square matrix), then given any Lebesgue measurable subset $V$,    $$\mu(AV)=|\det A|\mu(V),$$   where $AV:=\{Av\mid v\in V\}$.   I'm almost sure of it. But I couldn't find a proof about this property in any literature at hand.   I don't think the proof should be hard, though, if the elementary case has been proved. But that's exactly where I get stuck: how am I supposed to, for example, prove the $V=[0,1]^k$ case? Now if this can be proved, then I may just use elementary sets (unions of $k$-cells each two of which share an at most measure zero set) to approach $V$ and the result follows.  Could anyone help me on this part or give me other insights about the proof? Thanks in advance.


My rear bike wheel is wobbling back and forth when I ride. Nothing that I have done has worked and I was told that it was gonna cost $100 or more to fix. what do I do to fix it properly?


Example of a Subgroup That Is Not Normal

Can you kindly provide an example of a subgroup that is not normal?  I have been told many times that, for coset multiplication to be defined, the subgroup must be normal.  I have seen the proof and examples of quotient group multiplications.  Now, I am trying to find out where the process will break down if the subgroup is not normal.  Suppose that $x \in a_1H = a_2H, y \in b_1H = b_2H$, where $H$ is not normal. So $x = a_1h_1 = a_2h_2$ for some $h_1, h_2 \in H$, and $y = b_1h_1^* = b_2h_2^*$ for some $h_1, h_2 \in H$.  $xy = (a_1b_1)(h_1h_1^*) = (a_2b_2)(h_2h_2^*)$.  However, both $h_1h_1^*, h_2h_2^*$ are still elements of $H$.  So I don't see how $a_1b_1H \neq a_2b_2H$.


Finding tax income based on marital status

I'm doing this java homework of finding the tax income based on marital status using the if else statements and joptionpane. The issue is after getting the tax and marital status inputs the output doesn't show up it just terminates the program. There no errors also.  I tried putting a semicolon after the first if statements and it somehow works but it shows 2 different outputs instead of 1   public class Program_4_2 {  public static void main (String[] args) {  String status; String tax; double tax_income;  status = JOptionPane.showInputDialog("Please enter s for single, m for married: "); tax = JOptionPane.showInputDialog("Enter Your Tax Income: "); tax_income = Double.parseDouble(tax);  // SINGLE TAX; if (status == "s") {     if (tax_income > 0 && tax_income < 8000)         {         tax_income = tax_income * 0.1 + 0;         JOptionPane.showMessageDialog(null, "Your Tax is " + tax_income);         }      else if (tax_income > 8000 && tax_income < 32000)         {             tax_income = (tax_income - 8000) * 0.15 + 800;             JOptionPane.showMessageDialog(null, "Your Tax is " + tax_income);         }     else if (tax_income > 32000)         {             tax_income = (tax_income - 32000) * 0.25 + 4400;             JOptionPane.showMessageDialog(null, "Your Tax is " + tax_income);         } }  // Married Tax if (status == "m") {     if (tax_income > 0 && tax_income < 16000)         {             tax_income = tax_income * 0.1 + 0;             JOptionPane.showMessageDialog(null, "Your Tax is " + tax_income);         }      else if (tax_income > 16000 && tax_income < 64000)         {             tax_income = (tax_income - 16000) * 0.15 + 1600;             JOptionPane.showMessageDialog(null, "Your Tax is " + tax_income);         }     else if (tax_income > 64000)         {             tax_income = (tax_income - 64000) * 0.25 + 8800;             JOptionPane.showMessageDialog(null, "Your Tax is " + tax_income);         } }  } }   An example output would be :     user input status -> "s" -> user then inputs tax -> "9000" -> output should show -> "950" or "900" if the status input is m


What size wire do I need for a 100A subpanel?

I'm installing 200 amp service in a shop, and I am going to feed my house with a 100 amp sub panel. I want to use aluminum wire for this run. What gauge of wire I should use?


Suppose we have $X_1, X_2,\dots X_n$ from some distribution $F$. We can then form the empirical distribution $F_n$ by saying:  $$F_n(x)=\frac{1}{n}\sum_{i=1}^n\mathbb{I}_{\{X_n\leq x\}}$$  I find it hard to visualize why does this distribution put weight $\frac{1}{n}$ to each observation $X_i$ since the graph is a step function. Any help is appreciated


If cancellation laws hold, then a finite semi-group is a group

Show that if both cancellation laws i.e $w.a = w.b \implies a = b$ and $a.w = b.w \implies a = b$ holds then a finite semi-group (a finite set with associative binary operation) is a group.   I have seen some proofs which uses the alternative definition of group to prove it i.e. $a.x = b$ and $y.a =b$ have unique solutions for $x$ and $y$. I am not interested in such proofs.   How to prove this statement starting with cancellation laws and then showing that all axioms of group can be derived from them?  EDIT : As pointed out in one of the answer. This is only true when underlying set is finite. Edited accordingly.


When did the Death Star 2 construction start?

I think it's safe to assume (although probably well known to everyone except me) that the DS2 construction was started long before the DS1 was blown up. As it took nearly 20 years for the DS1 to be completed, when did the construction of DS2 begin?


Does the $\int_{-\infty}^\infty e^{{-x}^2} \, dx$ integral converge?

I got this exercise as an optional challenge for students.  This integral is supposed to converge, and in fact, , but I'm looking for something more detailed, integral there aren't shown with the detail I'd expect, hence the overall understanding of the method is somewhat difficult.  I hope I don't botter the community by asking this.  Greetings and thank you.


How do I pick a random element from a set? I'm particularly interested in picking a random element from a HashSet or a LinkedHashSet, in Java. Solutions for other languages are also welcome.


Does collecting an abandoned ship lose my old one?

Playing through the story in No Man's Sky, and just got to the part where I discover the distress beacon which reveals the name of Artemis.  Right next to it was an abandoned ship.  It had a button to "Add to Collection."  I added it, then discovered that it needs a ton of repairs.  I didn't see another ship in the map, although I didn't look that hard.  Basically I'm asking, will I be able to get my old ship back, or will I have to struggle through and repair all the new ones.  I've repaired the thrusters and hull, I think, so I should be able to get it to a station if absolutely necessary.


You can't post in 40 minutes? I haven't posted anything in two days? Is it a problem?

I am trying to post on the  Stack Exchange site, but the message I get is that you can only post once every 40 minutes. The problem is I haven't posted anywhere, anything in any community in the last two days. Why is it happening?


Let $X = \mathbb{P}^{n}$ and $\pi : \widetilde{X} \longrightarrow X$ be the blow up morphism of $X$ along a subvariety $Y$ with exceptional divisor $E$.   According to the following answer in mathoverflow , I have the following questions  1) In this case, it is true that $\pi_{*}(\mathcal{O}_{\widetilde{X}}(-mE)) = I_{Y/X}^{m}$ for $m\geq 1$?  2) I can't understand the answer from the point, Taking Proj this means that there is an embedding... (see last answer please)  I am using this result for $X = \mathbb{P}^{n} $ but, honestly, I don't understand the answer, for sure, because I am new to the subject. Could someone help me with this?   Thank you very much.


c++ calling a template function defined in separate header and cpp files

I have a simple template function,  A.h  #include <iostream> #include <vector>  using namespace std;  template<class T> pair<T, T> GetMatchedBin(T, vector<pair<T, T> >);   A.cpp  #include "A.h"  template<class T> pair<T, T> GetMatchedBin(T val, vector<pair<T, T> > &bins) {     for(unsigned int i=0; i<bins.size(); i++){         if(val >= bins[i].first && val < bins[i].second)             return bins[i];     }     return pair<T, T>(); }   which I call via,  main.cpp  #include <iostream> #include <vector> #include "A.h"  using namespace std;  int main() {     vector<pair<int, int> > bins;     bins.push_back(pair<int, int>(0, 1));     bins.push_back(pair<int, int>(1, 2));     bins.push_back(pair<int, int>(2, 3));     bins.push_back(pair<int, int>(3, 4));      pair<int, int> matched_bin = GetMatchedBin(3, bins);      cout << matched_bin.first << ", " << matched_bin.second << endl;      return 0; }   However when I try to compile this I get the error,  make g++ -o temp temp.cpp A.o /tmp/dvoong/ccoSJ4eF.o: In function `main': temp.cpp:(.text+0x12a): undefined reference to `std::pair<int, int> GetMatchedBin<int>(int, std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > >)' collect2: ld returned 1 exit status make: *** [temp] Error 1   The odd thing is that if I do this all in one file rather than dividing into header and .cpp files then it works...  Any idea what is causing this?  Thanks


I have two JSON objects, and I want to append newData into existingData.  existingData = {"School Name" : "Albert"} newData = {"Teacher Name" : "Ms. Mithcell"}   This is the output I want:  existingData = {"School Name" : "Albert" , "Teacher Name" : "Ms. Mithcell"};   How can I do this?


Can't figure out why my method isn't executing

Below is a snippet of code from a class in a simple program I'm writing that plays a simple game of Blackjack. I don't understand why the hit method isn't executing whenever, upon execution of the program, I enter "hit". It goes to the else part of the statement every time regardless of what I enter. I even added a System.out.println statement to make sure that the strings matched. I feel like I must be making a very basic mistake but I just can't seem to figure it out.      System.out.println("Would you like to hit or stand?");     Scanner input = new Scanner(System.in);     String playerDecision = input.nextLine();     //System.out.println(playerDecision);      if(playerDecision == "hit") {         hit();     }     else { System.out.println("ERROR");      }  }  public void hit(){     player.makeHand(deck.draw());     System.out.println("You have the following  cards: ");     player.getHand();     System.out.println("Your hand total is ");     System.out.println(player.findHandTotal());   }


I can't update the patches below . I get an error. How to solve this?  Check if you are using third party repositories. If so disable them, since they are a common source of problems. Furthermore run the following command in a Terminal: apt-get install -f Transaction failed: The package system is broken  The following packages have unmet dependencies:  libqt5quick5: Depends: libqt5qml5 (>= 5.12.4) but it is not installed               Depends: qtbase-abi-5-12-8 but it is a virtual package               Depends: qtdeclarative-abi-5-12-8 but it is a virtual package libqt5webchannel5: Depends: libqt5core5a (>= 5.12.8+dfsg~) but 5.12.8+dfsg-0ubuntu1 is installed                    Depends: libqt5qml5 (>= 5.12.4) but it is not installed                    Depends: qtbase-abi-5-12-8 but it is a virtual package libqt5webkit5: Depends: libicu66 (>= 66.1-1~) but 66.1-2ubuntu2 is installed                Depends: libjpeg8 (>= 8c) but 8c-2ubuntu8 is installed                Depends: libqt5qml5 (>= 5.12.4) but it is not installed                Depends: libstdc++6 (>= 9) but 10-20200411-0ubuntu1 is installed                Depends: qtbase-abi-5-12-8 but it is a virtual package                Depends: qtdeclarative-abi-5-12-8 but it is a virtual package                Depends: zlib1g (>= 1:1.2.0) but 1:1.2.11.dfsg-2ubuntu1 is installed


How to define a new \item command to produce a different color?

I am trying to define an alternative \item command that would allow me to use a different color for some of the items. My code has the following form:  \documentclass{article} \usepackage{color}  \definecolor{gray}{rgb}{0.7,0.7,0.7} \newcommand{\grayitem}[1]{{\color{gray} \item #1}}  \begin{document}  \begin{enumerate} \item First item. \grayitem Second item. \item Third item. \end{enumerate}  \end{document}   I was hoping that  \grayitem Second item.   would produce the same result as  {\color{gray} \item Second item.}   but for some reason, these are not equivalent. They produce the following results, respectively:                       Why are these two lines of code not equivalent? What am I doing wrong and how can I change the definition of \grayitem to produce the second result?  I have also tried removing a pair of braces, like this  \newcommand{\grayitem}[1]{\color{gray} \item #1}   but then the third item becomes gray as well.  The solution should also work for multi-paragraph items.


Kubuntu refuses to upgrade "E: The repository 'http://ppa.launchpad.net/gezakovacs/ppa/ubuntu disco Release' does not have a Release file."

NOTE: I know this is a duplicate, but the guides I follow don't work nor make sense.  I've been having this problem for a while now.  Running sudo apt-get update && sudo apt-get dist-upgrade leaves me with this:  Hit:1 https://dl.winehq.org/wine-builds/ubuntu disco InRelease Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease                                                                    Hit:3 http://archive.canonical.com/ubuntu disco InRelease                                                                       Hit:4 http://dl.google.com/linux/chrome/deb stable Release                                                       Get:5 http://security.ubuntu.com/ubuntu disco-security InRelease [97.5 kB]                                       Hit:6 http://deb.playonlinux.com trusty InRelease                                                     Hit:7 http://ae.archive.ubuntu.com/ubuntu disco InRelease                                             Ign:8 http://ppa.launchpad.net/gezakovacs/ppa/ubuntu disco InRelease            Get:9 http://ae.archive.ubuntu.com/ubuntu disco-updates InRelease [97.5 kB]     Err:10 http://ppa.launchpad.net/gezakovacs/ppa/ubuntu disco Release                                                      404  Not Found [IP: 91.189.95.83 80] Hit:12 http://ae.archive.ubuntu.com/ubuntu disco-backports InRelease                         Reading package lists... Done E: The repository 'http://ppa.launchpad.net/gezakovacs/ppa/ubuntu disco Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/gezakovacs-ubuntu-ppa-disco.list:1 and /etc/apt/sources.list.d/gezakovacs-ubuntu-ppa-disco.list:2   Any help? I'm on Kubuntu 19.04.


Whenever I move an object a circle appears that also affects other objects

I am not entirely sure how to even describe the issue I am having. I am making a pretty simple animation with two people and a cop car. Whenever I move one object a large white circle appears around it and anything inside the circle is affected by where and what I do with the object I am trying to move. I have looked all over but I cant seem to find a solution if anyone knows what I am talking about the help would be greatly appreciated.


I've got a loooong boot time again! This time it's crazily long! +10 min

This has become my nightmare with Ubuntu... since I'm using it (version 14.x). Everything works slick a couple of weeks after a fresh installation but I have no idea what happens in between so that suddenly I have to wait a couple of minutes for rebooting my relatively performant Laptop (a high-end ThinkPad). On the net I couldn't find a consistent solution… there are various consumptions and suggestions on changing fstab etc. but these are not the issue… Does anybody know how I could solve this?


I am reading a data mining book and it mentioned the Kappa statistic as a means for evaluating the prediction performance of classifiers. However, I just can't understand this. I also checked Wikipedia but it didn't help too: .   How does Cohen's kappa help in evaluating the prediction performance of classifiers? What does it tell?  I understand that 100% kappa means that the classifier is in total agreement with a random classifier, but I don't understand how does this help in evaluating the performance of the classifier?  What does 40% kappa mean? Does it mean that 40% of the time, the classifier is in agreement with the random classifier? If so, what does that tell me or help me in evaluating the classifier?


If I am concerned that my reputation score is incorrect, how can I audit it, or get a report of a detailed breakdown of my reputation?


I was wondering if there is a way to allow for line breaks within product lists of the siunitx package:  \documentclass{article}  \usepackage{showframe} \usepackage{siunitx}  \begin{document} This is a very long line and with a long list of numbers like this \SI[product-units=brackets-power]{128 x 256 x 512 x 1024}{\mm}.  This is a very long line and with a long list of numbers like this \SI[product-units=repeat]{128 x 256 x 512 x 1024}{\mm}.  This is a very long line and with a long list of numbers like this $(128 \times 256 \times 512 \times 1024)\,\si{\mm\tothe4}$. \end{document}     The third option does the right thing but I would really like to keep the possibility to globally define the layout of product lists in the preamble (e.g. \sisetup{product-units=brackets-power}) across the whole document. The allow-number-unit-breaks option in siunitx does not really help as I would need a way to "allow-output-product-breaks".  Any ideas how to do this? Thanks.


Who in the Potterverse manages to do magic only quite late in life?

Q: Will there be, or have there been, any “late blooming” students in the school who come into their magic potential as adults, rather than as children? By the way, I loved meeting you, and hearing you speak, when you came to Anderson's in Naperville. I can hardly wait until you tour again. JKR: Ahhh! I loved the event at Anderson’s. It was one of my favorites. That is completely true. No, is the answer. In my books, magic almost always shows itself in a person before age 11; however, there is a character who does manage in desperate circumstances to do magic quite late in life, but that is very rare in the world I am writing about. (src: )  Who was JKR referring to in “there is a character”? Clearly, it not a student; so the most obvious guess of "Neville Longbottom" is wrong – both due to “no” answer regarding the question itself, and the fact that Neville bloomed in his 6th/7th year, well before you can legitimately term “quite late in life”.


How do I create a new wifi network in Ubuntu 17.10? In older versions there is an Edit connections option in the menu bar where you can create a new wifi network. But in Ubuntu 17.10 I didn't find this option.  Without this create new wifi option I don't know how to share my internet using a wireless hotspot.  The important thing is I am trying to share a wired connection  via hotspot, not a wireless connection from hotspot.


How do I include a graphic with a caption after some text in the same page?

\documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage{listings} \usepackage{amsmath} \usepackage{amssymb} \usepackage{graphicx} \begin{document}  \section{Power Converter Topology and Electric Machine Selection} \subsection{Power Circuit Topology} The choice of power circuit topology in the design of an Integrated Starter Generator system is crucial. The associated power electronics technology used in power conversion within the ISG system has important considerations in its working capabilities in numerous applications.\\ \\ Here, either of the traditional Voltage Source Inverter or the Current Source Inverter can be used for the power conversion. A conventional VSI acts as a DC-AC buck inverter or an AC-DC boost rectifier which works with the constraint that the AC output voltage does not exceed the DC bus voltage while a conventional CSI acts as a DC-AC boost inverter or an AC-DC buck rectifier which works with the constraint that the AC output voltage is higher than the input DC voltage that is fed to the inductor. The diagrams for both the inverters are shown here [Figure 2.1 and 2.2]. Due to these constraints both topologies do not prove to be efficient method for optimal ISG design and functionality for the required situation.  \begin{figure} \includegraphics[scale=0.75]{2-1.png} \caption{Conventional VSI Topology} \end{figure} \\ The high-speed procedure of induction machines in expressed in [21] with the help of a dual voltage inverter control method. The primary motive of the control strategy discusses in to achieve a stable power region of 10:1 speed range under 42V and to alleviate the issue of low voltage limit. The control strategy works well in terms of allowing the system to perform over a very large speed range with induction machines of voltage less than 42V, however the extra inverter which is analogous to the main power inverter will raise system complexity, costs and system volume. A new power converter topology for series and parallel stator winding arrangements is expressed in [22] for large speed range for the ISG system. There are multiple disadvantages associated with the discussed configuration like transition from series to parallel, high rated converter power and significant realization efforts. \end{document}   This taking my figure onto a fresh page and not at the position I inserted it at in the code. What do I do to keep the figure between the paragraphs I intend it to be?


Announcement of rights offering (above market price) causing stock price increase

I am befuddled by the announcement of a rights offering in which stockholders were given the right to purchase the stock at a price of 5.50$ when the market price was at 4.40$. This seemed very unrealistic, I mean who would do that? But to my immense surprise the market price increased to 5.50$ in the following week! Why is that? None of the company fundamentals have changed and there were no other news. If the company had set a price of 6.00$ in the rights offering, would the price have increased to 6$? Obviously the company thinks that their shares are worth that much but why did the market suddenly agree?  Here are some more details:  I am long a micro-cap stock with ticker symbol LGL (). Two months ago they announced they would hold a rights offering in which stockholders will receive transferable rights to purchase additional shares (). Not much happened after that and as I expected the stock price fell a little due to the upcoming dilution. However last week they announced () that they would offer the shares for a price of 5.50$ a share (going into effect on September 5). At the time of the announcement the stock was trading around 4.40$. I saw that and was like huh? I couldn't understand why they set the price of the offering so markedly above market price. Over the last week I watched with astonishment a steady increase until the market price hit 5.48$ yesterday. Why did this happen? Obviously management thinks that the company is worth that much, but why did the market simply believe this statement without any additional information?


Finding the convergence interval of $\sum_{n=0}^\infty\frac{n!x^n}{n^n}$.

I want to find the convergence interval of the infinite series $\sum\limits_{n=0}^\infty \dfrac{n!x^n}{n^n}$. I will use the ratio test: if I call $u_n = \dfrac{n!x^n}{n^n}$, the ratio test says that, if the following is true for some values of $x$, the series will be convergent for these values of $x$: $$\lim_{n\to+\infty}\left|\frac{u_{n+1}}{u_n}\right|<1$$ So, I will first calculate the value of $\left|\dfrac{u_{n+1}}{u_n}\right|$: $$\left|\dfrac{\dfrac{(n+1)!x^{n+1}}{(n+1)^{n+1}}}{\dfrac{n!x^n}{n^n}}\right|=\dfrac{(n+1)!|x|^{n+1}}{(n+1)^{n+1}}\times\dfrac{n^n}{n!|x|^n}=\frac{(n+1)n^n|x|}{(n+1)^{n+1}}=|x|\left(\frac{n}{n+1}\right)^n$$ So, $\lim\limits_{n\to+\infty}\left|\dfrac{u_{n+1}}{u_n}\right|$ becomes: $$\lim_{n\to+\infty}\left|\frac{u_{n+1}}{u_n}\right|=\lim_{n\to+\infty}|x|\left(\frac{n}{n+1}\right)^n=|x|\lim_{n\to+\infty}\left(\frac{n}{n+1}\right)^n$$ Now I must evaluate the value of $\lim\limits_{n\to+\infty}\left(\dfrac{n}{n+1}\right)^n$. For this, let $y = \left(\dfrac{n}{n+1}\right)^n$; so, instead of calculating $\lim\limits_{n\to+\infty}y$, I will first calculate $\lim\limits_{n\to+\infty}\ln y$: $$\lim_{n\to+\infty}\ln y=\lim_{n\to+\infty}\ln \left(\dfrac{n}{n+1}\right)^n=\lim_{n\to+\infty}n\ln\left(\frac{n}{n+1}\right) =\lim_{n\to+\infty}\frac{\ln\left(\frac{n}{n+1}\right)}{\frac{1}{n}}$$ Applying L'Hôpital's rule: $$\lim_{n\to+\infty}\frac{\ln\left(\frac{n}{n+1}\right)}{\frac{1}{n}} =\lim_{n\to+\infty}\frac{\frac{1}{n(n+1)}}{-\frac{1}{n^2}} =\lim_{n\to+\infty}\left(-\frac{n}{n+1}\right)=-1$$ Now, since we know that $\lim\limits_{n\to+\infty}\ln y = -1$, we have that: $$\lim_{n\to+\infty}y=\lim_{n\to+\infty}e^{\ln y} = e^{-1} = \frac{1}{e}$$. Substituting this back into the expression $\lim\limits_{n\to+\infty}\left|\frac{u_{n+1}}{u_n}\right| = |x|\lim\limits_{n\to+\infty}\left(\frac{n}{n+1}\right)^n$, we have that the limit of $\left|\dfrac{u_{n+1}}{u_n}\right|$ as $n\to+\infty$ is: $$\lim_{n\to+\infty}\left|\frac{u_{n+1}}{u_n}\right|=\frac{|x|}{e}$$ Therefore, the series will certainly be convergent for the values of $x$ for which $\dfrac{|x|}{e}<1$, that is, $|x|<e$. So, I know that the series is convergent for $-e < x < e$, but I have to test whether the series is convergent at $x = e$ or $x = -e$. That is, I have to test whether $\sum\limits_{n=0}^{\infty} \dfrac{n!e^n}{n^n}$ and $\sum\limits_{n=0}^{\infty} \dfrac{(-1)^nn!e^n}{n^n}$ are convergent. Since these limits don't approach zero, I know they are both divergent, but I'm not sure how to find the limits, because of the factorial function. Also, I can't use integral test here, because of the factorial. Probably I should use comparison test, but I haven't found any divergent series to which to compare it. Any hints? Thank you in advance.  Edit: Using the suggestion by Ragib Zaman in the answer below, since the Taylor polynomial $P_n(x)$ of $e^x$ at $a=0$ is $$e^x = 1 + x + \dfrac{x^2}{2!} + \cdots + \dfrac{x^n}{n!}+\cdots,$$ if we substitute $n$ for $x$ we see that $e^n>\dfrac{n^n}{n!}$; therefore, $\dfrac{n!e^n}{n^n} > 1$, and, thus, we show that $\sum\limits_{n=0}^{\infty} \dfrac{n!e^n}{n^n}$ is divergent, because its term doesn't approach zero. $\sum\limits_{n=0}^{\infty} \dfrac{(-1)^nn!e^n}{n^n}$ is also divergent, because, although the absolute value of the ratio between two successive terms, $|e|\left(\frac{n}{n+1}\right)^n$, approaches 1 as $n\to\infty$, it approaches 1 from values bigger than 1; therefore, the absolute value of a term is always greater than the absolute value of the previous term.


Why won't my ps4 controller connect to my ps4?

I bluetooth paired my ps4 controller to my ps4 just fine. Then i deleted the bluetooth controller account (ps4 controller)off of my ps3. Now no matter what I do my controller won't work for the ps4. I click the home button and it blinks once then turns off. Someone please help me before I loose it.


How to upgrade a single package using apt-get?

How do I update a single package? As far as man apt-get says apt-get upgrade doesn't take a package/list of packages as parameter:     upgrade      upgrade is used to install the newest versions of all packages   currently installed on the system from the sources enumerated in   /etc/apt/sources.list. Packages currently installed with new   versions available are retrieved and upgraded; under no circumstances   are currently installed packages removed, or packages not already   installed retrieved and installed. New versions of currently installed   packages that cannot be upgraded without changing the install status   of another package will be left at their current version. An update   must be performed first so that apt-get knows that new versions of   packages are available.


If $\int f=0$, can I conclude that $f=0$?

Suppose, $f:(0,1)\to\Re_+$ and $f\in L((0,1))$, therefore measurable. Is the following implication correct?  $$\int_{(0,1)}f(x)\,d\mu=0\overset{?}{\implies} f(x)=0$$  Intuitively, I feel like the conclusion should hold because $f$ is a non negative function, but is there anyway of showing this?


Can yeast leaven cornmeal? If not, why? The ?


Post-apocalyptic novel like Stephen King's "The Stand": survivors of a deadly virus have a cocoon-like mask

I read this novel in the early '90s, and though I couldn't swear to its original publication date, it did have some fairly recent culture references. As I recall it was thematically similar to The Stand, with a virus having reduced the population of the world to a sliver of its previous numbers. In this novel, however, everyone who survived had their head/face covered by a hard cocoon-like mask, which when it molted off would reveal a new face. They then divided into factions preparing for a final conflict. I've tried searching both here and the wider internet, but as you can imagine keywords such as "virus" "mask", and "post-apocalyptic" turn up more daily news articles than fiction right now.


How to create a hologram projection with light rays?

I am attempting to make a template for holographic effects in blender for a project I'm working on, however I'm not sure how to create a lighting effect for the projection of the hologram (The god rays and volumetric effect around the globe). Below I have included the blender file along with an example of the type of effect I'm looking to reproduce. Any help would be appreciated.      Edit  With some minor tweaks and modifications I was able to make an effect that looked pretty much exactly as I wanted. Thanks to PGmath, Shady Puck and everyone else for the helpful suggestions and tips.  Final Result:


Why does the continuity correction (say, the normal approximation to the binomial distribution) work?

I wish to better understand how the  to the binomial distribution for the normal approximation was derived.  What method was used to decide we should add 1/2 (why not another number?). Any explanation (or a link to suggested reading, other than , would be appreciated).


How to fix problem of [Exception in thread "main" java.lang.NullPointerException]

So I just started learning Java, and I am facing this problem. My main is trying to call the method getOperator but it's giving me the [Exception in thread "main" java.lang.NullPointerException] error. How do I fix this?       //get operator +, - or *     public static char getOperator()      {         //set operator as random to return different types         //of operators from cases 0 to 2          int oper =  rand.nextInt(3);// **error occurs on this line**           switch (oper)         {             case 0: return '+'; //return as + if case is 0             case 1: return '-'; //return as - if case is 1             case 2: return '*'; //return as * if case is 2             default: return '+'; //default will return as +         }     }


Helping a user who asks multiple questions?

A brand new user asked two very unrelated questions in a single post. Both had sufficient detail to become their own post. See the revision history here:        What is the best way to help a new user learn how to post a single question per post? I could...   Slice the post in half and encourage the user to repost the other half as a separate question. Slice the post in half, post the other half myself, and leave a comment explaining what I did and why. Leave the post alone and encourage the user to separate his own questions.   All three methods have their downsides. I don't want to drive the new user away with aggressive editing, but I don't want to allow answerers a chance to post a double answer either, because that makes it almost impossible to split the two.


Being just a beginner I'm really getting confused of pull-down resistors. Please have a look at the diagram below. Here there is a 10k pull down resistor is connected to ground and the pin 2 of arduino. Whats really the purpose?   Is it really to avoid shorting between the 5v and ground?? So if there is a LED (load) in the circuit when the button is pressed do we really need the pull-down resistor?  Also if the button is connected to an external source (5v battery) do we need a pull-down resistor in that case as well??  One more question, if I have 5 buttons to pin 1-5, So do we just need a common pull down resistor say 100k for the 5 buttons?


Opposite of "trendy" without a negative meaning

I am looking for an opposite to the word trendy without giving a meaning that those who adopted the trend are old-fashioned in hindsight. For example,     Service Oriented Architecture is the trend as of now. But what is trendy in 2014 can become ______ in 2015.   So in 2015, the trend becomes widespread to the extent that it is no longer trendy, but not necessarily old-fashioned.  Edit: I am currently thinking of using mainstream. But still any other thoughts are welcome!


Assign Entire IPV6 /64 Subnet to Network Interface

So i just purchased a linux (centos) server with /64 IPV6 subnet. I want to use these IP's for outgoing requests especially.  How on earth can we add that many IP addresses to the network interface? Are there any workarounds for this?


Limiting visibility of symbols when linking shared libraries

Some platforms mandate that you provide a list of a shared library's external symbols to the linker. However, on most unixish systems that's not necessary: all non-static symbols will be available by default.  My understanding is that the GNU toolchain can optionally restrict visibility just to symbols explicitly declared. How can that be achieved using GNU ld?


How is double negation interpreted in English?

In my native language, double negations "cancel out". I have been trying to learn English using movies and such things, but double negation confuses me. I see instances when double negation cancels out, and some when they do not.  For example, "I haven't got no money" is interpreted as "I have no money." "There wasn't anyone who didn't enjoy the party" is interpreted as "Everyone enjoyed the party."  Is this context dependent? If so, how does one decide which interpretation is correct?


Trying to solve the modular equation $$x \equiv 58^{5745} \pmod{59}$$ I've seen a solution to this that involves using that $58 \equiv (-1) \pmod{59}$, and this in turn means that $58^{5745} \equiv (-1)\pmod{59}$, but I'm missing the rule that explains this step. Can someone clarify?


Any command that starts with $ returns  command not found   How can I fix this?  I am  using 16.10 Ubuntu.


The human colony has been on this planet for some time now and are hearing that more ships from Earth are on their way. They also have developed a weapon that puts a pretty good sized crater on the moon. The ship that's on its way is described as having to have drugs and graft and other unsavory parts of humanity on it just to allow the people to be able to 'live'. The colonists are not happy about it, for they have developed a little more utopiany way of life.   The story is 3rd person and 1st person story telling. Radio transmission tells of ships coming (actual space trip takes years), towards the end I think a young boy figures out the secret weapon (that puts crater on the moon).   I remember one moment in it where the natives are in a bar (they all generally pack pistols due to all the animals in the area) and one of the newcomers is hassling a woman and she says NO to him twice during his advances as he's a bit drunk and fresh off the ship, well before the third NO some native in the bar shoots him dead which is how they handle things, not necessarily violently but directly and finally.  I read this in the eighties and it seemed old to me at the time, paperback


[pencil/now 3.1.0.ga-2 amd64 [installed,local] This is the result of the command I used to list all the installed apps in ubuntu. But now I need to open the app "Pencil" from the terminal. How can I open it from the terminal? As I tried by its name but it didn't open from terminal.


Why does iCloud ask for my iPhone's passcode when signing in on OS X

Due to some iCloud struggles, I had recently occasion to sign into and out of iCloud on OS X a few times recently.  Interestingly, when I have 2FA enabled on my iCloud account, OS X asked for the screen lock passcode to my iPhone when signing in to iCloud, and would not sign in without it (no .  After the initial sign in succeeds, it prompts for the iCloud password again, and this time asks for the 2FA code.    This was a surprising and unexpected part of the authentication flow.  Does anyone know why iCloud / OS X / iOS interact in this way?


I only have 30% code coverage.  public class MassDelete {     public list<account> accs {get;set;}     public MassDelete(apexpages.StandardSetController cont){         string[] fields=new string[]{'name','industry','rating','phone'};             cont.addfields(fields);         accs=new list<account>();         accs=(list<account>)cont.getselected();     }     public pagereference deletes(){         delete accs;         pagereference p=new pagereference('/search/UndeletePage');         return p;     } }   test class:  @isTest public class MassDeleteTest {         testmethod static void testme(){         list<account> accs=new list<account>();         account a=new account(name='Test Account');         insert a;         account a2=new account(name='account 2');         insert a2;         accs.add(a);         accs.add(a2);         test.startTest();         pagereference pref=page.massDeleteAcc;         test.setCurrentPage(pref);         apexpages.standardsetcontroller std=new apexpages.StandardSetController(accs);         std.setselected(accs);         MassDelete obj=new Massdelete(std);         test.stopTest();                 } }


Show that $\int|f(x)|dx=\int_0^\infty m(E_\alpha)d\alpha$

Let $f$ integrable and let $E_\alpha=\{x\mid |f(x)|>\alpha\}$ for $\alpha\geq 0$. Show that $$\int\left|f(x)\right|dx=\int_0^\infty m(E_\alpha)d\alpha$$ where $m$ is the Lebesgue measure.   By hypothesis, $f$ is measurable, therefore there exists a sequence of simple function such that $\varphi_n\nearrow |f|.$ Moreover, $E_\alpha^n\nearrow E^\alpha$. By the continuity of the measure, $m(E_\alpha^n)\to m(E_\alpha)$ for all $\alpha\geq 0$. By the convergence monotone theorem, $$\int_0^\infty  m(E_\alpha)d\alpha=\lim_{n\to\infty }\int_0^\infty  m(E_\alpha^n)\underset{(*)}{=}\lim_{n\to\infty }\int\varphi_n(x)dx=\int\left|f(x)\right|dx.$$   I don't understand the equality $(*)$, why $m(E^n_\alpha)=\varphi_n(x)$ ?


C# Public variables vs Properties, what's the difference?

I was reading up on some C# and came across this snippet of code from:   The code was:  private int _name;  public int Name {     get { return _name; }     set { _name = value; } }   Can you please explain what is going on in this code snippet here?  Thanks!


How to Extend the Primary Boot C Drive Partition - Extend Option Grayed Out

I see the "Extend Partition" option is grayed out in the Disk Management tool and as far as I can understand I need to move my data to another drive and change the drive letters.  This is something I cannot do right now as I don't have an additional disk at hand and the remaining disk space on the free partition is less than the drive I need to copy.  After installing the demo version of third-party tools I noticed this operation is possible but I didn't purchase the full version as I thought that if they can do it without moving this data, I might be able to also.  This is what I am asking. What needs to be done in order to accomplish this task?  And because a picture is worth a thousand words I will post the technical details here:  OS Version: Windows 10


So how far do you need to be to make the mobs despawn?


Proof by Induction: $2(\sqrt{n+1} - \sqrt{n}) < \frac{1}{\sqrt{n}} < 2(\sqrt{n}-\sqrt{n-1})$

I'm having some troubles trying to prove the Exercise 13, page 41 of Apostol's Calculus I, which is the one used to explain some features of integration in the next pages.  It says:  Prove that $2(\sqrt{n+1} - \sqrt{n}) < \frac{1}{\sqrt{n}} < 2(\sqrt{n}-\sqrt{n-1})$ if $n\geq 1$. Then use this to prove that   $$2\sqrt{m}-2 < \sum_{n=1}^m\frac{1}{\sqrt{n}}< 2\sqrt{m}-1 \qquad \text{if } m \geq 2$$  (At this moment I'm stuck with the first part of the problem).  Proof (by Induction):  $$P(n): 2(\sqrt{n+1} - \sqrt{n}) < \frac{1}{\sqrt{n}} < 2(\sqrt{n}-\sqrt{n-1})\qquad  \text{for }n\geq 1$$  Base Case: $P(1)$  $$\begin{align*} 2(\sqrt{1+1} - \sqrt{1})       &<  \frac{1}{\sqrt{1}}  < 2(\sqrt{1}-\sqrt{1-1})&\\ 2(\sqrt{2} - \sqrt{1})         &<\hspace{5pt}  1 \hspace{6pt}    <  2 \end{align*}$$  which is true.  Induction Hypothesis: Assume $P(k)$ is true for a positive integer $k \geq 1$:  $$\underbrace{2(\sqrt{k+1} - \sqrt{k})}_{a} < \frac{1}{\sqrt{k}} < 2(\sqrt{k}-\sqrt{k-1})\qquad (1)$$  Induction Step: Prove $P(k+1)$:  $$2(\sqrt{k+2} - \sqrt{k+1}) < \frac{1}{\sqrt{k+1}} < \underbrace{2(\sqrt{k+1} - \sqrt{k})}_{a}$$    This was my strategy:  Since we assumed $P(k)$ is true, by multiplying the set of inequalities $(1)$ by $\frac{\sqrt{k}}{\sqrt{k+1}}$ we get  $$2\left(\sqrt{k} - \frac{k}{\sqrt{k+1}}\right) < \frac{1}{\sqrt{k+1}} < \underbrace{2\left(\frac{k}{\sqrt{k+1}}-\sqrt{\frac{k-1}{k+1}}\right)}_{b}$$  Then, if we can show that $b < a$, by transitivity we have that $P(k+1)$ is true.  And there is where I'm stuck. I'm not sure what I'm doing wrong, but by setting the inequality $b<a$, it seems that the assumption I made doesn't work:  $$\begin{align*}\frac{k}{\sqrt{k+1}} - \sqrt{\frac{k-1}{k+1}} <&\ \sqrt{k+1} - \sqrt{k}\\  \frac{k}{\sqrt{k+1}} - \sqrt{1- \frac{2}{k+1}} <&\ \sqrt{k+1} - \sqrt{k}\end{align*}$$  The RHS approaches $0$ while the LHS approaches $k$, which reverses the inequality, so I think it's not the correct approach.  Could someone shade me some light on it?


JavaScript - after submit button redirect the user to URL which is provided in API response

I have a HTML submit form with Name, Email, Phone, Password inputs. After clicking "Submit" button I send all the data to API through jQuery script: function login() {   var request = new XMLHttpRequest();   request.open('POST', 'https://ensyu6r51m3oldb.m.pipedream.net');   request.setRequestHeader('Content-Type', 'application/json');   request.setRequestHeader('Accept', '*/*');    request.onreadystatechange = function() {     if (this.readyState === 4) {       console.log('Status:', this.status);       console.log('Headers:', this.getAllResponseHeaders());       console.log('Body:', this.responseText);     }   };      var arguments = $('#h14kLToIyLIMrHQDo37BZUtKoTg6bMlH').serializeArray().reduce(function(obj, item) {     obj[item.name] = item.value;     return obj;   }, {});      var body = { arguments };   request.send(JSON.stringify(body)); }  Now comes the part where I need help with - I get an response from API provider with the URL which I should redirect user for autologin, but I have no clue how to take that URL and redirect to it. Here is the example of API response: {     "status": "something"     "url": "https.." // redirect to that     "object_id": xxx // customer ID }    Maybe someone could help me in tweaking script so the user would be redirected for autologin to the URL which should be taken from API response? Thanks a lot for your help!


Why is human vision restricted to 400-700 nm?

Across the electromagnetic spectrum, 400-700 nm is a narrow spectrum of frequencies and focused in the region of short wavelengths. For example, radio waves cover a large range of frequencies unexploited by the visual system. So what biological reason is there that evolved us to use such a small frequency bandwidth for vision?


How to avoid multiple running instances of same handler function when running it from editor?

I'm doing simple handler script that gets appended to bpy.app.handlers.frame_change_post.  Every time I do a changes to it and hit Alt+P it registers itself again with a new version. after a bit I have 10 of the scripts running happily on every frame change.  How can I get rid of the old running versions without closing and reopening Blender, which seems to be the only option now?   I tried adding unregistering with bpy.app.handlers.frame_change_post.remove() but that is just throwing an error as if my script wasn't on the list. while at the same time print(bpy.app.handlers.frame_change_post) is showing my function name there in growing numbers :)  so, what's the best practice developing and running these?  thanks.  .b


Bounty section for a user's profile is naked and drunk

On a user's account summary page, the bounty section seems to have lost it's header styling, and doesn't seem to work very cooperatively; it seems to work on the first instance, but further attempts to change it won't work.        I'm on Chrome 37.0.2062.120. Tried clearing caches etc. with no success.


Help understand this gcd proof for $gcd(a, b) = gcd(b, a) = gcd(±a, ±b) = gcd(a, b − a) = gcd(a, b + a)$

From: Elementary Number Theory: Primes, Congruences, and Secrets by William Stein  ${Lemma}$ $1.1.9.$ For any integers a and b, we have gcd(a, b) = gcd(b, a) = gcd(±a, ±b) = gcd(a, b − a) = gcd(a, b + a).  $Proof.$ We only prove that $gcd(a, b) = gcd(a, b − a)$, since the other cases are proved in a similar way. Suppose $d | a$ and $d | b$, so there exist integers $c_1$ and $c_2$ such that $dc_1 = a$ and $dc_2 = b$. Then $b−a = d(c_2−c_1)$, so $d | b − a$. Thus $gcd(a, b) ≤ gcd(a, b − a)$, since the set over which we are taking the max for $gcd(a, b)$ is a subset of the set for $gcd(a, b − a)$. The same argument with a replaced by $−a$ and $b$ replaced by $b − a$, shows that $gcd(a, b − a) = gcd(−a, b − a) ≤ gcd(−a, b) = gcd(a, b),$ which proves that $gcd(a, b) = gcd(a, b − a)$.  I don't understand how they came to this conclusion:     Thus $gcd(a, b) ≤ gcd(a, b − a)$, since the set over which we are taking   the max for $gcd(a, b)$ is a subset of the set for $gcd(a,b-a)$.


How to edit 'etc/hosts' file in non-rooted phone?

I'm using LineageOS 14.1 and don't want nor need to root it. How can I remount /system rw and edit /system/etc/hosts?  All answers in "" expect a rooted phone.


Is there any way I could increase the damage on my spells in Skyrim?

My character is a spellsword and her spell damage is just so  low it irritates me and makes me regret ever making her a spellsword. An example I can mention is when I wield a sword on my right hand and a frosbite spell on my left. Now I can go around slashing people's heads off and keep freezing them so they can't get close.   I also heard you could increase the damage on the spell (e.g. frostbite) if you equip it on both hands and click both mouse buttons and your character uses both hands to cast the spell. What I mean here is I want to increase the damage of her spells by the numbers, like if the damage is 150 I want it to be 350 or higher.


Getting output of system() calls in Ruby

If I call a command using  in Ruby, how do I get its output?  system("ls")


I have a directory with a lots of images but they are in the wrong orientation. I want to rotate the images to correct the orientation (mostly ±90o). Using image (shotwell photo) viewer I can rotate them individually by clicking the rotate button but that's too tedious.   I looked at man shotwell and shotwell --help-all but there's nothing that explains how to invoke the rotate command from the command line.   Is there any way I can invoke the rotate command of shotwell (or any other viewer) from the terminal? Or any other methods to rotate images are welcome too.


Editing and manipulating tables with ArcPy?

I’m new to ArcMap and was wondering if anybody could help me out. I have a shapefile with counties and wells in that county. In the table I’m trying edit it so that for each county calculate the total numbers of wells that fall into that county, and update the county table with the total count. I also want to calculate how many wells there are per area unit, and update the table with that value as well.  import arcpy featureClass = "C:/Lesson5_Data/Colorado_cities.shp" fieldList = "*"  with arcpy.da.SearchCursor(featureClass, fieldList) as cursor: for row in cursor: print row[4  population = 10000  whereClause = '"POP2007" >= ' + str(population


Difference between a Metaphor and a Simile

I know a metaphor compares two similar things, like a ballerina glides like a swan and that a simile compares two unlike things, but I'm still not sure if the sentence, "The car guzzles fuel." would be a simile or a metaphor?  Could someone clarify it for me? Thanks.


How do you flag a user to the moderators?

There are options to flag questions, answers and comments but I do not see any options for flagging a user.   The main reason I can see for that is when someone is suspected of gaming the system or using tactics to force answers or bounties to go their way.


i'm testing some Java 8 stream operations right now and i'm confused about following behaviour.  Having this simple test:  public static void main(final String[] args) {      final String[] arr = { "-e", "-f", "-t" };     System.out.println(Arrays.stream(arr).anyMatch(x -> x == "-e"));  }   That works fine as results in an expected "true". But, if i try match the "args" list instead the arr-array with content "-e" it won't work as expected and results in "false".  Strange, hmm?  Can anybody tell me whats wrong?


All images loaded through the Stack Exchange Imgur API seem to be not working (and the webpage doesn't load either):    When I go to the actual image link I get:    imgur.com still works.