I'd like to suggest that the content of deleted answers, which is visible to 10k+ users, be hidden from view by default. Often times you'll see a user edit their deleted answer and replace it with something like this:  <! -- Replacing answer with comment so Jon Skeet won't see my ignorance -->   To clarify, I'm not suggesting that the answer be removed from the page altogether, just collapsed (for lack of a better word). Not only will this clean up the interface, it will hide those shameful moments that we've all had from public view.  Here's an example:

Today I exceeded 10K reputation on Stack Overflow, and I see deleted answers.  I am now faced with pages like  where half the answers are "deleted."    Among these are many non-answers deleted by diamond moderators, and a self-deleted answer deleted on Nov 25 '09.  I find this very distracting, especially in my chosen sort order of "oldest" where these deleted answers are NOT displayed at the bottom.  I wish to be able to hide deleted answers based on combinations of characteristics such as:   age since deletion deleted-by-owner deleted by diamond moderators zero undelete votes   This would be a setting every user could enable for himself.    Here are HTML excerpts that may be useful for userscript filtering.  This shows the code that appears for a moderator deletion, as well as the date stamp.
deleted by Dori♦ Jun 26 at 9:13
   Here is the same class for deleted by owner:
deleted by owner Nov 25 '09 at 19:12


Ubuntu 15.04 boot failure after latest kernel update 3-19-0-31  *Fixed with Recovery from 3-19-0-30.  Linux Ubuntu 15.04 alongside W10.  Boot failure (black screen, infinite loading) today after 3-19-0-31.  Grub > Recovery from 3-19-0-30.

My system was just updated with linux image 3.19.31. When it was rebooted, the system hang at the login screen and did nothing.  How can I remove this image? It has a major bug in it.


I asked  by a moderator who incorrectly thought that it was a duplicate of another question which was hardly even similar.  At this point I am stuck:   I cannot reopen the question. This requires 5 votes from 5 people who each have unreasonable amount of rep. I don't know that many people who are that active on an obscure meta-website. I cannot delete the question. I cannot contact the moderator, or indeed any moderator, to ask them to undo their error.

One or more of the following things happened to me on a Stack Exchange site:   My post(s) were wrongly deleted or locked by a moderator A moderator posted a wrong comment on one of my posts I was suspended, but did not do anything wrong I asked a meta question, but the question was closed and/or deleted A moderator discredited me in public ...   I think a moderator has abused their power, but I feel powerless against them.  What recourse do I have now? What can I do when I feel that a moderator has abused their power, and has been repeatedly unfair in their dealings with me?


I am helping an author typeset his paper in Russian.  Using the babel package is mostly working, except with the title.  An example, where the text is "Placeholder title" as translated by Google Translate:  MWE:  \documentclass[11pt]{amsart}  \usepackage[utf8]{inputenc} \usepackage[T2A,T1]{fontenc} \usepackage[english,main=russian]{babel}  \begin{document} \title{Название заполнителя} \maketitle  Название заполнителя  \end{document}   The result is    As a comparison, if I read in the Russian alphabet, with a capitalized А and the rest lowercase (to be exact:Абвгдеёжзийклмнопрстуфхцчшщъыьэюя), I get:    This makes it clear that the issue is the first half of the alphabet (except ё) is forcibly capitalized, regardless of context or position in a word.  It is not the same as , as I'm loading the title after the language rules.  Adding a \foreignlanguage{russian}{...} wrapper does nothing, and for some reason, a \begin{otherlanguage}{russian}...\end{otherlanguage} wrapper inside the title (starred or unstarred) is causing an error in compilation, as the compiler claims that the command does not exist.    Question:     How do I get the title Unicode to display correctly?   Configuration: Mac OS X, TeX Live 2018.  (No admin access)

I wrote the following code to typeset the title page of a paper:  \documentclass{amsart}  \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[USenglish]{babel}  \begin{document}  \title[Title Title Title]{Title Title Title}  \begin{abstract}     Abstract abstract abstract \end{abstract}  \maketitle  \end{document}   This outputs the following:    However, I wanted to make my title a macro, because I need it elsewhere too:  \documentclass{amsart}  \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[USenglish]{babel}  \newcommand\mytitle{Title title title}  \begin{document}  \title[\mytitle]{\mytitle}  \begin{abstract}     Abstract abstract abstract \end{abstract}  \maketitle  \end{document}   But this now outputs the following:    No way of fiddling got me the capitalization back. E.g. there is no difference in using \def. What is happening here and how to fix it?


I have an interview with a top company for a data scientist position.   I was made aware that they will be testing probability/statistical theory concepts.    So the question:  If you had 1 hour tops to do an all-inclusive interview about a range of topics, and wanted to test someone's knowledge of probability/statistical theory as well.... what concepts would you test?  Another way of phrasing the question:  What are the most important concepts to know from probability/statistical theory?  (I can't study everything!)

I am looking for some statistics (and probability, I guess) interview questions, from the most basic through the more advanced. Answers are not necessary (although links to specific questions on this site would do well).


Think thee that I would desert thee? Think thee that I don't care?  or:  Think thou that I would desert thee? Think thou that I don't care?  Which one is right?

What is the difference between thee and thou and how are they used?


If I have a data, and I run a classification (let's say random forest on this data) with cross validation (let's say 5-folds), could I conclude that there is no over fitting in my method?

Why does a cross-validation procedure overcome the problem of overfitting a model?


When starting a project in Python, I want to save some environment variables in a file called environment_variables and source this file in the bashrc.  The file looks something like this:   username=$(whoami)  # project root path export PROJECT_DIR='/home/'$username'/nuclei_segmentation/'  # project data path export DATA_DIR=$PROJECT_DIR"data/"  # location of models  export MODEL_DIR=$PROJECT_DIR"models/"  # project output data export OUTPUT_DIR=$PROJECT_DIR"output/"   I would like to change the PROJECT_DIR path so it is platform/name independent. So this environment_variables file will always be in the root directory of the project and I want to set PROJECT_DIR to always be the location of the environment_variables file.  I thought I could do this with PWD but when called from bashrc this creates an error, I also thought of a solution using find to search for the file from the root directory but this seems to complex and think there must be a better way?

How do I get the path of the directory in which a  script is located, inside that script? I want to use a Bash script as a launcher for another application. I want to change the working directory to the one where the Bash script is located, so I can operate on the files in that directory, like so: $ ./application


I've just completed a fresh install of Debian Stretch on a server that had previously been running Jessie, with /home preserved.  Now gnome-terminal fails to load.  Here's syslog:  18:29:02 alan dbus-daemon[918]: Activating via systemd: service name='org.gnome.Terminal'     nome-terminal-server.service' 18:29:02 alan systemd[899]: Starting GNOME Terminal Server... 18:29:02 alan gnome-terminal-server[4714]: Non UTF-8 locale (ANSI_X3.4-1968) is not supported! 18:29:02 alan systemd[899]: gnome-terminal-server.service: Main process exited, code=exited, status=8/     18:29:02 alan systemd[899]: Failed to start GNOME Terminal Server. 18:29:02 alan systemd[899]: gnome-terminal-server.service: Unit entered failed state. 18:29:02 alan systemd[899]: gnome-terminal-server.service: Failed with result 'exit-code'. 18:29:27 alan org.gnome.Shell.desktop[1003]: Error constructing proxy for org.gnome.Terminal:/org/    erminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal: Timeout was reached 18:29:46 alan firefox-esr.desktop[1732]: Promise resolved while context is inactive 18:29:47 alan firefox-esr.desktop[1732]: Promise rejected after context unloaded: Message manager     ected 18:31:02 alan dbus-daemon[918]: Failed to activate service 'org.gnome.Terminal': timed out   I assumed that the non-UTF locale was the problem, and tried the following fixes based on googling:  Set /etc/environment to contain  LANG="en_GB.UTF-8" LCALL="en_GB.UTF-8"   Set /etc/default/locale to  LANG=en_GB.UTF-8   and rebooted.  Locale now returns  root@alan:/etc# locale LANG=en_GB.UTF-8 LANGUAGE= LC_CTYPE=en_GB.UTF-8 LC_NUMERIC="en_GB.UTF-8" LC_TIME="en_GB.UTF-8" LC_COLLATE="en_GB.UTF-8" LC_MONETARY="en_GB.UTF-8" LC_MESSAGES="en_GB.UTF-8" LC_PAPER="en_GB.UTF-8" LC_NAME="en_GB.UTF-8" LC_ADDRESS="en_GB.UTF-8" LC_TELEPHONE="en_GB.UTF-8" LC_MEASUREMENT="en_GB.UTF-8" LC_IDENTIFICATION="en_GB.UTF-8" LC_ALL=   but gnome-terminal still won't load.  Is this really a locale problem?  Where would gnome-terminal be getting its locale from?  What else could cause this?

I faced the problem when terminal do not start. I have look at related issue when locale do not supported. I have tried to update it, regenerate it - nothing help. Finally I have found next error message in /var/log/syslog  Dec 31 00:45:43 kes-X751SA console-kit-daemon[2215]: (process:3545): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed Dec 31 00:45:48 kes-X751SA org.gnome.Terminal[2464]: Locale not supported. Dec 31 00:45:57 kes-X751SA console-kit-daemon[2215]: (process:3562): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed   Here is not clear. If I have wrong locale which locale is not supported?? How to check which locales are supported? How to apply supported locale?


I have a string like that:  var x = _something_ somethingelse _whatever_   I'd like to match by regular expressions only something and whatever words (because they are located between two underscore characters directly). Rest word is between underscore characters by accident - I don't need it. The regular expression I use is matches all of them. How to fixed that? My curent regexp:  /_(.*)_/gm

I have this gigantic ugly string: J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000020: Document 1 - Completed successfully  I'm trying to extract pieces from it using regex. In this case, I want to grab everything after Project Name up to the part where it says J0000011: (the 11 is going to be a different number every time). Here's the regex I've been playing with: Project name:\s+(.*)\s+J[0-9]{7}:  The problem is that it doesn't stop until it hits the J0000020: at the end. How do I make the regex stop at the first occurrence of J[0-9]{7}?


I'm a rising senior in college and I'm looking into grad programs in biology. For the Letter of Recommendation requirement I have found that usually 3 are required. Currently I can only think of 2 mentors who are in the field of study I would like to go into who can write strong letters. Is it bad if the third came from a professor in a completely different field, or as I like to think of as the humanities research that interprets the science research I'm interested in? Thank you! Or should I ask one of the post-docs in the lab I work with (in addition to the PI of the lab) since they are working in the relevant field?

I will be a second year math under-grad in September, and currently doing an internship at applied math research institute. However, my interest after my bachelors is to do PhD in pure math at a top math school. My question is:  How important would the recommendation letters from my current supervisors be while I apply to grad school? (Note: My supervisors are very active in their field of research, but are not quite famous.)


Are there any special rules for using "get/got" with another verb? Sometimes i feel, i overuse the word "Get/Got". e.g do the following sentences mean the same thing?     (1) Internet "get disconnected" frequently.      (2) Internet disconnects frequently.   Thanks in advance

In spoken English (at least in America), passives are often formed with "to get" rather than "to be;" I would wager the majority of the time:   he got hit by a car I get driven to work I've gotten called for jury duty eight times   Are there specific verbs that prefer "be" to "get," or vice-versa, or semantic differences between these forms? I cannot think of any.


This is something I read in the mid-to-late 1980s, probably in a thick collection of short stories.  A man who is acting as a spy or maybe just a researcher goes to an alien planet. The aliens of this planet are human-like (or possibly a human colony planet), but are very xenophobic and do not allow what they consider aliens in their society.  The protagonist has become fairly expert at a game that they play on the planet, which for some reason I am thinking had similarities to go (aka weiqi, igo, or baduk), and has decided to participate in a large regional or global competition.  Much is made about the fact that in a critical game against one of the planet's masters, the protagonist attempts a kind of three-pronged attack (called a "triple push"?) when normally even a double-pronged attack is considered nearly impossible to pull off. He ends up losing the game but comes close enough to winning that it causes a stir, and as a result he is discovered by the local authorities. I think it's revealed that they've known he was an outsider for some time but tolerated him for reasons I can't recall.  The only other thing I remember is that, while being taken somewhere in a vehicle on the alien planet (on the way to the tournament?), the protagonist is deeply frightened by the experience of being on a highway due to the apparent insanity of the traffic system, which has rules he doesn't understand.  I posted this on a different forum, and several people suggested Iain M. Bank's "The Player of Games", but I don't think that's it because I'm fairly sure this is a short story and not a novel, and ISFDB doesn't show "The Player of Games" being included in any collection. The two things that stand out most in my dim memories are the "triple push" gambit (which fails) and the part about being terrified in the vehicle -- does anyone recognize either or both of those?

Space faring human race encounters one highly advanced spaceship.  The one ship tells the human space fleet to go away and leave them alone. We don't listen and our ships are destroyed.  Human spy is sent to the alien world. Aliens look virtually identical to humans except they have no cartilage in their nose and the 'females' are only capable of mating every seven years. The human spy tells this story and is a brilliant tactician. He enters into a game tournament where they play a very complicated version of chess.  Human spy interacts with a higher ranking military officer who has a human female wife.  Human spy gets caught and when he is ultimately returned to Earth he advises humanity to unconditionally surrender to the alien race.  Humans eventually win because the alien males take human wives and their alien DNA is diluted in the vast human gene pool.  Looking for the title and author if anyone can recall them.  06/15 - update  I found the anthology. 'Second Game' was in 'The Arbor House Treasury of Great Science Fiction Short Novels' which came out in 1980 and 1981.  I did read the original story from 1958 which was actually a nominee for the Hugo Award for Novelette in 1959.


December 23, 2018  Blender 2.79  Installed the Add on Trainz Exporter and it is on my Blender Window:  I need to Install the TrainzMeshImporter however; to get it to work.  The console will tell you where it goes. I get the message:  Export failed please check CONSOLE Window  I can't find the Console Window no matter what I do.  There is a button in the upper left hand corner that has a Blue Circle I This has a selection Python Console but this is not it.  Any Suggestions?

I'm trying to debug a Python script by placing a print("foo=" + foo) statement in my code.  But where does the output appear?     It doesn't appear on the Python Console, and it doesn't appear on the area that appears when you drag the lower edge of the infobar downwards (what is the name for this area? My script errors show up in red here.)


I am using the description environment for a set of definitions. A label that I have is too long to fit in the left margin of the page. I do not know how to force a line break in the item label - nor do I want to. Is there a way to get the description environment to detect when a label is too long and have it break such that that the item label is still right aligned?  Note: My question is different than the question mentioned in the comments because I specifically want the label in the margin, not inside the main body of the page.  \documentclass[12pt, letterpaper, oneside, draft]{memoir} \usepackage{enumitem}  % itemize environment configuration \setlist[itemize]{noitemsep, topsep=0pt}  \begin{document} \begin{description}[align=right] \item[Rate of Reinforcement] Text that doesn't matter. The label is the same label that I need to use. \end{description}  \end{document}   Edit (followup): I implemented the solution from the accepted answer, however now I get this. Any idea on why there are now question marks leading the label?

I want a description list that looks like the following:            Name | Joel Spolsky        Address | Some address                  Some zipcode      Telephone | +31 123 456         E-Mail | email@domain.org Something more | Bashing latex in-       elaborate | to submission        How would I accomplish this? I've tried using the enumitem package but it doesn't want to align the labels (not the items) to the right as in the above example. When using the multiline style option items either overlap or bump into eachother.  I'm trying to create something like this:    \usepackage{enumitem} \setdescription{style=multiline,topsep=10pt,leftmargin=5cm,font=\normalfont}  \section{Experience} \begin{description}   \item[Data] 2011 - heden (20 weken)    \item[Beroep of functie] Software Developer   \item[Voornaamste werkzaamheden en verantwoordelijkheden] Software ontwikkeling    \item[Naam en adres van de werkgever] Multicast Automatisering B.V.    \item[Soort onderneming of sector] Informatie Communicatie Technologie (ICT) \end{description}


I'm trying to understand how a skip-gram model trains itself.  Using the input embedding we predict the probability of the output word.  And then using the gradient of the cost function we slightly update embedding of the output.  But also we update weights.    So I cannot understand how we simultaneously update  weights and embeddings? Do they use different gradients or there is some sort of chaining?  I'm trying understand the logic of training weights and embeddings using this example ().

I got a slight confusion on the  algorithm used in  (MLP).  The error is adjusted by the cost function. In backpropagation, we are trying to adjust the weight of the hidden layers. The output error I can understand, that is, e = d - y [Without the subscripts].  The questions are:   How does one get the error of hidden layer? How does one calculate it? If I backpropagate it, should I use it as a cost function of an adaptive filter or should I use a pointer (in C/C++) programming sense, to update the weight?


Suppose you had a question, and you really want a good answer that would solve your problem, but noticed it was already asked by someone else. Now, a lot of answers had been posted and upvoted, and maybe one was accepted. However, none of the answers solved your problem. The system does not promote the question very much because it is not considered "unanswered", and a lot of users who would otherwise bother to give a correct answer will probably skip the question completely as there are already many highly-voted answers.  Now, what should you do in this case?  One idea is to ask a new, completely identical question, but now you're in control to decide when it is answered. But would that go against SE policy?

I'm looking around for answers to my questions on several Stack Exchange sites and the good boy that I am I don't want to ask duplicate questions.  Often I find that there are other people who asked the same questions, sometimes years earlier, but still don't have an answer. I'd figure I could bump these back to top, but if I don't have enough rep for a edit (or comment), how would I do that?  Or, in that case, I should just post a 'newer' version of the same question?


“Love is too weak a word for the way I feel.” Can anyone explain to me what the grammar behind “too weak a word” is? Specifically the usage of ‘a’

Why do we say "it's too hard a task" and not "it's a too hard task"? Is there a rule for that?


I am quite new to regex, and thought markdown(custom/madeup format of maardown) to html conversion using regex would be a good way to get started. When I'm within Vim(8.1), say converting this line; +style #include <style.css> -style  to; <link rel="stylesheet" type="text/css" href="style.css">  I used this command in Vim; :%s/^+style$\n\(.*\)$\n^-style/<link rel="stylesheet" type="text\/css" href="\1">/g  And I get exactly what I was hopping for. However, when I ran the same command from my terminal using GNU sed, I get no change in output; sed 's/^+style$\n\(.*\)$\n^-style/<link rel="stylesheet" type="text\/css" href="\1">/g'  Also, including the -z flag doen't seem to be much of a help either, the output remains same as input. I wonder why that is.

I've been using sed for quite some time but here is a quirk I came around with, which I am not able to resolve.   Let me explain my problem with the actual case.    Scene#1  printf "ls" | xclip -selection clipboard echo "ls" | xclip -selection clipboard   In the first command, I pipe printf output to xclip so that it gets copied to the clipboard. Now, printf, unlike echo does not insert a new line at the end by default. So, if I paste this content into terminal, the ls command that is copied does not automatically run.   In the second, there is a new line at the end, so pasting the clipboard content also results in the running of the command in the clipboard.   This is undesirable for me. So, I wanted to remove the newline using sed, but it failed, as explained in the scene below.  Scene#2  echo "ls" | sed -r 's/\n//g' | xclip -selection clipboard   The content in the clipboard still contains new-line. When I paste it into terminal, the command automatically runs.   I also tried removing carriage return character \r. But nada. It seems I am missing something very crucial/basic here.


So I'm trying to format my paper for submission, and the  seems to be badly mungling tables. Here is a simple example;  \documentclass{statsoc} \usepackage[a4paper]{geometry} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc}  \usepackage{amsmath,amssymb}  \title[Short title]{Statistics Journal Style Guide} \author[Author 1 {\it et al.}]{Author} \address{Affiliation, City, Country.} \email{Author@emailaddress.com}   \begin{document}  \begin{abstract} \end{abstract} \subsection{Sample title} Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.    \begin{table} \caption{\label{tab01}A table as an example} \centering \fbox{% \begin{tabular}{*{10}{c}} \em a&\em b&\em c&\em da&\em b&\em c&\em da&\em b&\em c&\em d\\ \hline a&b&c&da&b&c&da&b&c&d\\ a&b&c&da&b&c&da&b&c&d\\ a&b&c&da&b&c&da&b&c&d\\ a&b&c&da&b&c&da&b&c&d\\ \end{tabular}} \end{table}  \end{document}   Which compiles to    The caption is way to the left and the table outside the bounds to the right, whereas they should both be centered

I am working in statsoc.cls (you can find it ). Here I show you a working file for the problem I am facing in my paper.  I have a table which has a long-ish caption (2-3 lines). Every time I compile my .tex file, the table moves a little to the right of the page. I think it is because the captions stop wrapping at some point.   \documentclass{statsoc}  %%%% Packages to be used \usepackage[a4paper]{geometry} \usepackage{amssymb, amsmath}  \usepackage{graphicx} \usepackage[caption = false]{subfig}  \usepackage{enumerate} \usepackage{comment} \usepackage{natbib, float}  \title{``Table keeps moving every time I compile''} \begin{document}  \maketitle  \begin{table}   \caption{Table moves a little everytime I compile. I think this is because I have a long caption, but I cannot figure out how to resolve this problem. As you can see I am using statsoc.cls. I can reset the table if I delete the .aux file and recompile}   \fbox{%     \begin{tabular}{c c c c c c c c c c c c c c c c c c}     \hline     1 & 2 & 3 & 4 & 5 & 2 & 3 & 4 & 5 & 1 & 2 & 3 & 4 & 5 & 2 & 3 & 4 & 5\\     1 & 2 & 3 & 4 & 5 & 2 & 3 & 4 & 5 & 1 & 2 & 3 & 4 & 5 & 2 & 3 & 4 & 5\\     1 & 2 & 3 & 4 & 5 & 2 & 3 & 4 & 5& 1 & 2 & 3 & 4 & 5 & 2 & 3 & 4 & 5\\     \hline     \end{tabular}} \end{table} \end{document}   When I delete the .aux file and re-compile, it starts off as this:    Then after one compilation becomes    Then after many more     As I recompile, I make no changes inside the table environment, and work outside it. I believe  question is exactly the same as mine, but the question got closed.   I am not sure if you need more information here. Let me know if you do.   There is an overleaf user who writes      Note that if your document contains other LaTeX errors, the tables   will not be processed correctly. Therefore if you're getting an error   message about Missing number and \statsocwidth@b etc, comment out your   tables and correct other errors in your code first. Then uncomment   your table code, and hit "recompile from scratch" at the bottom of the   error/warning message window.   So apparently, every time there is an error, the tables go haywire, and you need to get rid of the aux file.


It is showing as compatible for this MacBook Pro but when I try to download the error message pops out that requested version of Mac OS is not available. then it checks for updates and shows the message as Your Mac is up to date.

I am currently using a MacBook Pro 13" Mid 2018 with Touch Bar. Today macOS Big Sur was released and I tried to download it but it's getting stuck at 484.4 MB. Initially, it shows 16-17 minutes left, but as soon as it reaches 484.4 MB it's stuck and the timer goes till 10 hours! My Wi-Fi is totally stable with a speed of 100 Mbps. I tried to restart my Mac but it still gets stuck. Earlier there were similar issues in the App Store (even now they are). The issue was I was not able to download an app unless I connect to the US VPN. I even contacted support but they were not able to help out. It wasn't a big deal as a VPN could be used. But now even with VPN, it gets stuck.


I was trying to experiment with users, groups, and permissions. The results can be seen below:  vagrant@cats:/$ ls -l | grep home drwxr-xr-x   5 root    admin    4096 Sep 28 05:49 home vagrant@cats:/$ cat /etc/group | grep "^admin" admin:x:1002:vagrant vagrant@cats:/$ cd home vagrant@cats:/home$ pwd /home vagrant@cats:/home$ cd .. vagrant@cats:/$ sudo chmod 770 home vagrant@cats:/$ ls -l | grep home drwxrwx---   5 root    admin    4096 Sep 28 05:49 home vagrant@cats:/$ cd home -bash: cd: home: Permission denied vagrant@cats:/$ ?   I don't understand why I can't get in. The user vagrant is in the group admin, the group admin owns the directory home and only the owner and or group members can read, write or execute files in home. But for some reason I'm locked out. What am I missing here?

I changed permissions of a file (chmod g+w testfile) and running ls -l testfile gives:  -rwxrwxr-x 1 user1 user1 0 2011-01-24 20:36 testfile   I then added a user to that group ("/etc/group" has user1:x:1000:user2 line), but am failing to edit that file as user2. Why is this so?


I am new to Ubuntu and I want to install VirtualBox in Ubuntu through terminal. Can you guys please provide me the command to install it?

I want to use Windows 7 or 8 but I don't know to install a software like VirtualBox which we have to do with the use of terminal. I don't want to use Windows as a main OS so I want to use it in VirtualBox. Can you tell me how to install downloaded files in Ubuntu. I once installed java runtime but don't know the meaning of the lines which I have written in terminal, I just did as the blog posted by a man says.


I can't get my installation of latex to use \beth without using the amssymb package.  \documentclass{article} \begin{document} $\aleph\alpha\beta$ %$\beth$ \end{document}   This compiles. If I remove the % from the penultimate line, it doesn't know what that command is.  However, various sources seem to imply that \beth is a valid latex math command, such as  . None of them make mention of needing amssymb, and indeed, they list it right after `\aleph' which does not require the package.

If aleph, beth, gimel, and daleth are needed in their mathematical meanings (identifiers for cardinality), how can we get them in the same font or at least reasonably similar in style. The following simple approach makes aleph different from the rest in style:  \documentclass{article} \usepackage{amssymb} \begin{document} \[ \aleph \beth \gimel \daleth \] \end{document}   The aleph is smaller and has thinner strokes:    Apparently the reason is that amssymb does not have aleph. What might be the simplest fix?


I hope someone can help. While I cannot run Firefox anymore with the Purge and Remove from here, updates still want to put in Firefox files.  How do I stop that? To clarify I ran the "Purge" and the "Remove" commands (successfully, no error messages) in Terminal, and also re-installed and removed Firefox via the Software Manager, but updates for Firefox continue to keep being downloaded and installed. Thanks! Cheers, skris88

I have run sudo apt purge firefox, and I have gone through all of the /.config files, etc., and Software Updater is still asking me daily if I want to install the "English Language Pack for Firefox". I don't have Firefox installed. How can I stop the updater from asking to update something on a program that doesn't exist? Output of dpkg -l | grep firefox: ii  firefox-locale-en                          88.0+build2-0ubuntu0.18.04.2        amd64        English language pack for Firefox


I just watched the movie After Earth. The air on the planet Earth, one million year after Humanity left it is still Contaminated. But there are still a large variety of flora and fauna flourishing. There are green rain forests and sunlight which should be enough for photosynthesis to occur. There should be no deficiency of Oxygen. Then why does Kitai had to take the Oxygen Extracting fluid?

In the movie, After Earth:      Humans have been away from Earth for over a thousand years living on other planets outside of our solar system. It is mentioned Humanity was under attack by an alien race, but it did not mention terraforming or any particular change of the Earth's ecosystem.    Why did Humans who were not native to Earth appear to be unable to breathe on Earth without technology? I don't remember anyone explaining why humans couldn't breathe there. Was there something I missed or is this a plot hole we were expected to hand-wave away?


How can I make the Ubuntu download bootable from a USB stick without downloading third party software?  Thanks!

How do I make an Bootable Ubuntu USB containing the the latest version of Ubuntu?  For completeness, how would I be able to do this on Ubuntu, Windows, OS X or another Linux distro?


Consider a function such that it takes in polynomial function and creates an array of its outputs and then using that array creates another new array by calculating the absolute difference between the first $2$ values and keeps doing this until it reaches an array full of zeros.    This is much easier to show you by example.  For example take $F(x)= x^2$, the first array would be   $1,4,9,16,25,36,49,64,81$ and so on, the second would be  $3,5,7,9,11,13,15,17,19$ ( the difference between the first value and the second one)  but the third one is where it gets interesting as if we continue the pattern we would get an array filled with only $2$'s and after that it would only be zeros.  Lets do another example, $F(x)=x^3$  $1,8,27,64,125,216,343$  $7,19,37,61,91,\dotsc$ but here is the interesting part if we continue this   $12,18,24,30,\dotsc$ and once more then we get   $6,6,6,6,6,\dotsc$ after that it would just be an array of zeros  There are $2$ main observation that I made about this  Firstly, the value that is begin repeated indefinitely is equals to the factorial of the functions power. Meaning that for $F(x)=x^2$ the value being repeated is $2!$. For $F(x)=x^3$ , it's $3! $ and this is true for all polynomials (I tried it up to $x^7$, after that it got too messy)  Secondly, the value that is repeated always occurs on the $n$th iteration of the function. Meaning that for $F(x)=x^2$, we have to go through the processes $2$ times before we find the value. For $F(x)=x^3$, we have to go through it $3$ times before getting the value.  Is there any way to prove this and does this mean anything at all?


Let $S$ be a commutative ring with $1$ and let $R$ be any subring of $S.$ Let $p$ be a minimal prime of $R.$ Then how can I show that there is a prime ideal $q$ of $S$ whose contraction is $p,$ i.e., $q \cap R = p.$  What I am trying to show is the  necessary and sufficient condition that $p=p^{ec}.$ Clearly $p \subset p^{ec}.$ But the other way I couldn't complete. I need some help.

Let $R$ commutative ring with unity, $S\subseteq R$ subring, $p$ minimal prime ideal of $S$. Show there exists a minimal prime ideal $q$ in $R$ with the property that the contraction $q^c=q\cap S=p$.  First of all, I am not sure whether the minimality of $q$ refers to the prime ideals in $R$ or to the prime ideals with such contraction property, if the latter is the case, then we only need to show the existence of such prime ideal, minimal one would be given by Zorn's lemma. Second, if we drop the minimality condition, then the proposition clearly doesn't hold ($\mathbb{Z}\subseteq\mathbb{Q}$ for instance), so this condition must be crucial here.


Sorry if this is really easy to fix or a stupid question but I've only recently started programming.   So basicly in void main() I've declared a 2D array like so:  void main() {   const int grid = 5;   array[grid][grid]; {   However I would like to pass this into a function like this:  void drawGrid(int grid, bool array[][]) {  }   This creates an error as the second parameter needs to have a number. But that's a problem since in main I declared my array using a variable.  void drawGrid(int grid, bool array[grid][grid]) {  }   Putting variables in the parameters does not work.  How do I go about passing the array to this function whilst using the int variable grid inside the parameters.   I have searched a lot and looked at answers from people who had similar problems to me but I just could not seem to figure out what to do specifically. Could anyone please show me how to fix the problem, I'd be incredibly greatful as I've been trying to work this out for almost two hours now. Thanks.

I am trying to pass a reference to a two-dimensional array to a function in C++. I know the size of both dimensions at compile time. Here is what I have right now:  const int board_width = 80; const int board_height = 80; void do_something(int[board_width][board_height]& array);  //function prototype   But this doesn't work. I get this error from g++:  error: expected ‘,’ or ‘...’ before ‘*’ token   What does this error mean, and how can I fix it?


I read a book about 10 years ago about a teenage boy that is in a government program for genetically enhanced children in a post-apocalyptic world. He is training for a holographic battle game against other countries where the winner gets the last piece of uncontaminated land.  He meets his partners, a girl about his age and a young boy who is crippled but a genius.  I don't remember much more than that but I have been looking for it for years. This is NOT Ender's Game or anything from that series, I have checked.

Some sort of battle school (no, not Ender's Game), where teens are being trained as military commanders.   The control system for their army hinges around some sort of system that requires extremely fine motor control -- being able to "push" around digital representations of military units using a special interface that interprets minute finger movements.  The boy protagonist eventually meets a girl in the battle school, and is astonished to learn that most people do not live as well as he does -- for instance, he gets a fresh jumpsuit outfit every day and disposes of the old one; this is a luxury.  One scene I recall is them kissing for a moment in some sort of underground passageway; the boy protagonist notes the exact length of the kiss, as he has been trained to have heightened time perception.  I don't recall much about other commander characters; I think they have different special abilities, and one other major character might have physical deformities, possibly because of postwar-radiation-related birth defects.  They have been training for an upcoming, prearranged final battle between all the existing national governments; the military units are very possibly robotic or entirely digital in nature, so as to avoid wasting materiel / human life.    They ultimately win the battle, just barely; I think the girl protagonist gives them an edge in the competition by hacking the timing / control system in favor of their team, causing a discrepancy which only the boy protagonist notices due to his heightened perceptions.  It was agreed that the winning government gets dominion over one of the few islands of land left that was not irradiated in some previous war; the protagonists get to live there as a reward for their victory.  I believe the boy protagonist later realizes he's gradually losing his ability to exactly quantify the passage of time.  Published no later than 2004, likely somewhere between 1980-2000, probably sometime in the '90s.


Finding $$\lim_{n\rightarrow \infty}\frac{1+2^2+3^3+4^4+\cdots +n^n}{n^n}$$  Attempt: $$\lim_{n\rightarrow \infty}\bigg[\frac{1}{n^n}+\frac{2^2}{n^n}+\frac{3^3}{n^n}+\cdots \cdots +\frac{n^n}{n^n}\bigg] = 1$$  because all terms are approaching to zero except last terms  but answer is not $1$ , could some help me to solve it , thanks

Computing $\displaystyle \lim_{n\rightarrow \infty}\left(\frac{1^n+2^n+\cdots \cdots +n^n}{n^n}\right)$  Attempt: $\displaystyle \lim_{n\rightarrow \infty}\bigg[\left(\frac{1}{n}\right)^n+\left(\frac{2}{n}\right)^n+\cdots \cdots +\left(\frac{n-1}{n}\right)^n+\left(\frac{n}{n}\right)^n\bigg] = 1$  Is my answer right? If not, then could someone help me? Thanks.


I have Created Two Class Library projects (AssemblyA and AssemblyB) to distinguish the difference between the protected and protected internal access modifiers.  I have made a reference of AssemblyA in AssemblyB and used the Using Directive in the code of AssemblyB.  Class Library Project (AssemblyA)  using System;  namespace AssemblyA {     public class AClassA     {         protected int ID;         protected internal int Age;     } }   Class library project (AssemblyB)  using System; using AssemblyA;  namespace AssemblyB {     public class BclassA : AClassA     {         public void print()         {                        this.ID = 1;             this.Age = 22;              // I can access both these fields here.             // How come the protected internal field gets the              // access when its between two assemblies?         }            } }

Can someone please explain the difference between the protected and protected internal modifiers in C#? It looks like their behavior is identical.


I was looking around for installing a custom recovery and then a custom firmware on my old phone, but I couldn't any links that were still available and not adware ridden, can anyone give me some advice on where to search?

There are several reasons to be looking for a ROM:   Upgrading or downgrading your stock ROM Looking for firmware from a different region/language Flashing a custom ROM for different features, removing bloat, etc.   But where can one find ROMs in the first place?  What sites are likely to have the ROM I need?  ; please add to the wiki answer instead of posting separate answers.  See also:


I was attempting to upgrade my Ubuntu Gnome 17.04 dist to Ubuntu 17.10, I ran  sudo apt-get update && sudo apt-get dist-upgrade   Everything went well as far as the console output for the download and installation. I chose yes to all options (download, install new, remove unused) Then on boot I get a number of [ OK ] messages and it then hangs. The last three OK messages are as follows:  [ OK ] Created slice User Slice of gdm. Starting user Manager for UID 120... [ OK ] Started Session c1 of user gdm. [ OK ] Started User Manager for UID 120.   How do I troubleshoot what the issue is? Thanks for any tips/advice.

I used the upgrade manager to upgrade from 17.04 to 17.10. When I start the machine, I only get a black flickering screen now. I was using the nvidia binary drivers before the upgrade.     NOTE: This question (and answer) relate to a specific issue when upgrading from 17.04 to 17.10 while using Nvidia or AMD binary drivers. You might experience a completely different issue. For that please see the more general question .


We have a problem with one of our databases. At random times something causes our transaction log to swell up to 20x its original size (it basically fills up the whole HD, so 20x is not accurate since it might grow more if there was space left on disk)   We do full backup once a week and differentials every day. Our database is using SIMPLE recovery mode. I am trying to go through the transaction log of the differential and full backup files using fn_dblog and fn_dump_dblog, yet for whatever reason, in both cases it is showing me [Begin Time] and [End Time] for a very small amount of time. For differential it is showing records for a time span of only around 1/2 a minute. For the full backup, it is showing records within a span of 5-10 minutes.  Here is the query I was running, hoping from here i can find long running transaction logs from the past:  SELECT      [Current LSN], a.[Transaction ID], [Transaction Name], [Operation], [Begin Time], [End Time], SUSER_SNAME([TRANSACTION SID]) as LoginName    FROM fn_dump_dblog (NULL, NULL, N'DISK', 1, 'DB_backup_path',     DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT,     DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT,     DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT,     DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT,     DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT) as a WHERE      Operation in ('LOP_BEGIN_XACT', 'LOP_COMMIT_XACT') order by      [Transaction ID]   Here is the query I was running to see long transaction which are still in activate transaction log:  SELECT      [Current LSN], [Transaction ID], [Transaction Name], [Operation], [Begin Time], [End Time], SUSER_SNAME([TRANSACTION SID]) as LoginName FROM      fn_dblog(NULL, NULL)  WHERE [Operation] in ('LOP_BEGIN_XACT', 'LOP_COMMIT_XACT')   In both cases, why am I getting data only for a small span of time?  Also, on more generic level, is this the best way to investigate why on random times the transaction log grows out of control. We looked at all the reoccurring sql jobs we are running and there is nothing extra ordinary there. When we kick them off, they run for at most 5 minutes. Even running multiple jobs at the same time causes no bottlenecks. Our application does not use any transactions when it talks to DB, so we are completely confused.  Any ideas?

This one seems to be a common question in most forums and all over the web, it is asked here in many formats that typically sound like this:  In SQL Server -  What are some reasons the transaction log grows so large? Why is my log file so big? What are some ways to prevent this problem from occurring? What do I do when I get myself on track with the underlying cause and want to put my transaction log file to a healthy size?


There is no login block in my website but everyday I see lot's of strange emails are sent they ask for registration. How do I can modify Drupal to reject every registration request?

I'm getting a couple of user registrations on my personal website (presumably from bots or people trying to hack my site). How do I disable new user registration entirely?


following situation, pos/neg_text are repeating: This is my feedback table: id  text-id    pos_text         neg_text       cat_id 1   1          nice people      null           21  2   1          nice people      null           24  3   1          nice people      null           27  4   1          null             cold room      36 5   1          null             cold room      37  I would like to bring all these data into a single row like: id  text-id    pos_text         neg_text       pos_cat_id       neg_cat_id 1   1          nice people      cold room      "21,24,27"       "36,37"     How should my SQL query look like? I am implementing an algorithm with TypeScript in my middleware to solve this problem, and maybe there are DB-specialists can solve that much more elegant with a simple SQL-Query. Using SQL Server 2008

I'm trying to migrate a MySQL-based app over to Microsoft SQL Server 2005 (not by choice, but that's life).  In the original app, we used almost entirely ANSI-SQL compliant statements, with one significant exception -- we used MySQL's group_concat function fairly frequently.  group_concat, by the way, does this: given a table of, say, employee names and projects...  SELECT empName, projID FROM project_members;   returns:  ANDY   |  A100 ANDY   |  B391 ANDY   |  X010 TOM    |  A100 TOM    |  A510   ... and here's what you get with group_concat:  SELECT      empName, group_concat(projID SEPARATOR ' / ')  FROM      project_members  GROUP BY      empName;   returns:  ANDY   |  A100 / B391 / X010 TOM    |  A100 / A510   So what I'd like to know is: Is it possible to write, say, a user-defined function in SQL Server which emulates the functionality of group_concat?   I have almost no experience using UDFs, stored procedures, or anything like that, just straight-up SQL, so please err on the side of too much explanation :)


As I know, there are three type of pNFS: file layout, block layout and object layout. So, between these types, which layout reach the best performance and which layout has the worst performance.

As I know, Parallel NFS (pNFS) has three types: file layout, block layout and object layout. What are the advantages and disadvantages of each type?


Working on the review queue after I was granted the privilege, I don't see why I shouldn't be able to cast a close vote on a question I've flagged previously.    Please allow me to cast a close vote if I've flagged the answer previously.  Or count the flags as close votes? If so, then please don't show the questions in the review queue.

Back in April, I flagged a post as "not a real question".  The post was subsequently closed and reopened, then closed again and finally just reopened a 2nd time a short time ago.  I still firmly believe the post is not acceptable for SO, so I went to use my recently acquired close vote privilege and was greeted with the following messsage:    I specifically clicked close and not flag (and figuring I just clicked in error, I tried again and got the same message).  I do understand that, in the new closing system, flagging for closure is treated very much like a close vote (since it throws it to the close vote queue) except no vote is actually recorded.  My issue is why should by flag be counted as a close vote when I never actually voted to close.


In Dark Souls III you don't start hollowing until you ask Yoel of Londo to "draw your true strength", which in practice gives you up to 5 free levels at the cost of getting hollowing points each time you die, which change your appearance.  To reverse this process, you need to pay a lot of souls... however, apparently you NEED to get hollow to get the best ending.  Where is the catch?

Yoel of Londor is at Firelink Shrine now, and offering me free levels. Some basic research indicates to me that if I accept them, I'll get a Dark Sigil, which causes me to Hollow on death. And possibly other things.   I've also seen some ways I can rid myself of the Dark Sigil.  I'm curious what the pros/cons are to going down this path. Are they basically free levels if you get the Dark Sigil, level up, and then cure yourself after maxxing out the free levels? Is there an upside to keeping it, or being Hollowed? What are the downsides to be Hollowed?


I'm looking for certain themes for a project of mine and I would like to use sayings like "see no evil, hear no evil, speak no evil". However, I'm having trouble finding more good examples.  What I'm mainly looking for are short sayings that have popular imagery attached to them, such as the above saying and the three wise monkeys. So the saying should be short and sweet and have an image associated with it.  Is there a specific name for these kinds of sayings?

[Revised question]  Is there a name for expressions or sayings such as "the end justifies the means?"  After searching online I found that this expression is defined as consequentialism. But what I'm asking is whether there is a name for this types of phrase. At first, I thought it was an idiom, but by definition it is not an idiom because one can deduce the meaning from the words of the expression.   Also, after reading the many excellent comments and answers, I looked at the term proverb and maxim, but these don't seem to quite fit either because "the end justifies the means" doesn't seem to be a "general truth" in fact it is more of a moral rationalization that many people do not believe to be true.  Just to clarify, I'm not asking for definitions of "the end justifies the means"  or "consequentialism"; I'm asking what are phrases such as this called, where their meaning, unlike an idiom, can be deduced from the words in the expression or saying, and where it is not a general truth (i.e. adage, maxim, proverb, etc).


I need a utility which is capable of downloading the contents of an website recursively. For example I have a website URL which has 10 hyperlinks. Using the utility, I should be able to download the contents of those 10 hyperlinks to my local system.  Please let me know if you are aware of any such utility.

How can I download all pages from a website?  Any platform is fine.


I saw this on Over The Air local television in the midwest in the mid to late 80s. It was either a 70s or 80s horror movie.   There are people disappearing. I've forgotten most of the movie except the ending.  The portal is in a cave. He's using a glowing rod to cut up the bodies. It doesn't harm him because he's 'chosen' by the monster on the other side of the portal. At the end of the movie it appears someone else is chosen because they get the rod from him, and use it to cut him up and throw him in.

I'm trying to identify a movie I watched back in the early-to-mid 80's on cable, most likely HBO or Showtime. In the movie, aliens visit a small town. The visit is witnessed by two children - a local boy and a girl whose parents had stopped in the town while on a road-trip.  Years later, the now-grown girl returns to the town and she's a reporter (I think) investigating a weird rash of cattle mutilations in the area. The now-grown boy is the town sheriff or deputy, and is also investigating the mutilations. It turns out that      a local man is behind the mutilations. He was abducted or changed when the aliens visited 25 years ago, and now works for the aliens by cutting up the cattle using a glowing rod of some kind. The rod resembles a lightsaber blade but you can hold it.   Unfortunately, I don't remember the actors involved, but these three main characters were all Caucasian. The main two leads were around 30, with the local man being older. The town was in the Southwest, I believe, with lots of scrub-brush and semi-desert areas around the town.


Consider the following class:  public class Extractor  {      public IService service;      public Extractor(IService service)      {         this.service = service;     }      public void DoSth()      {         var sampleMethodInfo = this.service.GetMethodInfo();         var version = ExtractAvailableMethodVersion(sampleMethodInfo);          // other stuff     }      private int ExtractAvailableMethodVersion(MethodInfo methodInfo)     {         var regex = new Regex(MIGRATION_METHD_NAME_EXTRACT_VERSION);          var matcher = regex.Match(methodInfo.Name);          return Convert.ToInt32(matcher.Groups[1].Value);     } }   Resharper hints to make ExtractAvailableMethodVersion static. So my question is - should I make static method everywhere it's possible (like in the example ablove)? Is any performance difference when calling static / non-static method in such a case? Or is it only "code-style rule" to make static method when not using instance members?

ReSharper likes to point out multiple functions per ASP.NET page that could be made static. Does it help me if I do make them static? Should I make them static and move them to a utility class?


My friend bought a Sony Xperia Z3, and started to install all the apps she liked. After installing dozens of apps, she realized that there is a notification icon looks like a raindrop. I was asked to get rid of it, but I couldn’t. I tried to stop all the running apps, but it remained on top. If she pulls down the notification bar, it shows nothing.   Any idea what this could be?status

I'm concerned about an app on my child's phone. I saw an app icon in the notification area that looked strange (Andy Android head, slightly tilted as its icon).  How can I find out what app it is from just having seen that icon in the notification bar?


I've been trying to solve these two problems regarding limits and series, yet I couldn't find a proper solution:   Let $\sum_{n=0}^\infty x_n$ be a real number series, which is convergent. Show that $\mathop{\underline{\lim}}_{n \to \infty} nx_n = 0$. Additionally, knowing that $x_{n+1} < x_n$, find that $\exists \ lim_{n\rightarrow \infty}nx_n = 0$. Let $(a_n)_{n \ge 0}$ be a series of $R$ defined as follows: $a_{n+1} = \sin a_n, \ \forall n\in N$ and $a_0 \in (0,\frac{\pi}{2})$.   a) Find $lim_{n\rightarrow \infty}a_n$ and $lim_{n\rightarrow \infty}\frac{1}{na_n^2}$.  b) Find the nature of the following series $\sum_{n=0}^\infty a_n^\alpha$, where $\alpha$>0.  Any help with these two will be much appreciated. Thank you all in advance!  PS: If someone could give step-by-step proof, that would be great.  PPS: This question has been marked as possible duplicate of . Even though the given link adresses a similar problem, it is not the same as the one I have posted. Above all, my post consists of two separate problems, whilst the one given in the link has only one.

Let $(x_n)$ a decreasing sequence and $\sum x_n\to s$. Then $(n\cdot x_n)\to 0$   Check my proof please, Im not completely sure about it correctness.  If $\sum_{k=h}^\infty x_k= s$ then we can rewrite the sum for starting index $1$ with the change $k-h=j$, then  $$\left(\sum_{j=1}^n x_j\right)-n\cdot x_n=\sum_{j=1}^n (x_j-x_n)$$  Then taking limits  $$\color{red}{\lim_{n\to\infty}\left[\left(\sum_{j=1}^n x_j\right)-n\cdot x_n\right]}=\lim_{n\to\infty}\sum_{j=1}^n (x_j-x_n)=\sum_{j=1}^\infty (x_j-0)=\color{red}{\lim_{n\to\infty}\sum_{j=1}^n x_j}=s$$  where I used the fact that $(x_n)\to 0$. Thus equating the colored expressions this implies that $\lim_{n\to\infty} nx_n=0$.    The proof, to my eyes, seems correct but I dont needed in any moment to use the fact that $(x_n)$ is a monotonic sequence so it is possible that I make a mistake somewhere or that the proof is incorrect.    My second attempt  Because $\sum x_k$ converges and is positive (cause $(x_n)\downarrow 0$) we can write   $$\sum_{k=n+1}^{2n+m}x_k=\left|\sum_{k=n+1}^{2n+m}x_k\right|<\epsilon/2,\quad \forall n,m\ge N$$  Then, cause $(x_n)$ is decreasing  $$(n+m)x_{2n+m}\le\sum_{k=n+1}^{2n+m}x_k<\epsilon/2\\\implies (2n+m)x_{2n+m}\le2(n+m)x_{2n+m}<\epsilon,\quad\forall n,m\ge N$$  Because $m$ is arbitrary setting $M=2N>N$ we can finally write  $$nx_n<\epsilon,\quad\forall n\ge M$$  It is this proof correct? Thank you.


I know that the PROMPT command can be used to alter the command prompt but sometimes the directory path gets too long. Most of the time I'm not interested in the entire directory, just the last folder (leaf). Is there any way of shortening it?

In a command prompt window (terminal), how can I get my prompt to be just the current folder?  e.g.  prompt $p $g   gives:  C:\Users\Robin >   But I want it to just show:  Robin >    UPDATE: As @Caius Jard said in the comments, the question identified doesn't duplicate this, as I don't want to simply remove the path, I want to have the current folder name included in the prompt.  e.g.   Program Files >   or   Users >   Hope that clarifies


There are a lot of spells and even weapons the have multiple damage types in the same attack. For example, Meteor Swarm has 20d6 bludgeoning and 20d6 fire damage.  Let's say an unfortunate PC gets hit with meteor swarm and has 90 max hp, he first takes the bludgeoning damage of 91 and then the fire damage of 85. does this all register as 1 hit and become unconscious or would he become unconscious from the bludgeoning damage and then take the failed death saves from the fire damage?  In short: do multi element attacks count as 1 hit or does each element count as a different hit?

Scenario 1: A grimlock hits Alice with a Spiked Bone Club, dealing 5 bludgeoning damage, plus 2 piercing damage. Alice's HP was 12.   Using the optional Massive Damage rules on page 273 of the DMG, does this count as more than half the HP from a single source, or less than half, but twice?  Scenario 2: Assume the same grimlock hits Bob with the same attack, this time rolling 6 bludgeoning damage, plus 3 piercing damage. Bob's Max HP is 8, and he had 1 HP remaining before he was hit.  Using the Instant Death rules on page 197 of the PHB, does the character die, or are the two damage types tracked separately? Does the character have to make a death saving throw for the second part of the damage?


I tried to compare it with $1/n$ which I know diverges:  $$\frac{1}{n\ln^2(n)} \le \frac{1}{n} \Leftrightarrow \\ n\ln^2(n) \ge n \Leftrightarrow \\ \ln^2(n) \ge1\Leftrightarrow \\ \ln(n) \ge 1 \Leftrightarrow \\ n \ge e$$  If $1/n$ diverges and it is greater than the given series for all $n \ge e$... it should diverge, right? Yet the solutions say it converges. Is it because $2 < e$ and $a_2$ is part of the series? Does that make it converge or does that just mean $1/n$ isn't good for comparing?  Note: I could solve this by comparing with $1/\sqrt{n}$ instead but I am still wondering why this failed.

I am attempting to prove if the below expression converges or diverges:  $$\sum_{n=2}^{\infty} \frac{1}{n (\ln n)^2}$$  I decided to try using the . So then, I set $f(n) = \frac{1}{n (\ln n)^2}$ and $g(n) = \frac{1}{n}$ and did the following:  $$ \lim_{n \to \infty} \frac{f'(n)}{g'(n)} =  \lim_{n \to \infty} \frac{-\frac{\ln(n) + 2}{n^2 (\ln n)^3}}{-\frac{1}{n^2}} =  \lim_{n \to \infty} \frac{\ln(n) + 2}{n^2 (\ln n)^3} \cdot n^2 =  \lim_{n \to \infty} \frac{1}{(\ln n)^2} + \frac{2}{(\ln n)^3} = 0 $$  I know that $\sum \frac{1}{n}$ diverges due to properties of harmonic series, and so concluded that my first expression $\frac{1}{n (\ln n)^2}$ also must diverge.  However, according to , and as suggested by , the expression actually converges.  What did I do wrong?


Hi again i will try my best with my broken english to explain :  I have a Plane and Sphere, i link both with the plane as parent and the sphere as child. After i use in Object Tab the Duplication (faces), so  i have as result a clone (the second sphere).  So now i would like to make a object from this clone (make duplicates real) and work on it, like a new mesh.  For that i have selected the parent (the plane) and do  Shift+Ctrl+A  and as you can you on the last screenshot i have on the left menu " make duplicates real"  but what do i need to do now?

I would like to make object from a child so i can edit it, there is a way to do this? I use the Duplication to a sphere from a plane, i want to make object from the result (the new sphere created).  sorry for my english i will put a screenshot for help, i read i have to select the parent and do Shift + Ctrl + A     but its not working. Thanks :)


Using GParted, I have formatted an external HDD to ext4.  As it turns out the default is that I have no write access.  How can I change permissions on external drives?

I wanted to change permissions on my external drives that are automounted however I have tried by sudo nautilus and then going to gui and permissions and changing it however it does not let me.  I ran the ls -l and get  drwx------ 1 xbmc xbmc   the gui shows below.  owner xbmc folder access create and delete files file access ---  Group xbmc folder access none file access ---  others folder access none file access ---   how can I change it so that everyone has permission to access the drive and ALL folders/files inside of it. I am trying to get plexmedia server running and I cant see my drives via the webpage manage to add it to my source to be able to stream my content.  I want to change the "others" access so that I can access all my drives on the /media path to get read and write for all my folders from anywhere.  you can see my drives that are mounted here (external drives are #18,19,20)


I'm reading this  and I think that the author uses the fact that numbers of form $n^2 + 1$ have only prime factors of form $4m + 1$ (excluding the case when $n$ is odd so $2$ is also a possible prime factor). Why is this so?  As I can see, if $n$ is even then $n^2 + 1 \equiv 1\ (\textrm{mod}\ 4)$ and as long as there is even number of prime factors of form $4m + 3$ that won't be violated.

Given an integer $n$, we are asked to investigate about the existence of integer divisors of $n^2+1$ of the form $4k+3$. Can you provide some insights about it?


I just updated from Python 3.8.5 to python 3.9.0  (I use Ubuntu 20.04). I don't know if this update could be a problem, but when I try to open "Software & Update" from the icon, it doesn't work. There is also an other error "A problem occurred when checking for the updates" in the top bar of the desktop (panel). I tried to Install via terminal the software updates using the following commands: sudo apt update and after sudo apt upgrade. But when I try to use software-properties-gtk there is the following output: Traceback (most recent call last):   File "/usr/bin/software-properties-gtk", line 32, in <module>     import aptsources   File "/usr/lib/python3/dist-packages/aptsources/__init__.py", line 3, in <module>     import apt_pkg ModuleNotFoundError: No module named 'apt_pkg'  Can someone help me?

I have both python3.6 and python3.5 on ubuntu (zesty beta 2). I know that python calls python2.7. The problem is, when I call python3, it automatically starts python3.5 instead of python3.6.  Is there a better way to fix this than an alias?


This is a very basic query I can't figure out....  Let's say I have a two column table like this:  userid  |  roleid --------|--------    1    |    1    1    |    2    1    |    3    2    |    1   I want to get all distinct userids that have roleids 1, 2 AND 3.  Using the above example, the only result I want returned is userid 1.  How do I do this?


What kind of future verb tense is this: "will needs continue"?  These contests may take place at any time the competitors express their readiness, due notice of course, being given the day previous, for the benefit of the public. When once started, the gliding performances of a single contestant will needs continue several days, and plenty of entertainment is promised the public in this aero-department.  Source:  (see col. 6, the last paragraph.)

Then touching the shoulder of a townsman who stood near to him, he addressed him in a formal and courteous manner:      "I pray you, good Sir," said he, "who is this woman? -- and wherefore is she here set up to public shame?"      "You must needs be a stranger in this region, friend," answered the townsman, looking curiously at the questioner and his savage companion, "else you would surely have heard of Mistress Hester Prynne and her evil doings. She hath raised a great scandal, I promise you, in godly Master Dimmesdale's church. "   As far as I know we always use first form of the verb after "must". For instance: "You must go". We never say "You must goes". Also, we never use -s/es with a verb that comes with "You". What are the circumstances in which writer has used "needs" after "You must" in "You must needs to be a stranger in this region."?


i have this usercontrol, without height and width set, how can i make it occupy all available width within the listview? I've already tried with HorizontalAlignment = "Stretch", but it doesn't seem to work.  This is the code of the usercontrol: <UserControl x:Class="SurveyFlow.MachineListItem"          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"          xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"          xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"           xmlns:local="clr-namespace:SurveyFlow"          mc:Ignorable="d">   <Grid>      <ProgressBar  x:Name="ProgressBarPezzi" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Height="6" Background="Green" Foreground="#FF2AB913" BorderBrush="Transparent" />     <StackPanel Orientation="Horizontal">         <materialDesign:PackIcon Kind="Circle" x:Name="StatusBtn" HorizontalAlignment="Left" Foreground="Gray" Margin="15"/>          <TextBlock Text="Macchina" TextDecorations="StrikeThrough" x:Name="MachineName" FontWeight="SemiBold" VerticalAlignment="Center" HorizontalAlignment="Left"/>      </StackPanel>  </Grid>

Im trying to define a dataTemplate for a business object in my wpf application a collection of which is being bound to a ListBox.  <UserControl.Resources>     <DataTemplate x:Key="ResizedItemsDataTemplate" DataType="{x:Type resizer:ResizeMonitorItem}">               <Border x:Name="bdr" BorderBrush="Blue"                                       BorderThickness="1"                                       CornerRadius="2"                                       Width="auto"                                      HorizontalAlignment="Stretch"                                      VerticalAlignment="Stretch">                     <Grid Margin="2">                         <Grid.RowDefinitions>                             <RowDefinition Height="14"></RowDefinition>                             <RowDefinition Height="14"></RowDefinition>                         </Grid.RowDefinitions>                           <TextBlock Grid.Row="0" Text="{Binding SaveAsFileName}"></TextBlock>                         <TextBlock Grid.Row="1" Text="{Binding ResizedImageFilePath}"></TextBlock>                     </Grid>              </Border>     </DataTemplate> </UserControl.Resources> <Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="0">         <Border BorderThickness="0,0,0,5" BorderBrush="DarkGray" >         <ListBox x:Name="ListBoxResizeItems" ItemsSource="{Binding Path=ResizeItems}" BorderThickness="0" ItemTemplate="{DynamicResource ResizedItemsDataTemplate}">         </ListBox>     </Border> </Grid>   How can I get the border defined with x:Name=bdr to span the full width of each listbox item? At the moment it only spans the with of the textblocks inside it which dont neccessary fill the full width of the listboxitem and also vary for each listboxitem.


I am very new to Ubuntu and Linux in general, so any advice is appreciated. I am following the "Dual-Boot Windows 7 and Ubuntu in Perfect Harmony" tutorial on Lifehacker to do exactly that.  is the link. I am at the step of partitioning my system, I already have windows installed but i am in the Ubuntu Live. When i go into the GParted Partition Editor and try and select "new" I get this message:     It is not possible to create more than 4 primary partitions.      If you want more partitions you should first create an extended   partition. Such a partition can contain other partitions. Because an   extended partition is also a primary partition it might be necessary   to remove a primary partition first   Thats all!  Wow! Ubuntu's community is amazing, i was expecting at least a day wait for an answer. Anyways, here is the picture:    Also, i forgot to tell you, but i am on a laptop for this project, if that changes anything.  thanks for all of you help so far!

I would like to install Ubuntu alongside Windows 7 on a HP G62 Notebook. Although I have installed  Ubuntu in a dual-boot many times before, I found out that this model has already four partitions.    Partitions:   SYSTEM (NTFS, 199MB, used 66.59MB) Partition without any tag: NTFS (579GM, used 129GB)  RECOVERY (NTFS 16.74 GB, used 2.42GB)  HP_TOOLS (FAT32, 103.34 MB, used 13.23MB)   Since I am not an expert with partitions I would like to get advice on how to do this.  My first idea is this one:   Free some space from /dev/sda2 (I don't know if could also free some other space) delete the HP_Tools partition (I have already created a backup) create an extended partition with the free space in #1 containing three parititions: swap (1gb); / (EXT4, 30GB);  /home (EXT4, 120GB)   Another option is to use wubi instead.  What do you think? Is there any other way to achieve this?  PS: I really think this HP policy of using 4 partitions is not a coincidence  PS: I tried using gparted from the live CD and I got a warning message saying that if I freed some space from /dev/sda2 I could create serious issues in the system


Following is my sql query to get data from mysql database. So how do i save it as .csv file ?   <?php $sqlagentdetails = "select * from users WHERE company_name != ''"; $rowresult = mysql_query($sqlagentdetails);  while($row = mysql_fetch_array($rowresult, MYSQL_ASSOC)){     $pc1 = $row['pc1'];     $pc2 = $row['pc2'];     $pc3 = $row['pc3'];     $pc4 = $row['pc4'];                           $emailAgent = $row['user_email'];                           $user_id = $row['id'];  $myQuery =  mysql_query("  SELECT *     FROM user_property upr    WHERE (postcode = '$pc1' OR          postcode = '$pc2' OR          postcode = '$pc3' OR          postcode = '$pc4') AND          datediff(CURDATE(), upr.creation_date) <= 7 AND          NOT EXISTS(SELECT ofr.property_id                        FROM offers ofr                       WHERE ofr.property_id = upr.property_id AND                            ofr.agent_id IN(SELECT id                                               FROM users                                              WHERE company_name !=''                                           )                    ) ORDER BY property_id DESC"); $num =  mysql_num_rows($myQuery); while($row = mysql_fetch_array($myQuery)){        /// data is showing here............      }// second while statement  }// first while statement ?>   It's showing following data column  Email | Pcode | Quote | type | House | type | B | Ba | P | Value | Date |  Listed | Status

What is the most efficient way to convert a MySQL query to CSV in PHP please?  It would be best to avoid temp files as this reduces portability (dir paths and setting file-system permissions required).  The CSV should also include one top line of field names.


I have Windows OS in which I have installed VMWare.VMWare has Ubuntu in it as Virtual OS.Now I try to copy my Windows Desktop to Ubuntu Folder but it is not working.Is there a way to do this? Please find the image for reference.

I have a Windows 7 host machine. My VMware player is running Ubuntu 10.10.  I want to access my main C:\ in Ubuntu to be able to access all my files.  I have tried: "Edit virtual machine settings" > Hardware > Add > Hard Disk > Use Physical disk > Use entire disk > Finish*.  But when I go into Ubuntu and try to access the HD I run into this error which causes the Ubuntu to hang indefinitely.    *I have partitioned my disk but if I instead of selecting Use Entire Disk select a


I'm currently reading Deathly Hallows.  Once Voldemort's name has been Tabboo'd, it summons the Death Eaters, as well as breaking protective charms on an area (case and point, Harry's Tent).  When it is uttered, Death Eaters appear outside the tent in which Hermione, Harry and Ron are hiding.    Since the only requirement for Apparition appears to be a wand (no verbal cue to alert the Death Eaters) and Disapparating can be done extremely quickly (for example: Mundungus Fletcher  in Hogsmeade, Dobby's death) - why don't the group just get gone and escape before they are taken to Malfoy Manor?

During the time that Voldemort's  name was under Taboo spell, Harry Potter mistakenly used his name. This led Fenrir and the other Snatchers to find them.   Why didn't Harry, Ron, and Hermione disapparate when they appeared? Obviously they wouldn't have had time to pack up the tent, but if it was between life or death, then why wouldn't they just choose to live and leave everything behind?     ‘Harry –’      ‘Come on, Hermione, why are you so determined not to admit it? Vol—’      ‘HARRY, NO!’      ‘—demort’s after the Elder Wand!’      ‘The name’s Taboo!’ Ron bellowed, leaping to his feet as a loud crack   sounded outside the tent. ‘I told you, Harry, I told you, we can’t say   it any more – we’ve got to put the protection back around us – quickly   – it’s how they find –’      But Ron stopped talking, and Harry knew why. The Sneakoscope on the   table had lit up and begun to spin; they could hear voices coming   nearer and nearer: rough, excited voices. Ron pulled the Deluminator   out of his pocket and clicked it: their lamps went out.      ‘Come out of there with your hands up!’ came a rasping voice through   the darkness. ‘We know you’re in there! You’ve got half a dozen wands   pointing at you and we don’t care who we curse!’   Why didn't they just disapparate?


i got array from user wanna hint in my assignment user input array elements and key and i'll check if the key found in the array or not and my output should be one line key found or not , and i tried more than time to fix it and thinking more but have no idea how to get only one output in same time i checking all array elements witch mean i'll get num of elements output lines ^_^   Scanner in=new Scanner(System.in);         System.out.println("Enter array size ? ");         int size=in.nextInt();         int input[] = new int[size];          for(int i=0;i<size;i++){             System.out.println("Enter array element #"+i);             input[i]=in.nextInt();         }         System.out.println("Enter key ? ");         int key=in.nextInt();         for(int i=0;i<size;i++){             if(key!=input[i]){                 System.out.println("key not found");             }else if(key==input[i]){                 System.out.println("key found");             }         }

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


Is $(\sinθ)^2=\sin^2θ$  or  $(\sinθ)^2=\sin(θ^2)$  or  $(\sinθ)^2=\sin^2(θ^2)$  Can you explain your answer, regards Tom. Also, does your answer work for $\cos$ and $\tan$?

Several people have told me that $\sin(x)^2 = \sin(x^2)$. However, on several computing platforms, such as the TI-84 and Wolfram|Alpha, $\sin(x)^2 = \sin^2(x)$. Can I safely conclude that the notation $\sin(x)^2$ is ambiguous and should always be avoided in favor of $\sin^2(x)$ or $\sin^2 x$? I am having trouble finding any reference through Google or in textbooks (which, I presume, avoid notation like this).


Is there any keyboard shortcut to go here?    EDIT: This script does not work  on run {input, parameters}      (* Login menu has to be the last! *)    tell application "System Events"     tell process "SystemUIServer"       set n to number of menu bar items of menu bar 1       tell menu bar item n of menu bar 1         click         repeat with i from 1 to 10           try             if name of menu item i of front menu contains "Login Window" then               click menu item i of front menu               exit repeat             end if           end try         end repeat       end tell     end tell   end tell    return input end run   EDIT2: I made this Automator Script (when I execute it, it works) but when I try to assign it a keyboard shortcut it does not work.

I’d like to assign an “Every Application” keyboard shortcut to bring up the login window, for when I step away from my computer. Is there a way to do this? (Lion-only methods are fine.)


I want to have a 2 line aligned equation. When I try to compile the following code I receive a few errors and I cannot understand why.  \begin{equation} \begin{split} n \nabla \cdot \boldsymbol{v} + \boldsymbol{v} \cdot \nabla n + \frac{\partial n}{\partial t} &= 0 \\  n \sum_{i=1}^3\Big( \frac{\partial\dot{q_i}}{\partial q_i}+\frac{\partial\dot{v_i}}{\partial v_i} \Big) + \boldsymbol{v}\cdot \nabla n + \frac{\partial n}{\partial t} &= 0 \end{split} \end{equation}   I recieve the errors:  Missing $ inserted Missing \endgroup inserted Display math should end with $$.

Why blank lines between equation makes error? there are a lot of commands in latex and almost for all of them these blank lines are not important,  but why in this case is important and is there any similar function?


I need your help,  How can I dead center a div within another div, both horizontally and vertically on page?  So far, I have managed to center my div horizontally.  Here's the HTML markup in question  <!DOCTYPE html>

                     some text here

Best way to center a <div> element on a page both vertically and horizontally?  I know that margin-left: auto; margin-right: auto; will center on the horizontal, but what is the best way to do it vertically, too?


I'm (re)learning Ajax from the Mozilla site on , and I'm faced with this segment of code:  (function () {     var httpRequest;     document.getElementById("ajaxButton").onclick = function () {         makeRequest('test.html');     };      function makeRequest(url) {         if (window.XMLHttpRequest) { // Mozilla, Safari, ...             httpRequest = new XMLHttpRequest();         } else if (window.ActiveXObject) { // IE             try {                 httpRequest = new ActiveXObject("Msxml2.XMLHTTP");             } catch (e) {                 try {                     httpRequest = new ActiveXObject("Microsoft.XMLHTTP");                 } catch (e) {}             }         }          if (!httpRequest) {             alert('Giving up :( Cannot create an XMLHTTP instance');             return false;         }         httpRequest.onreadystatechange = alertContents;         httpRequest.open('GET', url);         httpRequest.send();     }      function alertContents() {         if (httpRequest.readyState === 4) {             if (httpRequest.status === 200) {                 alert(httpRequest.responseText);             } else {                 alert('There was a problem with the request.');             }         }     } } //missing closing bracket added by bwalton 5/11/11.   )();   While I managed to understand the code and get it working, it's not until I stripped off the "(function() {" part at the top and all the end braces at the end of this code segment. The thing is I don't understand the purpose of" (function{", and it seems neither does FF. (It doesn't recognize this segment as Javascript until I stripped off the "(function{" portions. Does anyone know the purpose of this segment of code? I knew I've seen it somewhere as well, and this time I want to know exactly what it means.   Thanks in advance for your help.

In javascript, when would you want to use this:  (function(){     //Bunch of code... })();   over this:  //Bunch of code...


how does this code works  for example  input: 5(101) ouput: 2   the function is   scanf("%d", &a); while(a) { oneina++; a=a&(a-1); } printf("%d", oneina);

8 bits representing the number 7 look like this:  00000111   Three bits are set.     What are algorithms to determine the number of set bits in a 32-bit integer?


I'm developing in Java a maven plugin which needs to run different SQL scripts, among other things. I don't know how to run existing SQL Scripts from Java so I started to wonder if I can use the sql-maven-plugin inside my own plugin implementation for executing SQL scripts. I found nothing close to this while googling so I guess it's not realistic, but want to be sure.  EDIT: I tried to use the mojo-executor, however I don't know how to add my executions to the structure proposed by the mojo executor.

I'm trying to create a new plugin to package my latest project.  I'm trying to have this plugin depend on the maven-dependency-plugin to copy all my projects dependencies.  I've added this dependency to my plugin's pom, but I can't get it to execute.  I have this annotation in my plugins main Mojo:  @execute goal="org.apache.maven.plugins:maven-dependency-plugin:copy"   I've tried a few other names for the goal, like dependency:copy and just copy but they all end with a message saying that the required goal was not found in my plugin.  What am I doing wrong?  Secondary to this is where to I provide configuration info for the dependency plugin?


What is the correct form (singular or plural) of the following two sentences:  A particular amount of students has/have access. A particular amount of students was/were selected.  In my opinion, it could be either referred to "amount", which would be singular (has/was) or to "students", which would be plural (have/were).

Can anyone please help and tell me if this sentence is correct?  "A significant amount of zombies were detected in your city."  In my opinion it should be "A significant amount of zombies was detected in your city." because "amount" should be in agreement with "was" even though amount usually refers to something plural. Are both (was and were) acceptable in this case? Edit1: Yes, "number" would be the correct one in this case. So allow me to ask one more thing.  "A significant amount of purchases were detected..."  Does the use of "number" apply in this case also? As purchase is not exactly a thing/person. And if no, is it correct to say "A significant amount of purchases were detected..."? Edit2: So, please tell me what is the correct phrasing?  "A significant amount of purchases were detected..." "A significant amount of purchases was detected..."  Or, since purchases are countable, is the use of "number" instead of "amount" correct here, as in:  "A significant number of purchases were detected..." "A significant number of purchases was detected..."  Or would amount be correct since a purchase involves money and it refers to the amount of money? Would greatly appreciate an answer, and if possible a detailed explanation.


Let $X$ be a scheme of finite type over an algebraically closed field $k$. Suppose stalk $O_{X,x}$ is an integral domain.  Then it implies that $x$ is in the closure of only one associated point of $O_X$, which I am not sure how to deduce. How can I prove this? Thank you. The definition of associated point I have is: $z \in X$ is an associated point of $O_X$ if there exists an open neighbourhood $U$ of $z$ and $s \in \Gamma(U, O_X)$ such that $s_y \neq 0$ if and only if $y \in \overline{  \{ z \}  }$ for all $y \in U$.

In Milne's , he mentions     Remark 3.14   The local ring $\mathcal{O}_{V,P}$ is an integral domain if $P$ lies on a single irreducible component of $V$...       ... if $P$ lies on more than one irreducible component of $V$, then $\mathcal{O}_P$ contains more than one minimal prime ideal, and so the ideal $(0)$ can't be prime.   Why does having more than one minimal prime ideal mean $(0)$ cannot be prime? I'm probably missing something obvious...    Thanks in advance ^_^


To start off, I should say I am not trying to do anything illegal - quite the opposite.  I am in the US and I have a decently large amount of cash - above the $10,000 reporting threshhold (approximately $20,000). I would like to put this in the bank, and as tempting as it is to deposit it a little at a time, that's basically textbook structuring, and I don't want to commit a felony just to avoid a possible unpleasant interaction with the government.  That said, I'm not sure exactly what happens when you deposit >$10,000 cash into a bank. I know that a  is generated, and there's some possible that this will trigger an investigation (though this is a one-time thing, so I doubt they'll see any sort of pattern).  My question is: I have heard, over and over again, , even when you are completely innocent. I am worried that if questioned about the source of the money, I will accidentally waive my "right to remain silent" by trying to explain the source of the money only to find I've accidentally broken some obscure financial law. Similarly, I don't want to break some law I don't know about by refusing to talk about the source of the money if questioned by a bank employee or IRS person.  My question is this: Is there some requirement that I disclose the source of a large cash deposit to a bank teller, if asked? (I'm assuming here that if I'm actually approached by a real government agent, I will need a lawyer, or at least an accountant).  And as a bonus question - how likely is it that I'll actually be seriously grilled about this, as opposed to just having the CTR go in without me knowing it?

I saw  recently where a man withdrew $600,000 USD in cash from his bank.  I'm sure many folks here would advise against this move for obvious (and perhaps not-so-obvious) reasons.   My question: suppose you did this and then, some months later, changed your mind and wanted to re-deposit with a bank.  I assume the gent cannot simply walk into a bank with $600,000 USD and deposit it, right?  Wouldn't money-laundering alarms be raised?  Wouldn't the IRS like to know where the money came from?


Having seen questions on  and , I have not found a hands-on example of using cross-validation for finding the best length of n-gram. I am writing a plagiarism detection programme on Python and want to estimate the best n-gram values for texts with different length. Regrettably, I have no prior machine learning experience, so bachelor works, specified into the resources above, are a bit of white noise to me. I was wondering if you could show an example of the code solving exclusively this problem.

I have a long sequence of words or letters {word1 word2 word3 word1 word1 word2 ..etc}. Lets say we extract all the ngrams (unigrams, bigrams, trigrams, 4-gram, 5-gram ....) along with their frequency from a text.   My question simply is how can we "statistically" find the best length of the n-gram given this text. is it  unigrams, bigrams, trigrams, 4-gram, 5-gram or value-gram. Note that I have no prior knowledge about the text.


After a hot shower,the air from the bathroom is full of water steam,right?  How does the air affect the texture of the toilet paper?I mean,the toilet paper it seems to be softer,but why?  Can someone explain me,please?

My four-year-old daughter asked me why paper tends to fall apart when wet, and I wasn't sure.  I speculated that the water lubricates the paper fibers so that they can untangle and separate more easily, but I really wasn't sure.


I want my part/section title to have underlined and be bald and increase its size. I can't find how to make the wanted setting stay as my default. How can I do this?

Forgive the stupid simplicity of this question, and please feel free to refer me to an older answer. I'm not quite familiar enough with LaTeX terminology to have found it.  All I want to do is set a different default format for my section titles. Instead of just being bolded and slightly larger than the main text, I'd like them to be of normal weight, the same size as the main text, and all caps.   I'm using the article class.


I Have 2 matrices (lower and upper) from the LU decomposition method, and I am trying to get the variables.   public void getZ() {     for(int i = 0; i < z.length; i++) { // iteration          if(i != nodeApplied) { // first we initialize the z with 0              // unless we reach the node that the force was applied             z[i] = 0;         } else {             z[i] = force;         }     } }  public void getNewZ() {     // lower     int[] newZ = new int[n]; // we create a new int list to save the values of the variables     for (int i = 0; i < n; i++) {         int decrement = 0; // all positions in the row before the diagonal subtracted         for (int j = 0; j < n; j++) {             if (j == i) { // if it is a diagonal                 newZ[i] = (z[i] - decrement) / lu.lower[i][i];             } else { // if is not in the diagonal                 decrement += lu.lower[i][j] * newZ[j];             }         }     }     this.z = newZ; }  public void getVariables() {     getNewZ();     for(int i = 0; i < n; i++) {         System.out.println(z[i]);     } }     Exception in thread "main" java.lang.NullPointerException     at Matrix.getNewZ(Matrix.java:92)     at Matrix.<init>(Matrix.java:68)     at Matrix.main(Matrix.java:118)

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?


I heard once that with a special crystal it's possible to "convert" somehow two green photons to a ultraviolet one and that some UV-lasers are based on this fact.  Is this right, and even more important:  Does anyone have a keyword I can use for some additional research?  My (german-language-based) research only led to some similar effects.

The question itself is pretty self explanatory. I asked this to my chemistry teacher when he was doing the photoelectric effect while teaching atomic structure, and he just shrugged it off.  One possible mechanism that I thought up, is an atom with a unpaired electron (say hydrogen) to absorb one photon, and jump to a higher energy level, and then just immediately be hit by another photon with a different energy which raises it to an even higher level. Then finally the electron falls back into its proper non exited state releasing not two but only one photon which has the energy of both the initial photons, ideally combining photons.  Is this mechanism correct? Does it occur in nature? Do photons have other ways in which they merge? or do they not merge at all?


hi when i format  micro SD card to fat32 and after that copying executable file to SD card , permission of  file that sent changes to read only and can not be executed even i use  chmod777 -R with no error but dose`not works i tried many ways but automatically  changes to no executable

I have Ubuntu 10.04 LTS (Lucid Lynx).  I've noticed recently every file on my hard drive gets the executable privilege, even every text files, so when I open it a pop-up window asks me what to do (run in terminal-Display-Cancel-Run).  I tried to change permissions in the terminal as sudo chmod a-x -Rv /media/D/*. It shows me that privileges have been changed to 666 which means rw-rw-rw, but actually nothing has been done; it's still as executable privilege given.  I tried to move some files to the desktop. Then did as above, and it was successful.  My hard drive is formatted as "FAT32". What would be the problem?


Let me give an example:  $ echo Hello > file1 $ echo Hello > file2 $ echo Hello > .file3 $ grep Hello * 2>/dev/null file1:Hello file2:Hello   Here you can see the grep ignored .file3 which is starting from .  Expected result:  $ grep Hello * 2>/dev/null .file3:Hello file1:Hello file2:Hello   In case of ls, there is an argument -a to tell do not ignore entries starting with . but I can't find any feature for grep  So, Is there anyway to tell grep do not ignore entries starting with .? or why grep ignores them?

How do I move all files in a directory (including the hidden ones) to another directory?  For example, if I have a folder "Foo" with the files ".hidden" and "notHidden" inside, how do I move both files to a directory named "Bar"?  The following does not work, as the ".hidden" file stays in "Foo".  mv Foo/* Bar/   Try it yourself.  mkdir Foo mkdir Bar touch Foo/.hidden touch Foo/notHidden mv Foo/* Bar/


$a_n$ = 2$a_{n-1}$ + 1, with the initial conditions $a_0$ = 0, $a_1$ = 1    Apparently the solution is from the Tower of Hanoi problem, but having trouble coming with the this on my own.

$a_n = 2a_{n-1} + 1, a_0 = 0, a_1 = 1$  So to get the closed form of this recurrence relation, I would usually try to get it into the form of $a_n = ra_{n-1}$ and then $a_n = r^na_0$. But what am I supposed to do with the $1$?  Thanks!


How do I find out the amount of five letter word arrangements of the word "Calculus"?    To clarify, my question is centered around the reason why that my methodology was incorrect.   Clearly in this problem order does matter,  And while it would be trivial to solve the problem there was only one letter that was repeated, the letter "u" "l" and "c" are being repeated  My initial thoughts on the problem was to do the following: $$\frac{\binom{10}{5}}{3!\cdot 3!\cdot 2!}.$$  But upon delving into the problem further I discovered that it was wrong.  I was wondering what would be the best method in solving this problem in which it has multiple letters repeating?

How many words with or without meaning can be made from the letters of the word CONCENTRATIONS by taking $4$ letters at a time?  There are  $14$ letters total present in the word. $4$ letters can be picked in $14\choose 4$ ways. $4$ letters can be arranged in $4!$ ways. So ideally answer has to be ${14\choose 4} * 4!$. But I know this answer is wrong because some letters are repeating. How do I solve this then? I appreciate any help.


I leased a line from an ISP that offers me a bandwidth of 4mb/s.But I receive only a speed of 160 kbps when downloading files over internet.I found that the actual speed I receive is the ISP throughput.  Why should i pay for unused bandwidth if i can only get a speed that is in kbps range ?  Also, what is the significance of ISP advertising in terms of bandwidth rather than throughput ? what are the factors that determine  ISP throughput ?  I find most of the people confusing Bandwidth with the actual speed they receive.People think that they get 4mb/s speed  while  accessing a file over internet when they have a leased line of 4 mb/s bandwidth.

When buying network hardware the specs usualy contain "Bits". Software usualy uses "Bytes".  What are the formulas for converting bandwidth measures?  Examples (assuming perfect conditions, ignoring side effects):   How mow many data (Megabytes per second) can I transfer on my 100 MBit network? What bandwidth (in KBit) does my ISP provide, when my torrent client shows an upstream of 300 KByte/s (and I am sure, the limit is from my ISP)?


So sometimes I edit new people's posts just to fix up dodgy formatting. I consider such edits useful because they tend to greatly improve the readability of any code included. Very often when I choose to save such edits I get a message saying that I haven't changed enough non-whitespace characters.  I was wondering if the edit validation procedure can be changed slightly... something like:  if not_enough_non_whitespace_changes():     if performed_code_formatting():         return PASS     return FAIL   EDIT due to comments  Thanks for the comments. My problem is that whitespace edits are impossible. They don't get as far as being reviewed. These types of edits are, I believe, commonly completely obvious to anyone who has ever formatted their own code. they are also completely non-trivial.   Surely it makes sense to at least let these edits through to review? I mean for everyone that has the right to edit at all. If these types of edits are not as obvious as I think they are and they actually need someone with 2000 rep to reliably fix them them then can someone please explain why?   The official way to perform such edits is to do a bunch of trivial edits at the same time. This doesn't make sense to me.

I tried to update a jQuery code block that was missing a curly brace. The code is incorrect, but I cannot edit it since changes under 6 characters are not allowed (at least at my level of rep?).  I understand why you don't want to allow minor copy-editing, and I agree that's fine for textual descriptions and regular writing, but 1 character can make a big difference in code.