When viewing deleted comments on a post, the user who deleted the comment is visible. This is usually a moderator or the owner of the comment; however, some flags on comments containing some patterns are handled automatically, and the flagger appears as the one who deleted the comment. In this case, because the system assumes non-moderators must be comment owners, and the owner of the comment is the asker of the question, the flagger’s username receives asker highlighting too.    Or, at least, I assume that that’s the case.

As they say, a picture is worth a thousand words:    The moderator here is not the original poster, but on the comments by the aforementioned OP, his name has the OP background. On the other comments, he (correctly) doesn't.


I have a web application that is offering registration through a regular registration form (email, password) and facebook connect.  I'm facing a problem that I'm sure lot of other are facing. I'm ending up with duplicated account for the "same" user (using different emails).  case of study:    User register with regular login form using aaa@email.com       -> A new account is created User left the site (and logout - session expires) User come back and user Facebook Connect, the email linked is bbb@email.com    -> A new account is created User logout User logback in using regular form and aaa@email.com User go to profile and click "Link my Facebook Account"   -> Facebook information are returned and an existing account with bbb@email.com is detected.    How to handle this?

Since we have introduced FB connect to our web page, we have noticed that users became confused a lot and a significant number of users began to have multiple accounts.  After they log in somehow (via FB or casual mail login) we used to show a page that asks them to connect their accounts. It is easy when they logged in via e-mail. We simply ask them to connect with FB.  I am quite confused how to handle those logged in with FB and have an existing (e-mail) account.  Do you have any suggestions or comments?


If not, why is my idea below not possible?  The general theory of relativity tells us that time is slowed down by gravitational fields. We bounced radar signals off planets further from the sun, and ones nearer to it, and found that the light bounced off nearer ones was red-shifted, due to passing through stronger gravitational fields.  The universe has a great deal of mass in it. Although far from concentrated sources of mass, space-time is 'flatter', it should still be true that everywhere within the universe is within its deep gravitational 'well'. As a consequence, all light travelling through space should be slowed in time and red-shifted proportional to how far it travels - no?

Have there been any recent attempts to falsify the  hypothesis alternative to the Doppler shift explanation for the red shift, or is it simply ignored like the pilot wave quantum mechanical hypothesis alternative to the Copenhagen hypothesis of quantum mechanics has been? What new evidence would it take to get the tired light hypothesis for the red shift reexamined as the recent fluid dynamics oil drop experiments have done for the pilot wave hypothesis of quantum mechanics?


Looking for a YA fiction book about a boy who discovers an ancient archeological site, a Pygmy village. I feel like he was orphaned, or being fostered, and attending a new boarding school, where he didn't fit in well. He's befriended by one unusual boy, who notably collected  magazines. Toward the end, he gets stabbed in the finger by a "booby trap" of sorts, at the site - a rattlesnake fang, filled with venom. I read this back in middle school ('85-88), but never have been able to locate the title.

About 25 years ago I read a book that for years I've tried to find. I remember nothing of the title or author, but I do remember the plot. My last question about a novel worked out so well I thought I'd try again.  A boy moves and has to live with his grandparents I think? And as he's exploring the outskirts of the new little town he's living in he stumbles across a cave, and in the cave buried in the sand he finds this kind of Native American pueblo type place but at a miniature scale. He thinks it's a model but at some point he comes to the conclusion that it was a real town of little people.  He has trouble at school and I remember at one point some of the bullies from school find and kind of threaten to destroy the place.  Any one read this one?  A few other odd details I remember:  He either bought, or was given a derringer, where the safety was a jewel in the handle of the gun, which at one point saves him as someone that tries to shoot him doesn't know how to deactivate the safety.  There was a "jail" or...cage of some sort in this miniature town made from rattlesnake fangs, which I think continued to have poison and which scratched a kid and nearly killed him.


I'm having a bit of trouble searching a file using python regex.  I would like to input a list of regexs and return the lines of the file that match one of them in a jagged list that is indexed in the same way was the rexex list, i.e. if a line matches the 1st regex it will be added with: results[0].append(line) and if the second is matched: results[1].append(line) and so on...  import re  def search(path, regex_list):      reg_list = [re.compile(regex) for regex in regex_list]      results = reg_list.__len__()*[[]]      with open(path, 'r') as fp:          for line in fp:              for i, reg in enumerate(reg_list):                  if reg.search(line):                      results[i].append[line]     return results  print(search("./log", ['1234', '1233']))   I woud like my output to be:  [['log entry 1234\n'], ['log entry 1233\n']]  but what I really get is:  [['log entry 1234\n', 'log entry 1233\n'], ['log entry 1234\n', 'log entry 1233\n']]  I'm pretty new to python so I could be doing something really stupid, any ideas what it is?

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


Neighbours, schools and government systems will assume a missing child if they move out of their homes to Hogwarts. How do they keep their old identities in sync with going to a place unrecognised by muggles?

So a bunch of kids all of a sudden "go missing" from school.  Harry Potter having attended school for a couple of years before starting at Hogwarts, one semester just doesn't show up.  How is this solved? What do parents say when a school teacher calls and wonders where their pupil is?  I assume that Hogwarts isn't an officially recognized school (though perhaps it is?), and due to education being compulsory, someone would do the math and find that low-hundreds of kids go missing in the transition from primary to secondary school every year.


I am running 13.04 and in terminal I am trying to install guitar pro 6 for linux as it will not install with Ubuntu software center. I am in the correct directory and if I ls the directory, I get GP6.deb which is the folder I downloaded guitarpro6 to, but when I use apt-get install GP6.deb Terminal accepts the command but says it cannot locate the file.  Am I using the correct command or must I do something else first?

How do I install a .deb file via the command line?


Which is the correct form of the sentence?      There has been many instances of outbreaks in vaccinated populations    vs.     There have been many instances of outbreaks in vaccinated populations?   The question that this is supposed to be a duplicate of does not mention there has or there have. We have many learners here who are not going to be able to deduce much of anything from it.

For example:     There's two options here   or     There are two options here   I hear a lot of people say the first line (or something similar), but isn't that incorrect? Isn't it plural and therefore you should use "there are"?


Assume that all of sudden the Earth is turned into a black hole. And the moon revolves around the Earth (before turning into a black hole). What would happen to the Moon after earth changes to black hole will it be sucked to the black hole or continue to revolve the black hole?

I've seen in a documentary that when a star collapses and becomes a black hole, it starts to eat the planets around.   But it has the same mass, so how does its gravitational field strength increase?


Given $R$ an integral domain with field of fractions $F$, I want to prove $F$ is a finitely generated $R$-module if and only if $R = F$.   For $(\Rightarrow)$: I tried to first define a generating set based on the definition i.e. finitely many $m_1,\dots,m_n$ such that $\sum_i Rm_i  = M$. Then somehow show every element in $R$ is invertible. From where $D=F$ but how...  For $(\Leftarrow)$: If $R = F$, I am not sure, but I know by definition, the embedding of $R$ in $F$ maps each $n \in R$ to the fraction $\frac{an}{a}$ for nonzero $a$ in $R$. In further details, I am a bit lost though.

I want to prove that if we have a commutative integral domain $D$ with field of fractions $F\neq D$ then $F$ is not finitely generated as a $D$-module. (In this question it may be the case that $1\not\in D$.)    My original plan was to localize at a maximal ideal and then use Nakayama's lemma but as we don't have a $1$ our localization may not be local (in fact we need not have maximal ideals).  So I'm a bit lost as to where to go?  Thanks for any help.


I have the list of Arrays of Objects and storing in to the List  Object[] data = [12.0, 0.05, 100.0, 3.0, 5.0, a, cat, 3];  List<Object[]> events = new ArrayList<Object[]>();  events.add(data);  System.out.println(events.toString());   When I am printing I am getting in this format [[Ljava.lang.Object;@23e028a9] , I tried .toString() and other but neither worked.  Please help me to solve this problem to see the correct form in output.

In Java, arrays don't override toString(), so if you try to print one directly, you get the className + '@' + the hex of the  of the array, as defined by Object.toString():  int[] intArray = new int[] {1, 2, 3, 4, 5}; System.out.println(intArray);     // prints something like '[I@3343c8b3'   But usually, we'd actually want something more like [1, 2, 3, 4, 5]. What's the simplest way of doing that? Here are some example inputs and outputs:  // Array of primitives: int[] intArray = new int[] {1, 2, 3, 4, 5}; //output: [1, 2, 3, 4, 5]  // Array of object references: String[] strArray = new String[] {"John", "Mary", "Bob"}; //output: [John, Mary, Bob]


How to find      $$\lim _{x\rightarrow \infty }\left[ \sqrt [6] {x^{6}+x^{5}}-\sqrt [6] {x^{6}-x^{5}}\right]\;?$$

How would you evaluate the following limit:   $$\lim_{x\to \infty}\sqrt[6]{x^{6}+x^{5}}-\sqrt[6]{x^{6}-x^{5}}$$   I tried to use this formula: $a^{3}-b^{3}=(a-b)(a^{2}+ab+b^{2})$,  It didn't work.  Any hints?


I found this sentence below in a test passage:     He had only become a dog-lover in later life when Jofi was given to him by his daughter Anna.   Why is "Jofi was" used when the tense of the main clause is the past perfect tense?

I found this sentence below in a test passage:     Less well known at the time was the fact that Freud had found out, almost by accident, how helpful his pet dog Jofi was to his patients.    Why is "Jofi was" used instead of "Jofi had been" when the tense of the main clause is "had found out"?


Do any commands or extension in C++ exist to find out how much CPU time, operative memory, network resources and hard-disk does a given process (with given PID) consume?

I once had the task of determining the following performance parameters from inside a running application:   Total virtual memory available Virtual memory currently used Virtual memory currently used by my process Total RAM available RAM currently used RAM currently used by my process % CPU currently used % CPU currently used by my process   The code had to run on Windows and Linux. Even though this seems to be a standard task, finding the necessary information in the manuals (WIN32 API, GNU docs) as well as on the Internet took me several days, because there's so much incomplete/incorrect/outdated information on this topic to be found out there.  In order to save others from going through the same trouble, I thought it would be a good idea to collect all the scattered information plus what I found by trial and error here in one place.


In the memoir class, how can I create two versions of the figure float environment which behave the same way, but have different names and are each numbered and listed in their own sequence?  Specifically, I have a variety of images which have been inserted using figure floats, but now the images that are maps need to be separated from the rest of the images: that is, I want "Map 1" to be different from "Figure 1", and I need a separate list of "Maps" and "Figures" at the beginning (basically by calling something like \listofmaps as well as \listoffigures). I've read over the basics on custom floats, but am not sure how to just create a renamed clone of the original figure float while also retaining the original environment.

I am writing a report that has graphics, photos and maps. If I use the figure environment everything is labeled as a figure in the caption. However, what I would like to do is where I have a map to have the map labeled appropriately e.g. Map 1: caption text; Map 2: caption text etc and to be able to refer to it in the text Map \ref{map01}. Same as for Photographs.   I have looked at some of the FAQs but does not seem to have what I want.  Is it possible.


From my understanding... doesn't every Stack Exchange site have its own meta? I sometimes see questions about other Stack Exchange sites. Is it because SO is one of the first ones? What exactly is the policy on asking questions regarding other sites? Just wondering.

I've just asked six questions on , and one has been referred to this site.  Looking closer, I realized that this meta site is not just for Stack Overflow, as it seems from its name.  I think I'll need to transfer a couple of my questions over here.  Why are the two metas (the one for Stack Overflow and the one for all sites) merged into one instead of being separate?


I am new to blender (about a week working after work). And I face this problem that I have this plus sign in yellow circle. And I am not sure how to get rid of it. I have no idea what is the name of it (if I would know name I probably would google it). This happens in edit mode.

I think I have entered a sequence of commands as a mistake and now a yellow line appears in top of my selection. I don't know what it is for or how to enable/disable it.  I have tried closing the editor but it keeps appearing.


I executed sudo chmod -rwx /  To my surprise, all the icons on the dock vanished and all the commands (from man to sudo) are now unrecognised or not found.  The system had only one user.  We shut down the system and tried to login via tty2. The screen runs on a loop.   We are not able to see the normal login screen when We tried boot it up either.  Is there anything that we could do?

I accidentally used  sudo chmod 3 /   which gives a execute and write permission to the root directory, while deleting the read permission. How can I recover from this, I cannot even use sudo now.


I've recently worked out how to change my terminal theme and set the new theme as default through the GUI menu: Terminal > Preferences > Profiles > Default. This works and sets the current session to that theme but after restarting Terminal the theme resets back to basic.  I've tried deleting all other themes and setting a specific one, and although this will work for the remainder of the session it does not work after restarting the app.   I can't seem to find any specific help for this issue. Others have asked about setting a default or it not working on multiple windows/tabs, but that isn't the issue here.   Is there a config file where I can change the theme manually?  Any suggestions will be very much welcomed! Working on a 2017 MacBook Pro 15" (MacOS Mojave)

I can't find any way to change the Terminal theme and have that theme applied permanently.  I want to change to another darker theme other than the default 'basic' theme, and (most importantly) have it remain as the theme every time I open Terminal.


We now define a Hermitian manifold is a complex manifold in which unmixed components of metric tensor vanish $g_{ij}=g_{\bar{i}\bar{j}}=0$. Is this a propert of a Hermitian manifold? Or is it an extra imposed condition on the metric - this case Kaehler metric?

On this , the author says:     We now define a Hermitian manifold as a complex manifold where there is a preferred class of coordinate systems in which unmixed components of metric tensor vanish ($g_{\alpha\beta}=g_{\bar{\alpha}\bar{\beta}}=0$).    My question is why do those vanish if the metric is Hermitian?


Find the volume inside the curve $x^2+4z^2+8y=16$ and on the positive side of $xz$-plane. What will be the volume of this as I'm getting wrong answer? As per me the volume is . Please help me as I'm unable to get it.

No answer was given for this question, so wanted to confirm my answer. Steps followed for solving:  V=$4\int_0^2\int_0^{\sqrt{16-4z^2}}(2-\frac{x^2}{8}-\frac{z^2}{2})dxdz$  After solving this I got V = $8\pi$. Is this answer correct?


How can I translate my Latex job into an MS Word document? I search youtube but I don't found a solution to my enquiry

I often have to write up reports based on the analysis of some data. I use R to analyse the data and export tables, figures, and text. This is then included into a LaTeX document either using input or Sweave ().  However, when I collaborate with others, I sometimes need to provide a document in Open Office / MS Word format.  Question:  Thus, assume the simplest scenario   I have a LaTeX document with text, tables, and figures I need to export this reliably into Open Office or MS Word format: this includes mathematical formulas, table formatting, and quality figures) I don't need to go back from MS Word to LaTeX   What is a reliable, efficient, and preferably free process?  Initial Thoughts:   Export to HTML,  LaTeX - LyX - ODF Use odfWeave  that deals with some specific issues associated with LaTeX to Open Office conversion    I was hoping that there is an expert out there who has worked out a good system already.


Can I safely install Ubuntu's latest LTS version (Ubuntu 20.04) on my dell Inspiron 15 3567 without any problems? I am running Windows 10 right now and I want to use Linux.

I have a device on which I would like to install Ubuntu. How do I find out if Ubuntu will work on it?


I've been looking around and I can't seem to find an automatic (i.e. buzz- or Twitter-like) way to follow users inside Stack Exchange. Why haven't the developers added such a feature? It could help beginner users follow other beginners with the same interests. We would be able to learn from each others' questions and pitfalls. Also, it would reduce double posting.

I think it would be nice to have a "friends list" on Stack Overflow. This would allow us to be able to follow the questions and answers that are posted by users that we want to watch/monitor.  I suggest it be implemented in the same fashion as DotNetKicks.com; where you can add someone to your "friends list" without them needing to approve you the way that other social networks do it. It should be completely open for us to add anyone to our "friends list" that we like.


I had two tabs open within chrome both of them on SO.  I looked at one and it had this:   I went back to the other tab on SO and it showed this:   I thought well where did I lose 15 points and click on my reputation page to see reputation activity (below) and nothing showed up as losing reputation.  Does anyone know why this happened? Was there some global recalc today or something?

Twice today I noticed that my reputation increases with 15 on Stack Overflow, but when I click to see my account, the change is being reverted and none of my recent answers are marked as accepted. Then why does the reputation on the top of the page change ?


What I'm trying to do is take the user given input (operand) and round my current number to the amount of decimals that the operand is. For example if my current number in the calculator program this is running on is 15.44876, and the user input is 2, I would like the returned value to be 15.45, or just 15.44 at least.  public double round(double operand){     this.answer = Math.round(this.answer, operand);     return this.answer;   I know the code above is incorrect, but it's just a place holder since I'm pretty confused on this.

What I would like is a method to convert a double to a string which rounds using the half-up method - i.e. if the decimal to be rounded is 5, it always rounds up to the next number. This is the standard method of rounding most people expect in most situations.  I also would like only significant digits to be displayed - i.e. there should not be any trailing zeroes.  I know one method of doing this is to use the String.format method:  String.format("%.5g%n", 0.912385);   returns:  0.91239   which is great, however it always displays numbers with 5 decimal places even if they are not significant:   String.format("%.5g%n", 0.912300);   returns:  0.91230   Another method is to use the DecimalFormatter:  DecimalFormat df = new DecimalFormat("#.#####"); df.format(0.912385);   returns:  0.91238   However as you can see this uses half-even rounding. That is it will round down if the previous digit is even. What I'd like is this:  0.912385 -> 0.91239 0.912300 -> 0.9123   What is the best way to achieve this in Java?


Is it be legal to publish a Noughts and crosses game?

Most games build on other games' successes and many are downright clones. Where is the limit of imitation before legal issues come into play? Is it down to literary or graphic work like characters and storyline that cause legal problems, or can someone actually claim to own gameplay mechanics?  There are so many similar clone games out there that the rules are probably very slack or nonexistent, but I'd like to hear the views of more experienced developers / designers.


I need to filter email delivery in Postfix based on a specific header.  Lets have the following example:  There's some PHP script that will dispatch emails to the local MTA (postfix). These emails contain a specific custom header (for example sake, X-EMAIL-TYPE) that will have one of 3 values:   Bulk Transactional Autoreply   I need to dispatch emails to different SMTP servers based on the X-EMAIL-TYPE header.  Is this possible in Postfix? If yes, how can I do this?  Thank you!

I am looking to configure postfix to route messages to different relays based on the contents of a subject line.  The desired result would be if a user sent an outbound e-mail with a specific tag say "SECURE:" at the start of the subject line it would forward to one relay (1.1.1.1) but if the tag was not specified the message would be delivered another relay (2.2.2.2).  I have investigated header checks, before and after message filtering, and postfix proxy but I have not been able to pin down how to accomplish changing the mail route based on message contents (which seems like it should be a fairly simple thing to do).  I might expect to involve procmail for this task, but would like some assistance in where to begin. Can anyone assist?


I created a custom object Project__c. I haven't added any custom fields to it yet. I have noticed something strange trying to insert new Project__c instance. I wrote this code:  Project__c newProject= new Project__c(); insert newProject;   and executed it. As a result I got new record with Project Name: a0D58000001JeqC. How is this possible? I was expecting error, because standard field Project Name is required.

When the standard Name field of an object is set as Text, it shows a weird behavior if left empty. It is not possible to mark it as required or non-required, but when editing a record from its standard edit page, the field is required:    No problem so far: the field is required in any case. The problem arises when it comes to insertion from code. If we insert a record from code:  CustomObject__c r = new CustomObject__c(); insert r;   ... we get no error. Instead, the record is inserted with the short, 15-character Id copied into its Name field. What I would expect is an exception with the same error that we've got in the standard edit page.  This problem does not occur with custom fields: if a custom field is marked as required, it will be so both in the standard edit page and from code.  I did not find any mention to this on documentation. Is this behavior new in Spring'14? Has any of you found this same problem before?


I'm making an addon as a personal project and it estimates the total render time left for an animation render. i want to show how much time is left to the user. but a pop-up wont work and crash blender. is there a way to show data here? if not, is there another way to show this data?

Is it possible to get total render time via Python code when render’s done?


This is not a duplicate of:      I'm looking for the word which indentifies the group of "Sunrise" and "Sunset". For example "Volvo" and "Ford" could be members of groups called "cars" or "vehicles".  Instinctively I would call the group "Sun times" but I wonder if there is an official word?

Is there a single generic term to refer, either collectively or arbitrarily, to both sunrises and sunsets?  I'm looking for something that could be used in the same vein as twilight can be used (formally or informally) to refer to both the pre-sunrise dawn period and the post-sunset dusk period, without specifying which.  I'm aware of the concept of a  within the photography and cinematography communities, but I'm looking for something which refers more to the specific astronomical event, as a particular instant in time, while still being agnostic to the direction the sun is going.   Edit: To clarify, I'd like something that could describe, even informally, any or all of:   Instants when the sun is exactly at the horizon, or 0°, Periods when the sun is near the horizon on either side, e.g., –2° to +2°, or Periods when the sun is near the horizon, but strictly above it, e.g., 0° to +2°.   I am aware of the , but unfortunately none of them meets any of these.


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

I went to  for installing Pillow since the original PIL is a discontinued project and so now not so good to use. But, in the table support for Ubuntu 16.04 LTS is unmentioned. It appears neither in , or in .     Further, just installing pillow is said to be not enough. There are some dependencies that should be installed first which is also unmentioned for Ubuntu 16.04 LTS. Would the installation steps for Pillow for python 3 given for 14.04 LTS be OK for Ubuntu 16.04 LTS?  If not, How do I install pillow in 16.04 LTS for Python 3.6? (There is support for Python 2.)


How can I replace the "@" with the constant “begins” in the regular expression  function matchAlltext() {       const str = document.getElementById('textinput').value;       const begins = document.getElementById('begins').value;       const regexp = new RegExp(/@\w+/ig);       let matchAll = str.matchAll(regexp);       matchAll = Array.from(matchAll);       document.getElementById('textoutput').value = matchAll;     }   I need to find all the words in the text starting with the character entered in the input field

I would like to create a String.replaceAll() method in JavaScript and I'm thinking that using a regex would be most terse way to do it.  However, I can't figure out how to pass a variable in to a regex.  I can do this already which will replace all the instances of "B" with "A".  "ABABAB".replace(/B/g, "A");   But I want to do something like this:  String.prototype.replaceAll = function(replaceThis, withThis) {     this.replace(/replaceThis/g, withThis); };   But obviously this will only replace the text "replaceThis"...so how do I pass this variable in to my regex string?


The question is as follows:          How can I prove the following theorem? $$\forall n \in \mathbb{N}, \ \pi(n) \geqslant \frac{\log n}{2\log 2} \tag1 \label1$$      I have no idea where to begin. I came across this equation on a paper that apparently proved Legendre's Conjecture. You can review the paper , which introduces the open conjecture, but it only reveals two proof even though the title states there are three proofs. In the paper, it mentioned that a demonstrated proof of $\eqref1$ was on pp. $21$ but for some reason, the paper that I observed, and that of which is accessible in the link, holds only $7$ pages.  May somebody please provide a proof of $\eqref1$? I am just curious.  Thank you in advance.    Edit:  When I was about to post this question, I was unaware that such a similar question has already been posted and answered. Sorry about that.

Let $\pi$ be the . Then     $\pi(x)\geqslant\log x/(2\log2)$ for all $x\geqslant2.$   Maybe I am missing something pretty evident, but, so far, I have proved that $\pi(x)\geqslant\log{\lfloor x\rfloor}/(2\log2)$ using a method Paul Erdős used to prove that there are infinitely many primes, however, I don't know how to prove the original inequality.  Any help is really appreciated!.


number of integral values of x for which $x^2+19x+92$ is a perfect square=?   I have no idea how to do this. Please help.

Calculation of Integral values of $x$ for which the expression $x^2+19x+92$ is a perfect square.  $\bf{My\; Solution::}$ Let $x^2+19x+92 = k^2\;,$ where $x,k\in \mathbb{Z}$  $$x^2+19x+(92-k^2)=0$$  Now $$\displaystyle x = \frac{-19\pm \sqrt{19^2-4(92-k^2)}}{2} = \frac{-19\pm \sqrt{4k^2-7}}{2}$$  Now for perfect square $\displaystyle 4k^2-7 = 0\Rightarrow k=\pm \frac{\sqrt{7}}{2}$  But it is wrong,  Please explain me how can i solve it and where i am wrong,  thanks


Whenever I perform a search in Windows, I get broken icons for some apps. They mostly seem to be Windows store apps (calculator, calendar, mail, camera).  Anyone knows how to fix this?

When I search for any app in the Windows 10 search, it has the same wrong icon (this is just an example):    When having the app open or when looking at it in different places (start menu, taskbar, the app itself), the icon is fine (these are just examples of places I could look):     How can I resolve this? I did nothing quirky with the metro app system (like modifying/installing/uninstalling via PowerShell or by using external tools). This is in a fresh Windows 10 Pro setup that is one day old.  I already tried:   Rebuilding the Windows search index completely Rebooting Installing an app and uninstalling it again from the Windows store Giving "Everyone" full permissions to C:\Program Files\WindowsApps


When putting some code sections into SO questions, the system tries to detect the language and automagically colorizes the code but sometimes if the excerpt of code is small enough it cannot get the correct language, or renders no language at all (grey text).  By looking at some edits from experienced SO users I have found the <!-- language: lang-xxx --> trick to give the correct language to the rendering engine.  That  gives a list of supported languages but I have seen in SO some languages not listed here (like lang-nsis) and the  shows a list that is different of what is told here.   Is there an up-to-date list of supported languages for syntax highlighting in Meta?  Would it be possible to show it in the "markdown editing help" to keep it accessible easily?

I noticed that sometimes my code gets highlighted in different colors when rendered.   What is syntax highlighting? How does it work? Why isn't my code being highlighted correctly? How do I report a bug or request a new language? How do I use syntax highlighting? What languages are currently available on Stack Exchange?


A particle of mass $m$ moves in one-dimension with position $x$ and potential $V(x)$, described by the Lagrangian $$ L = \frac{1}{12}m^2 \dot{x}^4 + m \dot{x}^2 V - V^2  $$ Show that the resulting equation of motion is identical to that arising from the usual Lagrangian  $ L = \frac{1}{2}m \dot{x}^2 -V .$

I saw this Lagrangian in notes I have printed:  $$ L\left(x,\frac{dx}{dt}\right) = \frac{m^2}{12}\left(\frac{dx}{dt}\right)^4 + m\left(\frac{dx}{dt}\right)^2\times V(x) -V^2(x). $$ (It appears in the exercises in the first chapter of Goldstein.)  What is it? Is it even physical? It seems like it doesn't have the right units of energy.


I have found following definition at      In programming languages, a closure (also lexical closure or function   closure) is a function or reference to a function together with a   referencing environment—a table storing a reference to each of the   non-local variables (also called free variables or upvalues) of that   function.[1] A closure—unlike a plain function pointer—allows a   function to access those non-local variables even when invoked outside   of its immediate lexical scope.   is it true all occasions ? can't lambda functions (those creates a closure) keep refereeing to local variable that would be in out of scope when the lambda is called? isn't this is the behavior of GO?    PS: I am still wondering why they use "lambda" term   For this  got the answer     Following post might find helpful for other readers,

Could someone explain? I understand the basic concepts behind them but I often see them used interchangeably and I get confused.   And now that we're here, how do they differ from a regular function?


I have two layers and they just won't line up. I am a novice and tried a variety of things but I can't get it right.  My layers are in:  GRS_1980_Transverse_Mercator ETRS_1989_LAEA  These are CORINE and Copernicus EUDEM layers, or layers derieved from them.  What should I do, and more importantly - how?

I put 4 different layers into my ArcMap document, but only one of them will show up on the map! I should be seeing the other 3 layers as well. When I do a Zoom to layer, I can see one layer, but I cannot figure out how to make the other 3 show up at once on top of each other.  Before I opened ArcMap, I used ArcCatalog where I right-clicked 3/4 of the shapefiles and  clicked Properties → Coordinate system → Import and then clicked on my Trees layer, which has the coordinate system I want the other 3 to have. But when I opened ArcMap the 4 layers did not overlap, nor could I move them above or below each other.


I've been going through solutions from  here and dotnetperls to try and find a way to format my textbox to only allow numeric characters. I'm either just not getting it, or really don't understand the code to do what I want.  I have a form that changes depending on which button was pressed in another form, and I need the Age box to only allow numerical characters up to 99 (So the user can enter an age in the range of 1-99. I've looked into Regex methods and masked text boxes but just don't get it.  Would someone be able to point me in the direction of what I would use to achieve this?  My code reads as:  private void AddItem_Load(object sender, EventArgs e)     {         if (formName == "customer")         {             this.Text = "Add Customer";             lblZero.Text = "ID:";             lblOne.Text = "Customer Name:";             lblTwo.Text = "Address Line 1:";             lblThree.Text = "Address Line 2:";             lblFour.Text = "Town:";             lblFive.Text = "Postcode:";             lblSix.Text = "Age:";              txtID.Text = Convert.ToString(customerList.NewID());             txtID.Enabled = false;          }         else         {             this.Text = "Add Product";             lblZero.Text = "Product ID:";             lblOne.Text = "Product Code:";             lblTwo.Text = "Product Name:";             lblThree.Text = "Product Description:";             lblFour.Text = "Price:";             lblFive.Text = " --------- ";             lblSix.Text = " ---------";              txtID.Text = Convert.ToString(productList.NewID());             txtID.Enabled = false;             txtFive.Enabled = false;             txtSix.Enabled = false;          }     }   where the textboxes on the form are labelled  txtZero.txt ~ txtSix.txt.  All help is much appreciated :)

I have a windows forms app with a textbox control that I want to only accept integer values. In the past I've done this kind of validation by overloading the KeyPress event and just removing characters which didn't fit the specification. I've looked at the MaskedTextBox control but I'd like a more general solution that could work with perhaps a regular expression, or depend on the values of other controls.  Ideally this would behave such that pressing a non numeric character would either produce no result or immediately provide the user with feedback about the invalid character.


I found in the book Escapades Arithmétiques written by Frédéric Laroche this formula:     $$1+\frac 1{1\cdot 3}+\frac 1{1\cdot 3\cdot 5}+\cdots+\frac 1{1+\frac 1{1+\frac 2{1+\frac 3{1+\cdots}}}}=\sqrt{\frac{e\pi}2}.$$   Perhaps in a more explicit way, the first part of this formula is:  $$\sum_{k=0}^\infty \left(\prod_{j=0}^k (2j+1)\right)^{-1}.$$  What I do not like is that this formula (beautiful in my opinion) is written without any proof nor reference.   Do you have an idea on how to prove such a result? Do you know a book that gives the proof of this formula?

Here is a famous problem posed by Ramanujan     Show that $$\left(1 + \frac{1}{1\cdot 3} + \frac{1}{1\cdot 3\cdot 5} + \cdots\right) + \left(\cfrac{1}{1+}\cfrac{1}{1+}\cfrac{2}{1+}\cfrac{3}{1+}\cfrac{4}{1+\cdots}\right) = \sqrt{\frac{\pi e}{2}}$$   The first series seems vaguely familiar if we consider the function $$f(x) = x + \frac{x^{3}}{1\cdot 3} + \frac{x^{5}}{1\cdot 3\cdot 5} + \cdots$$ and note that $$f'(x) = 1 + xf(x)$$ so that $y = f(x)$ satisfies the differential equation $$\frac{dy}{dx} - xy = 1, y(0) = 0$$ The integrating factor here comes to be $e^{-x^{2}/2}$ so that $$ye^{-x^{2}/2} = \int_{0}^{x}e^{-t^{2}/2}\,dt$$ and hence $$f(x) = e^{x^{2}/2}\int_{0}^{x}e^{-t^{2}/2}\,dt$$ Thus the sum of the first series is $$f(1) = \sqrt{e}\int_{0}^{1}e^{-t^{2}/2}\,dt$$ But I have no idea about the continued fraction and still more I am not able to figure out how it would simplify to $\sqrt{\pi e/2}$ at the end.  Please provide any hints or suggestions.  Update: We have $$\begin{aligned}f(1) &= \sqrt{e}\int_{0}^{1}e^{-t^{2}/2}\,dt = \sqrt{e}\int_{0}^{\infty}e^{-t^{2}/2}\,dt - \sqrt{e}\int_{1}^{\infty}e^{-t^{2}/2}\,dt\\ &= \sqrt{\frac{\pi e}{2}} - \sqrt{e}\int_{1}^{\infty}e^{-t^{2}/2}\,dt\end{aligned}$$ and hence we finally need to establish $$\sqrt{e}\int_{1}^{\infty}e^{-t^{2}/2}\,dt = \cfrac{1}{1+}\cfrac{1}{1+}\cfrac{2}{1+}\cfrac{3}{1+}\cfrac{4}{1+\cdots}$$ On further searching in Ramanujan's Collected Papers I found the following formula $$\int_{0}^{a}e^{-x^{2}}\,dx = \frac{\sqrt{\pi}}{2} - \cfrac{e^{-a^{2}}}{2a+}\cfrac{1}{a+}\cfrac{2}{2a+}\cfrac{3}{a+}\cfrac{4}{2a+\cdots}$$ and it seems helpful here. But unfortunately proving this formula seems to be another big challenge for me.


I tried prove the following:  In $\mathbb R$ the only clopen sets are $\mathbb R$ and $\varnothing$.  please can you check my proof?   Let $S$ be non-empty and proper subset of $\mathbb R$ such that $S$ is both open and closed. Let $x \in S$ and $y \in S^c$. Without loss of generality assume $x < y$. Then $[x,y]$ is closed and non-empty. Also, $S$ is closed hence $S \cap [x,y]$ is closed. By definition of closure, $\sup A \in \overline{A}$ for all sets $A$ and since for closed sets $S$ the closure $\overline{S} = S$ it follows that $s = \sup (S \cap [x,y]) \in (S \cap [x,y])$.   Similarly, $i = \inf (S^c \cap [x,y]) \in (S^c \cap [x,y])$.   Then, $i \le s$ because if $i > s$ then there is $s < x < i$ such that $x \notin S \cup S^c$ which is a contradiction. If $i < s$ then there is $i < x < s$ such that $x \notin S \cup S^c$ which would also be a contradiction. Therefore $i = s$. But then $i \in S \cap S^c$ which would again be a contradiction hence $S$ must be either empty or all of $\mathbb R$.

In other words, are $\emptyset$ and $\mathbb{R}$ the only open and closed sets in $\mathbb{R}$? Why/Why not?  I tried by assuming a set is equal to its interior points and contains its limit points.  A bounded set will not do since stuff like $[1,4]$ and $\{5\}$ will not work, though that is not really proof. Help please?  Anyway, it must then be unbounded.  If $a$ is a real number then $(a,\infty)$, $(-\infty,a)$, $[a,\infty)$ and $(-\infty,a]$ don't seem to cut it so it must be $\mathbb{R}$.


I have a little problem with Attributes. I am currently working on a project that parses emails from an LDAP server into the Java application that will be doing some interesting stuff with emails in the future.  I am currently having this code that takes emails from users on LDAP and it needs to put emails in the User class as seen in my code:       [some code here, TRY CATCH is also included]           LdapContext ctx = new InitialLdapContext(env, null);                 ctx.setRequestControls(null);        NamingEnumeration<?> namingEnum2 = ctx.search("[path to the server]", "(objectClass=user)", getSimpleSearchControls());       System.out.println("Test: print emails from whole DIRECOTRY: \n");       while (namingEnum2.hasMore()) {          SearchResult result = (SearchResult) namingEnum2.next();         Attributes attrs = result.getAttributes();           System.out.println(attrs.get("mail"));          /** This line above works fine, but every time there is no email              in User info, it prints "null" in some cases when there is              no email, which is not perfect. But this is just here to see              if everything works and indeed it does.**/           /**User Class accepts a String parameter, checks if it's empty             and all that, does some checking and etc... BUT! attrs.get("mail")             is an Attribute, NOT a String. And I need to somehow "cast" this             attribute to a String, so I can work with it.**/         User user = new User(attrs.get("mail")); //error yet,because the parameter is not a String.          User user = new User(attrs.get("mail").toString());//gives an expeption.          /** And I know that there is a toString() method in Attribute Class,             but it doesn't work, it gives an "java.lang.NullPointerException"             exception when I use it as attrs.get("mail").toString() **/     }   Here is User class's constructor:  public User(String mail){         eMail = "NO EMAIL!";         if (mail != null && !mail.isEmpty()){               eMail = mail;         }         else         {              eMail = "NO EMAIL!";         }       }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


Code:  $("input[type=checkbox]").on("click", function() {     deptsSelected = '
  ' + $("label[for='" + this.id + "']").text() + '
';     $("#tabs").append(deptsSelected); });  $("#selected").on("click", function() {     $("#tabs").slideUp(); });   When I click on #selected div nothing happend,  I have checked if Jquery loading and every thing seems fine I am wondering why click function does not work. I will apreciate your help Thanks!

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


So I am currently making a minecraft custom map (for 1.9). I want to make the player "say" something using /tellraw commands. I did figure out how to make the player name come up using /say commands, but still have no idea how to do it using the /tellraw command.  How do I do that?

like the title says, I'm looking for a way to display a player name in a /tellraw command which is run by a command block. Example:  /tellraw @a {"text":"","extra":[{"text":"A player has won the game!","color":"blue"}]}   And the output is something like this:  A player has won the game!   But I want the output to be something like  JasonSPQR has won the game!   Using the @p parameter


I am trying to find the sum of  $$\sum_{k=1}^{\infty}{\frac{(-1)^k}{k}}$$  I've proven that this converges using the Leibniz test, since $a_n > 0$ and $\lim_{n\to\infty}{a_n} = 0$.  I am not sure how to go about summing this series up though. Every example I've seen up to now does some manipulation so that a geometric series pops out. I've been at it for a bit and I don't see how I could convert this to a geometric series to sum it up.

I know that the harmonic series $$\sum_{k=1}^{\infty}\frac{1}{k}  = \frac{1}{1} + \frac{1}{2} + \frac{1}{3} + \frac{1}{4} + \frac{1}{5} + \frac{1}{6} + \cdots + \frac{1}{n} + \cdots \tag{I}$$ diverges, but what about the alternating harmonic series   $$\sum_{k=1}^{\infty}\frac{(-1)^{k+1}}{k}  = \frac{1}{1} - \frac{1}{2} + \frac{1}{3} - \frac{1}{4} + \frac{1}{5} - \frac{1}{6} + \cdots + \frac{(-1)^{n+1}}{n} + \cdots \text{?} \tag{II}$$  Does it converge?   If so, what is its sum?


Ubuntu 18.04 has locked up.  Can a restart be forced other than by shutting down?

All operating systems freeze sometimes, and Ubuntu is no exception. What should I do to regain control when...   just one program stops responding? nothing at all responds to mouse clicks or key presses? the mouse stops moving entirely? I have an    In what order should I try various solutions before deciding to pull the power plug?  What should I do when starting up Ubuntu fails?  Is there a diagnostic procedure I can follow?


Firstly, disclaimer: I have been learning Java for a year now (in uni) and doing some Android development with it. This is my first question on Stackoverflow, so apologies in advance if this question is not asked in the best way. Now on to the question; I do not understand why one would use an abstract class or interface as a return type of a Java method. I've seen some methods like so: public List<String> foo {     // some code here }  Since List is an interface, what advantage does this approach have instead of having a concrete object as a return type (e.g., LinkedList or an ArrayList)?

I have seen this mentioned a few times and I am not clear on what it means. When and why would you do this?   I know what interfaces do, but the fact I am not clear on this makes me think I am missing out on using them correctly.   Is it just so if you were to do:  IInterface classRef = new ObjectWhatever()   You could use any class that implements IInterface? When would you need to do that? The only thing I can think of is if you have a method and you are unsure of what object will be passed except for it implementing IInterface. I cannot think how often you would need to do that.   Also, how could you write a method that takes in an object that implements an interface? Is that possible?


This is a self-answered question.  This has been asked before, but I did not see a solution in the forum. I did find the answer myself (at least for my case) and I wanted to share it with you guys, as it was the reason that brought me here in the first place.  For the record, the original question I saw is posted with the following name: "Illustrator - my rectangles are all sheared skewed?"  I could not add a comment on that question, so I decided to do this to help others with the same problem.  Final detail: Original answer was deleted, as it was created in the Q&A format.  With that out of the way, here is what I found that worked for me...

When I try to create a rectangle in a certain .ai file they all come out sheared:    but this isn't the case in other projects.  Is there any way to fix


My question is pretty standard and easy,I wonder all my life how Einstein get energy equation .  Also I some videos about that equation on YouTube and some of the peoples said there that the equation $E=mc^2$ isn't full.  Any help will be appreciated.

Most people know the famous equation:    What were his steps of thinking for this equation that helped us discover so much about our world?


This was after apt update, apt-dist-upgrade:  root@_____:~# cat /etc/os-release  NAME="Ubuntu" VERSION="16.04.6 LTS (Xenial Xerus)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 16.04.6 LTS" VERSION_ID="16.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" VERSION_CODENAME=xenial UBUNTU_CODENAME=xenial  root@_____:~# do-release-upgrade  Checking for a new Ubuntu release No new release found.

I know I've seen this documented somewhere before, but what's the option to keep update-manager from prompting for updates except for LTS-to-LTS releases?


I want to use a .mp4 video as a screensaver, any suggestion?

I want to make my video to be a screensaver.  Is there any software to make it?


I'm trying to figure out how to center the title of the product I'm selling on my website (Safe Guard Lenz) as well as center the pricing details that's under the product title as well. I need them centered for both mobile and desktop. It's located at the bottom of the home page and on the product page itself. Ideally would want it centered for both. Any help to achieve this would be greatly appreciated as I've been looking for a solution for this online and can't seem to have any success. My website is safeguardlenz.com and the password is: Bebe Thank you!

How can I horizontally center a
 within another
 using CSS?

Foo foo


I have a file path /home/test/domain/example.txt It can also be completely different in length and file extension. For example: /reallylongpath/example/longername.vb  I need to remove the extension name '.' and after, and I need to delete everything other than the file name. The two examples above I would need example and longername. I was assuming to go to the last occurrence of '/' but not sure. I am looking to do this using bash.

How can I get only the filename using sed? I've this  out_file=$(echo $in_file|sed "s/\(.*\.\).*/\1mp4/g")   But I get the path too /root/video.mp4, and I want only video.mp4.


I was thinking about this today. And although I've made some trials to answer it, none of them seem to fit. So, how do we define interior and exterior of a geometric figure? I guess that perhaps there might be some connection with the idea of open/closed sets in topology. But I'm not sure.

A question occurred to me when browsing SE this evening, just curious.  What specifies the inside of a 3D construct? If I have a hollow sphere, what's to say that the world isn't the inside, and the center of the sphere isn't the outside. Picture the Asylum in the Hitchhiker's Guide to the Galaxy series, if you have read that.  Additionally, if the inside of a 3D object is defined as what is smaller than the outside, what happens when there is a a sphere with a volume equivalent to 51% of the universe?


I am making a .bib file and the citations are working well using @article. While using @inproceedings and @misc, I am getting one '(' in the reference. @inproceedings{Aggarwal06,    author={Aggarwal, Gagan and Hartline, Jason D.},    year={2006},    title={Knapsack auctions},    booktitle={Proceedings of the 17th Annual ACM-SIAM Symposium on Discrete Algorithms},    pages={1083-1092},    publisher={Association for Computing Machinery},    address={New York} }  The result is coming out to be:  Aggarwal, G., Hartline, J.D.   ‘Knapsack auctions’.   In: Proceedings of the 17thAnnual ACM-SIAM Symposium on Discrete Algorithms. (New York: Associationfor Computing Machinery, 2006. pp.  1083–1092.  Notice the '(' before New York. I am using IET Trans format. So, using iet.bst file for bibliography style. Following is the link that I am using:  Could anyone suggest how to get rid of this?

The iet.bst file is not providing the appropriate citation for conference proceedings and database entry. How do I modify it?  The iet.bst file under section 2.6.5 on the webpage which I am using:   The bib entries are:  @INPROCEEDINGS{byang,         author={B. Yang and D. Hartung and K. Simoens and C. Busch},         booktitle={IEEE International Conference on Biometrics:          Theory Applications and Systems (BTAS)},         title={Dynamic random projection for biometric template protection},         year={2010},         pages={1-7},         month={Sept},}  @TECHREPORT{nist,     author = "C. I. Watson and M. D. Garris and E. Tabassi and      C. L. Wilson and R. M. McCabe and S. Janet and K. Ko",     title = "User's guide to Non-Export Controlled Distribution of NIST Biometric Image Software",     institution = "NIST",     year = "2004" }  @INPROCEEDINGS{ice,     author={Phillips, P.J. and Bowyer, K.W. and Flynn, P.J.      and Liu, X. and Scruggs, W.T.},     booktitle={2nd IEEE International Conference on Biometrics: Theory, Applications and Systems},     title={The Iris Challenge Evaluation 2005},     year={2008},     month={Sept},     pages={1-8}, }    @MANUAL{fvc,      TITLE = "Fingerprint Verification Competition (FVC2002)",      NOTE = "http://bias.csr.unibo.it/fvc2002/databases.asp",      }


Sindbad was a rich and a famous sailor.   Sindbad was a rich and famous sailor.   Which of these are correct? What is the general rule for using articles before a noun with two adjectives?

In the following example, is it appropriate to use a or an as the indefinite article, and why?     He ate __ green apple.   I know that in the case of just "apple", it would be "an apple," but I've heard conflicting answers for "green apple," where the noun is separated from the article by an adjective.  Also, which is more appropriate in this case:     He ate  __ enormous Pop-Tart.


I have tried to apply a cloud mask for a landsat 8 collection using , , and  but none will work.  code1 encounters the error of not working even after changing   var mask = img.select(['cfmask']).neq(4) to   var mask = img.select(['pizel_qa_bands']).neq(3)  code2 encounters the problem of not being a time series dataset. I want to be able to extract pixel values for each image over a period of time but this code only gives one output of pixel values.  and I can't adapt my script to code3.  Here is my script and all i want to do is remove the clouds and cloud cover from a Landsat8 image collection     var l8_mayo = ee.ImageCollection('LANDSAT/LC08/C01/T1_TOA')   .filterDate('2000-01-01', '2018-12-31')   .filter(ee.Filter.eq('WRS_PATH', 208))   .filter(ee.Filter.eq('WRS_ROW', 23));  var visParams = {bands: ['B4', 'B3', 'B2'], max: 0.3}; Map.setCenter(-9, 53, 8); Map.addLayer(l8_mayo, visParams, 'l8_mayo collection');`

I've noticed that my cloud mask wasn't working, so I've tried this simple test:   But my data uses the Surface Reflectance Landsat 8 imagery so, I just changed to that, and since there's no fmask band in this, I've changed to the 'pixel_qa' that also make those distinctions. I thought it was the same, but isn't working.    Code:  //Choose country using GEE Feature Collection  var region = ee.FeatureCollection('ft:1tdSwUL7MVpOauSgRzqVTOwdfy17KDbw-1d9omPw').filterMetadata('Country', 'equals', 'Portugal');  //Add region outline to layer ‐ for selected countries  Map.addLayer(region,{}, 'Portugal');  var landsat8 = ee.ImageCollection('LANDSAT/LC08/C01/T1_SR')  // Fmask classification values var FMASK_CLEAR_GROUND = 0; var FMASK_WATER = 2; var FMASK_CLOUD_SHADOW = 3; var FMASK_SNOW = 4; var FMASK_CLOUD = 5;  var mosaic = landsat8   .filterBounds(region)   .filterDate('2017-08-01', '2017-10-11')   .mosaic();  // Update the mask on our mosaic to mask cloud and cloud shadow pixels var fmask = mosaic.select('pixel_qa'); var cloudMask = fmask.neq(FMASK_CLOUD).and(fmask.neq(FMASK_CLOUD_SHADOW)); var maskedMosaic = mosaic.updateMask(cloudMask);  Map.addLayer(fmask, {min:0, max:5, palette:'green, blue, black, cyan, pink, white'}, 'Fmask'); Map.addLayer(maskedMosaic.select('B4'), {min:0, max:0.5, palette:'yellow, green'}, 'Masked NIR');


When executing a function in JavaScript, I've always ended my code block with a semi-colon by default, because that's what I've been taught to do. Coming from Java it felt a bit unorthodox at first, but syntax is syntax.  function semiColon(args) {    // code block here };   or  function sloppyFunction(args) {    // code block here }   Lately I've been seeing more and more code where the developer left the semi-colon out after functions, but the intended code still executed normally. So are they actually required? If not, why is it common practice to include them? Do they serve another purpose?

In many situations, JavaScript parsers will insert semicolons for you if you leave them out. My question is, do you leave them out?  If you're unfamiliar with the rules, there's a description of semicolon insertion on the . Here's the key point:     If the first through the nth tokens of a JavaScript program form are grammatically valid but the first through the n+1st tokens are not and there is a line break between the nth tokens and the n+1st tokens, then the parser tries to parse the program again after inserting a virtual semicolon token between the nth and the n+1st tokens.   That description may be incomplete, because it doesn't explain @Dreas's example. Anybody have a link to the complete rules, or see why the example gets a semicolon? (I tried it in JScript.NET.)   is related, but only talks about a specific scenario.


Is the light speed the same, constant, in all the universe locations? I mean, is it he same in the surface of the Sun compared with speed in space inter galaxies?  Also: is light speed now the same as, let's say, half of the Universe life ago? (i.e. about 6500 million years ago)

I am by no means an expert in this field, however something puzzles me about the speed of light and the relativity of time and space (space-time).  Is is universally acknowledged that the speed of light (299,792,458 m/s) is the universal speed limit, and that nothing can travel faster than light? That is a measurement based on a man-made interpretation of time (hours, minutes and seconds etc. are man made...there is nothing natural dictating how long a second should be).   For instance, according to Einstein, time and space bend around the physical matter of the universe, so for example, time near or on the surface of a "super massive black hole" should be drastically slower, relative to that of earth. Lets say for example that for every second that passes on the black hole, 10 seconds pass on earth, so essentially time on the surface of the black hole is 10 times slower than the time on earth.  Given the example above, is the speed of light at the surface of the black hole still 299,792,458 m/s, or is it 299,792,458,0 m/s?


What dialect is this: omitting a hard "t" in a word such as button. Sounds like they're saying buh en.

The American Heritage Dictionary says 'KIT-n' but speakers in my locale (west coast US) say 'Ki with short i, glottal stop, n.' There is no 't' sound. Do we speak slang, a dialect, or are we pronouncing it correctly?  The only reference I found here was from last May: "Intervocalic /t/ almost always reduces to a single flap [ɾ] there. That’s why ladder and latter are homophonic, although kitten and kiddin’ are not. Indeed, kitten may become just [ˈkʰɪʔn̩] (sometimes written [ˈkʰɪʔən]) , often enough."  I don't understand IPA code. Thank you!


I'm researching playing around with a Sql Server VM on Azure.  Our DB is around 30-40GB.   So i was thinking about making a 300GB data disk to put the 1 Database on it (or a few more, later).  I believe i have a few options here.   A single Data Disk which is 300GB in size. Multiple Data Disks with striping that total 300GB (Eg. 2x150 or 3x100 GB)   Questions:   Is it worth striping? Does either option consume more page blobs than the other?   I'm under the impression that:   Going the striping option offers us more IOPS at the cost of higher risk or HD failure which means higher risk of data loss (for the sake of this discussion, lets leave backups out of this). The multiple data disks will consume more page blobs but that number is tiny and not really worth worrying about. (but I have ZERO proof of this nor do i know how to figure out this metric answer).

This is a  about Licensing.    Questions on licensing are off-topic on Server Fault.  If your question has been closed as a duplicate of this question, then this is because we want to help you understand why licence questions are off topic rather than just telling you "it just is". In all likelihood, this question will not address your question directly, it was not meant to.    I have a question regarding software licensing. Can the Server Fault community please help with the following:   How many licenses do I need? Is this licensing configuration valid? What CALs do I need to be properly licensed? Can I run this product in a virtual environment? Can I downgrade this product to an earlier version? Am I entitled to feature X with license Y?


I'd like to detect if a lightning component is opened from Chrome browser. I've tried using $A.get('$Browser')but it doesn't provide anything about detecting Chrome. Do you know how i could achieve this? Thanks,  EDIT : It's not about detecting any browser, os or device, it's about detecting when Salesforce1 is actually running on Chrome Mobile Browser or using Web-view specifically.

I need to detect browser type (IE, Chrome, Safari etc.) in the lightning component but navigator.userAgent is not working in lightning.


I have seen this several times, Server running debian and pve. This will happen in pve lxc centos, What's the reason?

What does ` mean in this output from lsblk?


Give an example of an open cover of the segment $(0,1)$ which has no finite subcover.  Example: Taking $G_n=(0,1-1/n)$ for $n>1$. It is obvious that $(0,1)\subset \cup_{n=2}^{\infty}G_n$ but $\{G_n\}$ has no finite subcover of $(0,1)$.  Does this example satisfy the conditions of problem?

I just got back from my exam and these questions' solutions eluded me, it would be great to use the rest of my evening figuring these out...  Q1: Find an open covering of the set $(0,1) \subset \mathbb{R}$, say $G =\{U_\alpha\}_{\alpha \in A}$, (where $A$ is some indexing set) such that $G$ has no finite subcover.  Q2: Let $f: [0,1] \to [0,\infty) $ be a continuous function. Let there be some $c\in [0,1]$ such that $f(c)$ is non-zero. Prove that there exists an $\epsilon \gt 0$ such that the set:  $X_1=\{\ x\in[0,1]\ | \ f(x)\gt\epsilon\  \}$   is non-empty, and open.


In the list of off-topic close reasons, when one or more close votes are being shown next to one of the reasons, bold text on the same line is misaligned a few pixels below the non-bold text.    The text is correctly aligned when a number of close votes is not present.  And when the number of close votes is present on a line, its text is aligned below the text on the same line.    Note that in each case, the bold text, and the number of close votes (which is also bold) are misaligned with respect to the rest of the text in the line that the number of close votes appears on.  This appears in Chrome 28.0.1500.70.  (See also a related question where .)

"Should" word in italics is shifted down in the vote-to-close popup when there is at least one pending close vote.  Just have a look at this:        Now without close votes:        So the issue occurs when there is a close vote on it. It doesn't look good.    Tested on Chrome 27.0.1453.116 m, Windows XP. And it looks fine on Firefox 21.0 and Opera 12.02 (Windows XP)  Here is an example of a slightly different but obviously related problem in Windows 7 SP1 and Firefox 21.0:    This seems to have something to do with how line-height and/or margin attributes are being interpreted.  Can this be fixed?


I want to visualize a design project - a user interface, in a more fun way, and this is what I’ve got so far.  The problem that I can’t solve is that the light makes all colors go whiter and more bland. So right now the white isn’t white enough, the blacks aren’t black enough and the colors also turn too white. I turned "Specular" down to 0, which makes it slightly better, but I think it also makes the whites slightly grayer. Probably a basic question, but I'm new to Blender and I can’t find the answer. Does anyone know what I can do to solve this? Thank you.

I already searched the internet but could not find a solution to this. Maybe it is the same question as  but there was no answer.  I want to render a video with tracking, but the output "loses" color information and gets kind of greyish. I first thought that it is related to the renderer, but it happens in Cycles and Eevee. Therefore i made a sample image, added it to the image sequence editor and rendered it as 1 frame. Resulting in the same problem.  I placed the original image beside blenders output so that you can see the difference. The only idea I came up with is that something with the lighting is not correct but I can't find a setting for that.  I am using Blender 2.80 with the default settings. Only set the output resolution to match the input resolution.


$f$ is continuous on $0$ $\lim\limits_{x \rightarrow 0} \dfrac{f(2x)-f(x)}{x} = l < \infty$ We want to show that $f$ is derivable on $0$   My attempt : We could try to control \begin{align*} \left|\dfrac{f(x)-f(\dfrac{x}{2^{n+1}})}{x} - \sum_{k=0}^n \dfrac{l}{2^{k+1}} \right|&= \sum_{k=0}^n \left|\dfrac{ f(\dfrac{x}{2^{n+1}})-f(\dfrac{x}{2^{n+1}})   }{x} - \dfrac{l}{2^{k+1}}  \right| < n \varepsilon \end{align*}

Let $f$ be continuous at $0$. Suppose $\displaystyle \lim _{x\rightarrow 0} \frac{f(2x)-f(x)}{x} =L$. Prove that $f'(0)=L$.   My Work:  $\displaystyle \Bigg|\frac{f(x)-f(0)}{x}-L\Bigg|=\Bigg|\frac{f(x)-f(2x)+f(2x)-f(0)}{x}-L\Bigg|$  $\displaystyle \leq \Bigg|\frac{f(x)-f(2x)}{x}-L\Bigg|+\Bigg|\frac{f(2x)-f(0)}{x}\Bigg|$. Since $f$ is continuous at $0, |f(2x)-f(0)|$ goes to $0$ as $x$ goes to $0$. Now I want to get rid of $|x|$ of the second term. How can I do it? Can somebody please help me?


I want to draw the first few iterations of the construction of the Cantor set. Since I am a TikZ beginner, I need your help. Thanks in advance.   More information about the Cantor set can be found here . The idea is to successively remove middle-thirds.

I am trying to draw a cantor set in LaTeX and I am having issues doing this. I am trying multiple \put commands, but they just go to the right of one another. Does anyone know how to do this?  Any help would be much appreciated.


I recently started using the iOS app on an iPhone XR under iOS 12.2 and am finding that it gives a blank screen whenever I save a comment on any post on any Stack Exchange site.   I am able to use the back button to see that the comment has been saved, but is this a bug that can be reproduced and fixed?   App Version: 1.6.6.2 Device: iPhone XR OS Version: Version 12.2 (Build 16E227)

Since iOS 11.2 all the way through 12.2 beta 4, if you post or discard a comment on any post on any SE community, the screen will turn white. This has been ongoing continuously for a year now, and it affects both the SE app and the SO app.   You can go back to the previous screen and open the question again, and everything appears as normal. You can also rotate the screen to get the text to come back. Using the arrows to navigate between the question and answers updates the HUD, but the screen remains white unless one of the above is done to get the text back.        UPDATE: After posting anything (comment, answer), the screen goes all white except for the sidebar. Perhaps it is intentional, but I prefer last week’s behavior of going back to the content. Not major, since the sidebar icons still work.


On a map that I am creating (in ArcGIS Desktop 10), I need to include symbols for point features that are sometimes right next to (or even on top of) each other. This, of course, creates potential for all sorts of clutter or even for some features to not be displayed at all when zooming out.   I am thinking of positioning the symbols in a neat row (or column) off to the side and having some kind of arrow point from them toward the features' actual location. Is there some kind of symbology setting for this in ArcGIS (I want to be sure that the distance between the symbols is always consistent every time this is done), or do I have to align the symbols and draw the arrow (or whatever the proper term is) by hand?

I'm working on Arcgis 10.  I have a point shapefile representing events with several points having coinciding coordinates (They have the same coordinates). For representing them in a dynamic way, I found a nice way - .  Problem is: I was asked to produce a static (paper) map of the events. Is there a tool that can take these events and shift them apart a bit so all will be seen?  (I know that spreading them about will alter their coordinates, but I am prepared to do so on a duplicate shapefile for the display on the map).


I've the following circuit:         – Schematic created using   In my book they stated the following sentence:     After that the switch is closed for a long time, I let go of the switch. The voltage at the node \$Y_1\$ will rise in a few miliseconds to about -90 volts.   Question: why is that true? Because the supply voltage is way way less than 90 volts. How can the voltage at the coil exceed the supply voltage soo much?

Well, I have the following circuit:         – Schematic created using   When the switch is closed for a long time, the current that is flowing trough the resistor \$R_1\$ and the coil is given by:  $$\text{I}_\infty=\frac{\text{V}}{\text{R}_1}=\frac{10}{100}=\frac{1}{10}\tag1$$  With that given I can solve what happens when I open the switch. The current trough the coil will stay in the same direction as when the switch is closed. Now, at the moment when I open the switch the voltage across the coil \$\text{V}_{\text{Y}_1}\$, is given as:  $$\text{V}_{\text{Y}_1}=-\text{V}\cdot\frac{\text{R}_1+\text{R}_2}{\text{R}_1}\cdot\exp\left(-\frac{\text{R}_1+\text{R}_2}{\text{L}}\cdot t\right)\tag2$$     So, the voltage over the coil will start (when I open the switch) at \$-\text{V}\cdot\frac{\text{R}_1+\text{R}_2}{\text{R}_1}=-10\cdot\frac{100+100}{100}=-20 V\$, which is (absolutely seen) higher than the supply voltage. How is that possible? Or is the formula \$(2)\$ wrong?


I have a list of dictionaries having 16k dictionaries. I want to split the list of dictionaries into multiple lists of dictionaries.  Current list of dictionaries -  list = [{'system_name': 'W1PVTL1098', 'fdc_inv_sa_team': 'X3Virtualization'},         {'system_name': 'W1PVTL1100', 'fdc_inv_sa_team': 'X3Virtualization'},         {'system_name': 'r3bvap1154', 'fdc_inv_sa_team': 'X2Linux_NSS'},          {'system_name': 'r1qvap1281', 'fdc_inv_sa_team': 'X2Linux_NSS'},          {'system_name': 'R3QVAP1123', 'fdc_inv_sa_team': 'X2Linux_GBS'},          {'system_name': 'W3BVAP1294', 'fdc_inv_sa_team': 'X2Windows_NSS'}]   Desired Output -  list1 = [{'system_name': 'W1PVTL1098', 'fdc_inv_sa_team': 'X3Virtualization'},          {'system_name': 'W1PVTL1100', 'fdc_inv_sa_team': 'X3Virtualization'},          {'system_name': 'r3bvap1154', 'fdc_inv_sa_team': 'X2Linux_NSS'}]  list2 = [{'system_name': 'r1qvap1281', 'fdc_inv_sa_team': 'X2Linux_NSS'},           {'system_name': 'R3QVAP1123', 'fdc_inv_sa_team': 'X2Linux_GBS'},           {'system_name': 'W3BVAP1294', 'fdc_inv_sa_team': 'X2Windows_NSS'}]

I have a list of arbitrary length, and I need to split it up into equal size chunks and operate on it. There are some obvious ways to do this, like keeping a counter and two lists, and when the second list fills up, add it to the first list and empty the second list for the next round of data, but this is potentially extremely expensive.  I was wondering if anyone had a good solution to this for lists of any length, e.g. using generators.  I was looking for something useful in itertools but I couldn't find anything obviously useful. Might've missed it, though.  Related question:


I have trouble making a tikz picture label break into couple lines. Here is specific MWE:      \documentclass{article}      \usepackage[latin1]{inputenc}     \usepackage{tikz}     \usetikzlibrary{shapes,arrows}     \begin{document}     \tikzstyle{action} = [                         rectangle, draw,                          fill=blue!20,                         text width=6em,                         node distance=3cm,                          text centered                         ]      \begin{tikzpicture}[scale=2, auto]     % Place nodes     \node [             action,              label=below:Computer: (0 min)             ]              (Receive) {Receive Order};     \node [             action,              left of=Receive,             text width=10em,             node distance=4cm,             label=below: hey this is a big\\label; what should i do to break it?              ]              (identify) {I am a big process name};     \end{tikzpicture} \end{document}   As you can see, tikz doesn't break the line. Am I missing something?

How can I insert a line break in a TikZ node? Simply putting \\ where I want the break doesn't work (see MWE).  Is there a way to make lines break automatically at some specified width?  And can I control the alignment of the text (left, right, centered, justified)?  \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node {First line\\second line}; \end{tikzpicture} \end{document}


I am new to mobile apps/games and I'm a bit confused about some stuff  What websites are similar to shutterstock but cheaper for commercial use  *about freepik: is the free assets are free for commercial use? Is the premium membership in freepik are worth paying for?  Is there any other suggested websites for vector/eps assets for mobile games use?  I am new to Graphic Design StackExchange and I'll be glad to learn from the experts. Thank you all.

I'm always on the hunt for free stock images to use while I design, what are some good resources for images that are under a a royalty free or creative commons licence?


If I, as a root user, add user milos, then the system asks me to provide some info, which I do.  When I, after that, userdel milos, it removes it and removes milos group.   Now, if I'm to useradd milos again, it doesn't ask me for a user password nor any info about the user whatsoever.   What did these commands do? How can I properly remove a user?

What is the difference between the commands adduser and useradd on Ubuntu?


Let $X$ be the number of times that a fair coin that is flipped 40 times lands on heads. Find $SD(X)$ (the standard deviation).  My attempt:  Intuitively, $E[X]=20$  $Var(X)=E[X^2]-(E[X])^2$ and $SD(X)=\sqrt{Var(X)}$  $\displaystyle E[X^2]=\sum_{x=0}^{40} x^2p(x)=\sum_{x=0}^{40}x^2\binom{40}{x}\left(\frac{1}{2}\right)^{40}$  Is there an easier way of doing this? The answer given in my textbook is $\sqrt{10}$.

Suppose we have a coin that has a probability $p$ of landing head. Let H be the number of heads obtained in N tosses. How to calculate $E(H^2)$? I need this to calculate some other things. But I can't figure out. I know I need to take $\sum x^2p(x)$, but I am unable to evaluate it to a nice expression.


I want to buy Xbox 360 but some of my friends said that it is not enough to install it. I'm a GTA fan and I think that you guys have enough time to answer me that old question. Please tell me what I can do to install it.

I just got it, it said there wasn't enough storage and I erased almost everything, but apparently my storage is full and I can't play it. Help?


I can't find the analogue of the \LaTeX command that produces the BibTeX logo:

we all know \TeX produces the TeX logo and \LaTeX produces the LaTeX logo. But there seems no command like \BibTeX for producing the BibTeX logo, while Wikipedia adopts a complicated workaround: . So is there no simple command? (I think Bib\TeX is no good because the case does not conform to the official one)


Could someone please verify whether my solution is correct?     For ring homomorphism $\phi:R\to S$, prove that $\phi(R)$ is a subring of $S$.   Subset/nonempty: Since $\phi(0_{R})=0_{S}$, then $\phi(R)\subset S$ and $\phi(R)\neq \varnothing$.  Closure under subtraction: Let $\phi(r),\phi(s)\in \phi(R)$. Since $R$ is a ring, $r-s\in R$ and $\phi(r-s)\in S$. Then $\phi(r-s)=\phi(r)-\phi(s)\in \phi(R)$.  Closure under multiplication: Since $rs\in R$ and $\phi(rs)\in S$, then $\phi(rs)=\phi(r)\phi(s)\in \phi(R)$.     I am not sure what to say for closure, whether it should be stated that $\phi(rs)\in S$, etc.

Let $\phi : R\to  S $ be a ring homomorphism.  Definition: $Im\left ( \phi \right )=\left ( R \right )\phi=\left \{ \left ( a \right )\phi \mid a \in R \right \}$  Prove that $Im\left ( \phi  \right )$is a subring of S By the subring test, we need to show that the $Im\left ( \phi  \right )$ is closed under multiplication and subtraction. Suppose $\left ( a_{1} \right )\phi,\left ( a_{2} \right )\phi \in Im\left ( \phi \right )$. Thus, $s_{1}=\left ( a_{1} \right )\phi$ and $s_{2}=\left ( a_{2} \right )\phi \in Im\left ( \phi \right )$ $\left ( a_{1} \right )\phi$ + (-$\left ( a_{2} \right ))\phi=  s_{1}-s_{2}$ but S is a ring so $s_{1}-s_{2} \in$ S Is this correct?


I do not want to build a full-fledged super popular awesome new linux distro. What I'm searching for is a tool to take an existing linux distro and modify the .iso so I can change basic objects and functions such as default wallpaper and the like. If you want an example of a joke os, look up biebian. Preferably, the tool can run on linux without 3rd party programs like WINE.

Some of my friends and I are interested in starting a new Linux distro. How do we do that? What do we need to plan? Backstory I represent a community of Linux sysadmins/implementors whose special needs include, among others:  A specific 'lean' kernel config Package management that fits our 'field needs' Binary packages optimized for our 'use cases' X-less system  To the point: We have need of a specially-configured production-quality Linux distribution to be run exclusively as Para-Virtualized Production Servers. Rather than jumping through all the hoops and loops every time we need a VM-ized Server, we would very much like a semi-prepared system, optimized for its environment. Since these VMs would be Production Servers, stability is a must, and honestly the available package management systems we're currently aware of just do not provide assurance. Zypp and Conary are the closest ones to our needs, but again still miss on some points.


I am trying to prove the following statement : $(f_n)$ converges uniformly $\iff \sup\{|f_n(x)-f(x)|;\ x\in I\}=\|f_n-f\|_\infty\to 0.$ $\implies$ : We have $\forall \epsilon \leq 0$ $\exists N$ $\forall n \leq N$ $\forall x \in I$ : $|f_n(x)-f(x)| \leq \epsilon$. We also have that $|f_n(x)-f(x)| \leq \sup\{|f_n(x)-f(x)|;\ x\in I\}$ but then I don't really see how to properly link it to the $\epsilon$. For $\leftarrow$, I fix an $\epsilon\geq 0$. Then there exists $n_0\in \mathbb{N}$ such that $$\forall n\geq n_0, \sup \{|f(x) - f_n(x)| : x \in I\}\leq \epsilon $$ Which implies, $$\forall n \leq n_0 |f(x) - f_n(x)|\leq \sup \{|f(x) - f_n(x)| : x \in I\}\leq \epsilon , \text{ for any } x\in I.$$ Hence, $f_n\rightarrow f $ as $n\rightarrow\infty$ uniformly. I don't know if I did it correctly though...

Prove that:  {$f_n$} converges unifromly to $f$ on $E$ as $n \rightarrow \infty$ if and only if $\lim_{n\rightarrow \infty} ||f_n-f||_u = 0$  I don't understand the approach for the Forward proof.  My approach is:  By definition, for $\epsilon > 0$, there exist $N \in \mathbb{N}$ such that $|f_n(x) - f(x)| < \epsilon$; hence, the smallest upper bound should also be less than the $\epsilon$ (i.e., ${sup}_{x \in E}|f_n(x)-f(x)| < \epsilon$). Thus, $\lim_{n\rightarrow \infty} ||f_n-f||_u = 0$.  However, the solution uses $\frac{\epsilon}{2}$ as the following:     $|f_n(x)-f| \leq {sup}_{x \in E}|f_n(x)-f(x)| < \epsilon $      ${sup}_{x \in E}|f_n(x)-f(x)| \leq \frac{\epsilon}{2}$      ${sup}_{x \in E}|f_n(x)-f(x)| \leq \frac{\epsilon}{2} < \epsilon$   Hence, $\lim_{n\rightarrow \infty} ||f_n-f||_u = 0$.  Why?


I read a YA novel in the early 2000s that I think takes place on Earth some time in the future. The human race has been enslaved by some other race, possibly aliens. If I remember correctly, humans were kept as slaves for some purpose and then exterminated at age 16, and I think some girls were kept to breed.  I remember scenes of a band of teenagers walking around sewers fighting these aliens who bled a blue "ichor." The only thing I distinctly remember about the book was that it was the first place I saw the word "ichor."  This is a pretty sorry description; but does anyone have a clue what this book was?

This is a story I read back in the late 1990's or early 2000's. It was a sci-fi story and the plot was centered in a city. I believe it was on Earth. There were different tribes of Aliens that fought each other through proxy. Each tribe had augmented humans in different ways and used the humans to fight each other.  I believe there were also robots or cyborgs of some sort.  All of the humans had trackers in their wrists under their tendons. In order to escape, some of them cut the trackers out with a knife. At least one person was able to use a bit of psychic ability where they visualized the tracker being outside of their wrist and then it became so.  That's all I can recall.


I'm a noob in php and i'm having a hard time to protect my code against MySQL injection. What my code does is that it fetches the info that has been submitted from a form and then inserts it into database. I don't know where to put the protection. Can anyon eplease help me. Thank you very much. This is my code`       <?php $db_host="localhost";   $db_uname="regina_rainier";     $db_pass="rainier1990";  $db_name="regina_testdatabase";   $url = 'home.php';  $con=@mysql_connect($db_host,$db_uname,$db_pass);   // Check connection if (!$con) { echo "
"; die('Could not connect: ' . mysql_error()); } else{ echo "
"; } mysql_select_db($db_name) or die("cannot find database");  echo "
";    $sql="INSERT INTO costumer (costumer_ID,  first_name, last_name, birth_date, adress,  city, state,  postal_code, country, phone, email_client,username, password, Credit_Card, Credit_CardType)  VALUES  ('$_POST[costumer_ID]',  '$_POST[first_name]', '$_POST[last_name]',     '$_POST[birth_date]', '$_POST[adress]', '$_POST[city]', '$_POST[state]', '$_POST[postal_code]', '$_POST[country]', '$_POST[phone]', '$_POST[email_client]','$_POST[username]', '$_POST[password]','$_POST[Credit_Card]','$_POST[Credit_CardType]');"   echo "
";  if (!mysql_query($sql,$con)) {  echo "
"; die('Error: ' . mysql_error()); } $sql2="INSERT INTO login(password, username, costumer_costumer_ID)  VALUES ('$_POST[username]',  '$_POST[password]', '$_POST[costumer_ID]');"; if(!mysql_query($sql2,$con)){ echo "
"; die ("ERROR: ".mysql_error());  }   if (isset($_REQUEST['email_client'])){  $email = $_REQUEST['email_client'] ; $subject = 'Email Confirmation testing'; $message = 'Greetings'." ". $_REQUEST['first_name'].","."\n"  ."We have received your request."."\n". "Please check if the fields are filled correctly."."\n\n" ."Desired Username: ".$_REQUEST['username']."\n"  ."Desired password is: ".$_REQUEST['password']."\n" ."I.D. number: ".$_REQUEST['costumer_ID']."\n" ."First name: ".$_REQUEST['first_name']."\n" ."Last name: ".$_REQUEST['last_name']."\n" ."Birth date: ".$_REQUEST['birth_date']."\n" ."Adress: ".$_REQUEST['adress']."\n" ."City: ".$_REQUEST['city']."\n" ."Country: ".$_REQUEST['country']."\n" ."Phone: ".$_REQUEST['phone']."\n" ."Email Adress: ".$_REQUEST['email_client']."\n" ."Card Number: ".$_REQUEST['Credit_Card']."\n" ."Card Type:".$_REQUEST['Credit_CardType']."\n" ."\n\n Your account was succesfully created";  ;  $_sender='www.postmasterSPapiesOnlineShopping.com'; mail($email, $subject, $message, "From:" . $_sender );   }     echo"
";  echo " Congratulations, your account was succesfully created.";  mysql_close($con);   echo '<META HTTP-EQUIV=Refresh CONTENT="0; URL='.$url.'">'; ?>

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


Is there a way to see what processes are running? linux like npm servers, etc. Sorry 4 a stupid question

I need to list the process IDs on the Linux command line. Can I use the ls command in the /proc directory?  The problem is that it lists some process IDs with file names. Can I remove those names using some ls command option?


I'm want to make my conference presentation according to the given  description. What should I add to my preamble and how what changes should I make to get the desired layout.   \documentclass{beamer} \setbeamertemplate{footline}[page number] \setbeamertemplate{footline}[page number] \usepackage{graphicx} % Allows including images \usepackage{booktabs} \setbeamertemplate{caption}[numbered]{} \setbeamertemplate{headline}{} \makeatletter \setbeamertemplate{footline} {   \leavevmode%   \hbox{%   \begin{beamercolorbox}[wd=.7\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%     \usebeamerfont{author in head/foot}%     \insertsectionnavigationhorizontal{.7\paperwidth}{}{}%   \end{beamercolorbox}%   \begin{beamercolorbox}[wd=.3\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%     \usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}     \insertframenumber{} / \inserttotalframenumber\hspace*{2ex}    \end{beamercolorbox}}%   \vskip0pt% } \makeatother

How can I modify title page so that it looks like it is in  video. Please seek to 16 seconds and watch title page. I do not have permission to post images. I liked this theme and I want to make a beamer theme that looks similar. I tried with beamercolorbox but I failed to position the box to the bottom.      Edit: Here is my minimum working example  \documentclass[xcolor=dvipsnames]{beamer} \defbeamertemplate*{title page}{customized}[1][] { \usebeamerfont{subtitle} \usebeamercolor[fg]{subtitle}  {\flushright \setbeamercolor{author}{bg=white,fg=Red} \usebeamerfont{author} \insertauthor\par \usebeamerfont{institute}\insertinstitute\par }  \vspace{0.2in}  \setbeamercolor{postit}{fg=white,bg=YellowOrange}  \begin{beamercolorbox}[sep=1em,wd=1.062\textwidth,ht=3cm,dp=3cm,right]{postit} \usebeamerfont{title} {\huge \inserttitle}\par \usebeamerfont{subtitle} {\insertsubtitle} \end{beamercolorbox} } \usecolortheme[named=YellowOrange]{structure} \useoutertheme{infolines} \setbeamertemplate{navigation symbols}{}  \institute{Harvard College Professor and\\ Johnstone Family Professor in Psychology, Harvard University}  \title{SAY WHAT?} \subtitle{Linguistics as a Window to\\ Understanding the Brain} \author{Steven Pinker}  \begin{document} { \setbeamertemplate{footline}{} \begin{frame} \titlepage \end{frame} } \end{document}


I was learning how to do smoke simulations today, but when I applied object -> quick smoke, and pressed play, no smoke could be seen coming out. I then tried baking the simulation, and it finally showed up, but only for a few frames. Now I want to remove the bake, and the manual tells me there is a button in the cache settings of the fluid simulation, called "free bake" which is not there. If anyone could please tell me how I could:   Remove the bake of the smoke simulation and  see the smoke in the Eevee realtime viewport.

When I make smoke by Object > Quick effect > Quick Smoke/Liquid it appears nothing on the viewport.  Once I bake it appears just right in viewport, but still error while rendering.  I don't know what is wrong with my scene.


Let $X_n \,\,(n∈N)$ be a sequence defined by   $X_1 = 1, X_{n+1} = \sqrt{2X_n}$ and $n ≥ 1$.   Show that $X_n$ is convergent.   So I guess ${X_n}$ goes to a number like $$\sqrt{2\sqrt{2\sqrt{2\sqrt{2\sqrt{2\dots}}}}}.$$ But i'm not even sure if this makes $X_n$ convergent. And therefore can't prove it.   First time I'm asking a question here. Sorry if i did something wrong.

Prove that $(a_{n})_{n \in \mathbb{N}}$ is convergent with $a_{0}=1$,   $a_{n+1}= \sqrt{2a_{n}}$ and calculate its limit.      You got the info that the square-root-function is strictly monotonic   increasing and also continuous.   I'm very confused how this could be solved because there isn't really a sequence given here. It seems to be a recursive one and I also don't know how to form $a_{n+1}$.  Could I form it to $a_{n}+ a_{1}$ ?(I don't care if it's useful here but I'd like to know if this would be correct at first.)    I have started by forming to $a_{n}$:  $$2a_{n} = (a_{n+1})^{2}$$  $$a_{n}=\frac{(a_{n+1})^{2}}{2}$$  Then I also formed to $a_{1}:$  $$a_{n}+ a_{1} = \sqrt{2a_{n}}$$  $$a_{1} = \sqrt{2a_{n}} - a_{n}$$  But it seems like this won't lead to anything.. Also I don't know what we can do with the given info, $a_{0} = 1$, the continuity and monotonic increasing...


His style, if simple, is pleasant to read.      The profits, if a little lower than last year's, are still extremely   healthy.   I'm curious, what's the function of "if" in these sentences.  Does it mean 'although'?  If it does, do these sentences sound native?  Thank you!

They were pointed, if fatherly, remarks that echoed the themes he has stressed in his papacy but ones that resonated all the more in a newly renovated cathedral surrounded by the luxurious shops of Fifth Avenue. —   I'm not sure the meaning of the phrase "if fatherly" in the above sentence. I'm not familiar with the syntax using the structure 'adjective, if adjective'.


Why don't have a specific register to access this other part of register ( 16-32 )?  Like ah or al to access a 8-bits part of ax register.

%AX = (%AH + %AL)  So why not %EAX = (%SOME_REGISTER + %AX) for some register %SOME_REGISTER?


So I've been using OSX but have been using Ubuntu on my mac desktop for a good 2 weeks. I am wondering if anyone has a suggestion for an alternative program for bulk file/folder renaming?  I'm currently using  and I can rename files like this way  parent1   -- sub1     -- parent1-sub1-my-file-here0001.jpg     -- parent1-sub1-my-file-here0002.jpg   or do find and replace text like replace all instances of "image" with "IMAGE" or change the file extension to something.  I've read old discussions on this topic but the suggestions made are really quite basic compared to what I'm used to.  I've thought of scripting some of the more easier bits like creating a sequence for the files but honestly, I prefer to use a GUI for things like this.  Any suggestions? Thanks.  edit: the topic that's supposedly the "original" of this one is date 2010. A lot of new tools could've come out since then.

I need to rename a bunch of files in order to fix their sort order, therefore I need to be able to do a sort of "find and replace" so I can replace chunks of the filenames at a time.  What tools should I use? I prefer GUI but a command line tool recommendation would also be fine.


I am using the following code to implement plus / minus quantity buttons for a Woocommerce cart solution:   console.log('rental') // make quantity buttons work $('.qib-container').on('click', '.plus, .minus', function () {   console.log('clicked')   // Get current quantity values   var qty = $(this).closest('.qib-container').find('.qty')   var val = parseFloat(qty.val())   var max = parseFloat(qty.attr('max'))   var min = parseFloat(qty.attr('min'))   var step = parseFloat(qty.attr('step'))    // Change the value if plus or minus   if ($(this).is('.plus')) {     console.log('plus')     if (max && (max <= val)) {       qty.val(max)     } else {       qty.val(val + step)     }   } else {     if (min && (min >= val)) {       console.log('else')       qty.val(min)     } else if (val > 1) {       qty.val(val - step)       console.log('else > 1')     }   }   And the HTML is as follows:
         <button type="button" class="minus qib-button">-</button>
             Contenur prügikonteiner 140L kogus           <input type="number" id="quantity_5dd507573790b" class="input-text qty text" step="1" min="0" max="" name="raq[9bb59b8531b987176485dff07c07c672][qty]" value="1" title="Kogus" size="4" inputmode="numeric">
         <button type="button" class="plus qib-button">+</button>
   Everything works fine on the product listing page but when adding products to cart and going to the cart page the buttons stop working after 1-2 seconds like pointer-events arent working and the script is not running anymore.   Test issue yourself:   Step 1 Listing page:  (Add product to cart, quantity buttons work with same script like normal)  Step 2 Cart page (after adding product):  (try to change quantity fast after loading: initially works but it resets back to original state and does not work after that)  Any ideas what might be causing this?

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


var_a (can be any variable name) should be replaced by its value:  var_a = "Hello"  var_b = "var_a world"  print var_b   Output should be: Hello world

I want to do something like String.Format("[{0}, {1}, {2}]", 1, 2, 3) which returns:  [1, 2, 3]   How do I do this in Python?


I was checking out  on SO, and noticed that there is no syntax highlighting for the code snippet.  I realise that Fortran is a pretty obscure language, especially on SO, so I don't really expect it to get highlighting unless it gets added to Google Prettify.

I noticed that sometimes my code gets highlighted in different colors when rendered.   What is syntax highlighting? How does it work? Why isn't my code being highlighted correctly? How do I report a bug or request a new language? How do I use syntax highlighting? What languages are currently available on Stack Exchange?


My girlfriend opened an individual developer account with her name because i don't have a credit card;  i wonder if i can put my bank account in the "bank info" in itunes connect with my name or that will be a problem note that the account is of type individual and supposed to be only one owner.  thanks

My sister made an iTunes Connect account and signed up for the developer program (she is over 21). I am the developer of the account; i'm just not exactly 18 yet (will be in a couple months).  In setting up the agreements/tax/banking, can she input my bank account information, since it has a different name than that on the developer account? If not, is there anything she can do (add me as a developer or something) to be able to?


How can I find the Xpath of an Element in IE 11 browser? Can you please explain me with full steps?

I have an Internet Explorer only web application.  I'm exploring what we can do to automate the testing.   Selenium looks like a good tool, but to be able to activate links etc. I need to tell it where they are. The application wasn't built with this kind of testing in mind, so there generally aren't id attributes on the key elements.  No problem, I think, I can use XPath expressions. But finding the correct XPath for, say, a button, is a royal pain if done by inspecting the source of the page.  With Firefox / Firebug, I can select the element then use "Copy XPath" to get the expression.  I have the IE Developer Toolbar and it's frustratingly close. I can click to select the element of interest and display all sorts of information about it. but I can't see any convenient way of determining the XPath for it.  So is there any way of doing this with IE?