I want to install g++. But I got error  sanket@sanket-Inspiron-N5110:/opt/objdir$ sudo apt-get install g++ Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  g++ : Depends: g++-4.8 (>= 4.8.1-4~) but it is not going to be installed E: Unable to correct problems, you have held broken packages.   Please Help me

Occasionally, when I'm installing stuff, I get an error like the following:  Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  package1 : Depends: package2 (>= 1.8) but 1.7.5-1ubuntu1 is to be installed E: Unable to correct problems, you have held broken packages.   How can I resolve this?


I have a text file with multiple lines, punctuation, and other word boundaries.    Example:  TITLE: Praying  SINGER: Kesha   [Music video spoken intro:]  "Am I dead? Or is this one of those dreams? Those horrible dreams that seem   like they last forever? If I am alive, why? Why? If there is a God or   whatever, something, somewhere, why have I been abandoned by everyone and   everything I've ever known?   I've ever loved? Stranded. What is the lesson?   What is the point?    TITLE: Don't Stop the Party  SINGER: Pitbull    I say, y'all having a good time, I'll bet      Yeah, yeah, yeah     Que no pare la fiesta     Don't stop the party     Yeah, yeah, yeah     Que no pare la fiesta     Don't stop the party   The goal is to pull the lyrics of the song without including the title or singer.  There are at least 10 of these in my file so it will need to pull all 10 using regex.    content = re.findall(r'TITLE\:\s\w+(.*)?\s*SINGER', file, re.DOTALL)

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 am working with a wildlife-related feature class where I have different fields for common name (i.e. Northern Goshawk), scientific name (Accipiter gentilis), and species code (NOGO). I have domains for all of these which limits acceptable answers to only the species that occur in the area studied. However, as I'm essentially adding the same information 3 times per data point, any species code I enter will only match up with one common name and one scientific name. Is there a way to link these fields so when I enter one field information (say, NOGO) the other two auto-fill?   I'm quite new to geodatabases.

When editing I want to be able to change the attributes of one field and upon doing this allow for the automatic update of another field in the same attribute table.   Essentially I have one layer with a code, description and legend information.   I would like to be able to edit the code and have the description and the legend information update with this edit with its correct description and legend information.   Is there any way to do this within ArcMap's tools or an associated script?


I created a mesh with some Edgeloops, which happen to be at different distances from each other (see pic). But i want them to have the same distance between each other. how could one achieve that without remodel the mesh(or positioning them manually)? I do not mean to distribute the vertices on a single edgeloop. I would like to have something like: select X edgeloops, press "wonderous button to do the dreamed task" -> create same distance between the loops. something like this.

I have a edge loop that has vertices on it. Is there a way I can separate the vertices on the the edge evenly without moving the end points? I would also like for the vertices to maintain the current shape.


I have been trying to update this computer for months. Every time it states:     System update KB2791765 failed. Windows_Update Code 8024200D.   Please help me to get this update taken care of. It tells me that there is an updated needed every day for months.

I have a windows 7 64 bit computer that is failing to install the update kb2918614. It has installed all the other updates.  Every time it tries to install, it fails with the error code 8024200d - it tries again every time I restart the computer.  I have tried renaming the C:\Windows\SoftwareDistribution\ to C:\Windows\SoftwareDistribution.old and installing again, but the same thing happens.  I have also tried running the "Windows Update System readiness tool", but that didn't work either.  Can anybody help me please?


This is the start of my document:  \documentclass[pdftex,a4paper,11pt]{minimal} \usepackage[a4paper,left=2.54cm,right=2.54cm,top=2.54cm,bottom=2.54cm]{geometry} \usepackage{mathtools} \usepackage{footmisc} \usepackage[onehalfspacing]{setspace}  \begin{document}   I'm getting an error on the empty line before \begin{document} which says "Undefined control sequence" and "Missing number, treated as zero".  Is there any way I can fix this?

Just curious why \doublespacing seems broken in a minimal document.  It works ok when the documentclass is set to article.  \documentclass{minimal} \usepackage{setspace} \doublespacing  \begin{document}  doublespace  these  lines  \end{document}   First error is  ! Undefined control sequence.  \setstretch ...ef \baselinestretch {#1}\@currsize


How would I fix this issue to add a space in between the caption and figure number.

Following minimal document:  \documentclass{report}  \begin{document} \renewcommand*\thechapter{\Roman{chapter}} \tableofcontents \setcounter{chapter}{6} % Problem starts at chapter 7 \chapter{Seven} \chapter{Eight} \section{Eight-one} \section{Eight-two} \end{document}   yields this output (cut to size for your convenience):    Clearly, the chapter (and section) headings hang into the chapter (section) numbers. For the previous chapter numbers, this isn’t a problem since all chapter titles are aligned to the same column and the numbers I–VI are sufficiently narrow.  (The same happens regardless of document type, I’m actually using scrreprt with the same result.)  How can I prevent this?


Is it possible to run  Windows Vista on one hard drive and Ubuntu 14.04 on the other using the same computer?

I would like to see a full how-to guide on how to install Ubuntu.


MacBook Pro Retinas dropped the line-in (microphone) jack that previous MacBook Pros had. Sometimes I want to plug in a 1/8" microphone, but there's no option to switch the input from "internal microphone" to "line in".    Is there a way through the command line or 3rd party utility to reverse the direction of the headphone jack to use it as a line in for a microphone?

, it says how to use the audio jack as in input. On my MacBook Pro 13" (mid 2012), It doesn't seem to have the option in settings. Is it not possible with these computers?


How can I switch the account when using two Google accounts? Note that I have visited this,  and . But when I click to "Add more logins" and click "Add login with Google", it does nothing, and when I quit/exit my account and log in again use Google account, it doesn't even ask me which Google account it wants me to log in with... So, how do I switch two accounts that are both Google accounts?

I have one SO login that is linked to a Google Apps Account. The thing is... I have a second Google Apps account and I would like to add it to My Logins but nothing I have tried has worked.  I've tried editing the email address on my login profile. It now shows the second Google App email address but when I click on the Google logo to login I still have to log in to Google with the first account for the fullOfGAS username to appear when I log in to SO.


When I search for websites on Google their results show up like the image above. Links of pages on website are also showing in the search result but when I search for my website only one link with my domain name shows up.   What should I do show up other pages like in the example above "About Us", "Older Entries" and other pages are showing up.   My other pages and posts are also indexed by Google but they dont show up like this.

My website used to have sitelinks and now it doesn't. It's very possible that it's due to changing the website to a sidebar design instead of having an "interstitial" type landing page which limited the number of choices, but I'm not sure.  Here is how sitelinks might look for a site:    What are some things that I can do to improve my chances of getting sitelinks?


I have tried implementing the divide and conquer technique of binary search using recursion. The code for it can be seen below. I think when the program is run, I'm getting stack overflow. If anyone does manage to find a solution, I would greatly appreciate a reason for why this happens.   public class binarySearch{     public static void main(String[] arguments){         int[] array = new int[]{1,2,3,4,5,6,7,8,9};         int findNum = binSearch(array, 9, 0, array.length-1);     }      public static int binSearch(int[] array, int searchNum, int left, int right){         int foundIndex = 0;         boolean found = false;         int mid = (right+left)/2;         if(array[mid] == searchNum){             found = true;             foundIndex = mid;         }         else if(array[mid] > searchNum){             right = mid;             binSearch(array, searchNum, left, right);         }         else if(array[mid] < searchNum){             left = mid;             binSearch(array, searchNum, left, right);         }          if(found = true){             return foundIndex;         }         else{             return -1;         }     } }

What is a StackOverflowError, what causes it, and how should I deal with them?


I want to put a "short" URL (without http://) in my document: something like \url{google.com}. But if I do that, the link does not work (it tries to link locally, and does not recognize it as a web address).  I also tried \href{http://google.com}{google.com}, which links correctly, but shows "google.com" in standard font instead of the nice URL monospaced font. I could do \href{http://google.com}{\texttt{google.com}} to get the monospaced font, but other things like URL wrapping don't work.  Is there some way that I can have the link work, and have the URL formatted nicely?  Also, apologies if this has already been asked. It seems like it must have been asked before, but I couldn't find an answer anywhere.

is it possible to use the \url command from the hyperref package with "shorthand" URLs, e.g.  \url{ipython.org}   instead of   \url{http://ipython.org} ?   It seems that the former would only link to local files on my computer, instead of retrieving the web address. (I suppose I could be using \href, but \url is shorter and I'd like to keep its formatting features.)  Edit in response to karlkoeller's answer:   Sorry for not being sufficiently precise. I don't mind typing the 'http' part so much, but I'd rather not see it printed.   egreg's answer does what I want to do - many thanks!


If experiment is observed from stationery frame of reference then light travels more distance than frame of reference of mirrors so to keep speed constant time for stationery frame of reference should be increased which maybe means that same event is happening slower in stationery frame because completion of same event is taking more time when viewed from that frame because distance covered has increased. Then why we say that in moving frame time passes slowly?

Please will someone explain what time dilation really is and how it occurs? There are lots of questions and answers going into how to calculate time dilation, but none that give an intuitive feel for how it happens.


As you probably know, you can right click files and it will show you options, such as run as administrator. I added "Run Sandboxed" to it by making the key Computer\HKEY_CLASSES_ROOT\exefile\shell\Run Sandboxed\command an adding the value C:\Program Files\Sandboxie\Start.exe %1 to (Default). If I right-click an exe file, there is something that says "Run Sandboxed", which runs the file sandboxed. It doesn't have the Sandboxie icon next to it. How do I add the icon?

Related:    I've created my custom context menu item, and it seems to work on all file types - even through shortcut links.  (Selecting my custom option performs the operation on the shortcut target, not the .lnk file.)  Now, I'd like to create an icon to make it stand out.  My antivirus program and Notepad++ seem to have been able to do this, so I know it's possible.  The only question is, how?


I just fix , but now I have another one  $\text{Let }f:[0,1]\to \Bbb R\text{ be a continuous function}$ Evaluate the function $$\lim_{n\to \infty}n\int_{0}^{1}x^nf(x)\,dx$$  My idea is to do just like what I've done in , only to multiply $n$ in the integral, becomes $$ \begin{align} 0\le n\int_{0}^{1}x^n\,|f(x)|\,dx & \le n\int_{0}^{1}x^n|f(x)-p(x)|\,dx+n\int_{0}^{1}x^n|p(x)|\,dx\\ & \le n\int_{0}^{1}x^n|f(x)-p(x)|\,dx+n\int_{0}^{1}x^n\sum_{i=0}^{m}\lvert a_ix^i\rvert\,dx \end{align} $$ and $$n\int_{0}^{1}x^np(x)\,dx=\frac{na_0}{n+1}+\frac{na_1}{n+2}+\frac{na_2}{n+3}+\cdots+\frac{na_m}{n+m+1}  \to p(1)$$ as $n\to\infty$.  But I stuck because first, I'm doing $|f(x)|$ not $f(x)$  and second, I just know it's upper bound, and I can't use pinching because the lower bound is $0$  I want to compute its lower bound but how?

I am trying to solve the following problem at the level of a senior undergrad analysis level. So, the problem is as follows: We are given a function $f$ which is continuous on the interval $\left [ 0,1 \right ]$, and the question is to find the limit: $$\lim_{n\rightarrow \infty}\int_{0}^{1}x^{n}f(x)dx\;.$$ The second part of the problem is to deduce the following limit: $$\lim_{n\rightarrow \infty}n\int_{0}^{1}x^{n}f(x)dx\;.$$  For the first part: I just did the following: For every $0\leq x< 1$: $x\leq M$, where $0< M< 1$. Then: $$\int_{0}^{1}x^{n}f(x)dx\leq M^{n}\int_{0}^{1}f(x)dx\;.$$ Then: $$\lim_{n\rightarrow \infty }\int_{0}^{1}x^{n}f(x)dx\leq \lim_{n\rightarrow \infty }M^{n}\int_{0}^{1}f(x)dx= 0.\int_{0}^{1}f(x)dx=0\;,$$ so $$\lim_{n\rightarrow \infty }\int_{0}^{1}x^{n}f(x)dx=\lim_{n\rightarrow \infty }f(1)\int_{0}^{1}1dx=f(1)\;.$$ Does that make sense? If not, please show me the correct one.  As for the second part, I have no idea what to do. Any help?


I was given a Schengen Visa (from Greece) valid from July 17 to August 8, but only 8 days permitted to stay.  My flight is originally July 17-24, but something came up and need to extend the stay until July 28 (additional 4 days).  What do I need to do? Help please!

My daughter applied at the Italian Consulate in Philadelphia, and they gave her two entries for 20 days (we thought it was for 20 days each entry). She was in Italy 12 days, then went to England for 1 week and flew to Venice to take a 10-day cruise. She couldn't make it because they said she has only 8 remaining days, but she still has a land tour already paid this week.  What can she do? Can she extend the Schengen visa for 12 more days? Right now, she is in Madrid, but next week she has to fly from Barcelona to Paris to start with the tour. What would happen if she decides to take the tour with the expired visa? She is a US permanent resident.


In related questions (,  and ), it was shown that if $A$ and $B$ commute, then $e^A$ and $e^B$ also commute (and incidentally $e^A e^B = e^{(A+B)}$). Here, the commutative property of A and B is a sufficient condition.  Is it also a necessary condition? If no, is there another necessary condition for $e^A$ and $e^B$ to commute?

It is known that if two matrices $A,B \in M_n(\mathbb{C})$ commute, then $e^A$ and $e^B$ commute. Is the converse true?     If $e^A$ and $e^B$ commute, do $A$ and $B$ commute?   Edit: Addionally, what happens in $M_n(\mathbb{R})$?  Nota Bene: As a corollary of the counterexamples below, we deduce that if $A$ is not diagonal then $e^A$ may be diagonal.


Suppose I am working on a book that is a broad expansion of a survey article I wrote with a collaborator, Dr. Y, who passed away recently. I sent Y extremely early drafts of some chapters and invited Y to be a coauthor. Y gave a lot suggestions in the structure, content, and style of the book, yet Y remained vague about coauthorship (probably because he had doubts if he will live long enough). Y never said yes or no. Y never participated in the actual writing. But Y's suggestions became the high level blueprint that guided the development of the book. This draft is only about 60% done, but I'm wondering: in this case, should Y be a coauthor?

One of my advisors suddenly passed away while I was in graduate school.  We had some discussions and ideas about future publications, but he passed away before any of the work was completed.  When the work was finally completed and published, I and my co-authors were therefore presented with an ethical dilemma about how best to acknowledge his contributions to the ideas behind the paper.  Should we list him as a co-author?  Put him in the acknowledgements?  Listing him as an author would give credit for the original idea, however, we would have no way of knowing if he actually approved of—and would want his name attached to—our methods and writing.  In the end my co-authors and I decided to list him as a co-author with a footnote stating that he passed away before publication.  I’m interested to hear from others who have been in similar situations and/or suggestions on what constitutes “co-authorship” when one of one’s collaborators passes away before the publication or work is complete.


EDIT: Thank you, PakkuDon  instead of using "==" I must use ".Equals()"!    I'm trying to implement a chat-command system though I've encountered troubles in differentiating between standard chat and command chat..  Focusing on just one command for now, `highlight  the output whenever I type in `highlight is:   highlight `highlight   Here's my code:      String cmd =  InMessage.message.substring(0, 10);     System.out.println(cmd);     System.out.println("`highlight");     if( cmd == "`highlight" )     {        ... cancel chat packet and proces command     }   and yet the if statement returns false.  What's going on here? Anything I've done is wrong?

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?


I have a job test.sh schedule to run every 5 mins, and another job test1.sh scheduled to run 12.30pm , @12.30 both jobs will run and is making a deadlock. So I need to check the job test.sh is running for that I am using :  ps -ef | grep test1.sh   but this seems to be true always as it produces a line for the same command.    # ps -ef | grep test1.sh team 24896   607  0 11:55 pts/11   00:00:00 test1.sh team 24925   523  0 11:55 pts/4    00:00:00 grep test1.sh   how to avoid printing grep test1.sh?  I am very new to unix.  Thanks, Ann

I am creating a script which clears the cache for Google Chrome. However, I would like to check if Chrome is open and if so not run the code but if it isn't then it will execute the code. I can see that the Process Name is Google Chrome but the code doesn't work.  This is what I have done so far. What am I doing wrong?  SERVICE='Google Chrome'  if ps ax | grep -v grep | grep $SERVICE then     RUNS THE CODE else     echo "PLEASE CLOSE GOOGLE CHROME" fi   Any help would be appreciated :)


I have this code where given an integer n, I want to print out all integers in the interval [1→n] that divide n, separated with spaces. I wrote this code:  n = int(input('Enter number:'))  for i in range(1, n+1):     if (n%i==0):         print (i)   I get this as the answer:   Enter number:8   1  2  4  8   But I want my answer next to each other, separated using spaces (so: 1 2 4 8). How do I do this?

I'd like to do it in Python. What I'd like to do in this example in C: #include <stdio.h>  int main() {     int i;     for (i=0; i<10; i++) printf(".");     return 0; }  Output: ..........  In Python: >>> for i in range(10): print('.') . . . . . . . . . . >>> print('.', '.', '.', '.', '.', '.', '.', '.', '.', '.') . . . . . . . . . .  In Python print will add a \n or space, how can I avoid that? Now, it's just an example, don't tell me I can first build a string then print it. I'd like to know how to "append" strings to stdout.


I'm interested in having two users on my MacBook, but restrict some apps from being used by one of them. Is there a way to block apps from being used by another user of the same Mac? Or maybe whitelist some apps that can be used and restrict all others? (Which would have the same end result.)  I'm a remote worker and I don't have strict hours, it's incredibly easy to get distracted while working. Procrastination is a real issue, and I would like to create one user that could only access work-related apps.  I imagine I can sort of improvise a solution to this using Screen Time restrictions on my main user, but that's a bit too finicky. The ideal solution would be for me to have a Work user and be really strict about which apps this user can and can't access.  Is this possible? If so, how?  I'm also open to using any kind of 3rd-party software that can help me achieve something close to this.

Is there a way to block a list of specific apps on macOS?  I have looked up solutions such as Cisdem, but there are some holes in the way it works that I don't like.   Unless you also block Activity Monitor, Terminal, and System Preferences, you can simply quit the Cisdem process or create a new user to get around it. You have to block Activity Monitor, Terminal, and System Preferences to make it work well.   I want to block an app from running or even being installed on my Mac. The app can be installed via the App Store and the web. Not sure how to go about this. Enabling Parental Controls won't work as Administrator privileges are needed.   The specific app I want to block is Apple Configurator.  Any ideas?


This  contains a breakdown of SO users by country, but it's quite old. It is possible to make another one with updated data? Thanks. EDIT: this was just posted on  :)

I wanted to know more about . Is there any way I could get more data for this? Are there any more maps or charts to further identify where users are coming from across the world? How could I go about generating my own maps or charts?  Note: The original statistics and images provided with this question in 2009 are available in the .


Trying to get a function name in Python, I would like to achieve something like this:  def my_function():     do_something...  def get_func_name(function):     return magic(function)  >>> print get_func_name(my_function) >>> my_function   How should this be done?  Thanks a lot!

In Python, how do I get a function name as a string, without calling the function?  def my_function():     pass  print get_function_name_as_string(my_function) # my_function is not in quotes   should output "my_function".  Is such function available in Python? If not, any ideas on how to implement get_function_name_as_string, in Python?


I am installing Linux Ubuntu 20.04 Desktop on a clean no OS computer. Came up with either TRY UBUNTU or INSTALL UBUNTU screen. The mouse cursor will not move. The computer is USB ONLY for mouse and keyboard and does not have connections for PS2 MOUSE and Keyboard. Any suggestions on a work around or how to get past and install?

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


I was in need to use the number 515236034100068353 but JavaScript transforms it as 515236034100068350      console.log(515236034100068353 === 515236034100068350)     Why does this happens ? How could I fix it ?

Is this defined by the language? Is there a defined maximum? Is it different in different browsers?


I run Linux on an ASUS N61JQ Notebook, and cannot use my WiFi network. Airplane Mode is on, and the option to disable it is greyed out.  When I run rfkill list I can see that "phy0: Wireless LAN" has these settings:   Soft blocked: no Hard blocked: yes   On the ASUS Notebook I should supposedly be able to disable the hard block by using Fn+F2. However for some reason, this only toggles the soft block.  I've tried rfkill unblock all, but it doesn't have an effect.  I've also tried updating my BIOS, and restoring default settings, but that doesn't work either.  Can you think of anything else to try?  UPDATE:  I tried Mr chili555's suggestion of running this code:  echo "options asus_nb_wmi wapf=1" | sudo tee /etc/modprobe.d/asus_nb_wmi.conf"   It didn't solve my problem. Despite the file being created successfully in the correct directory (+ reboot), the driver "asus_nb_wmi" isn't listed when I run this code:  lsmod | grep -e ath9k -e asus   More information:  root@eiricur:~# rfkill list  0: phy0: Wireless LAN      Soft blocked: no      Hard blocked: yes  root@eiricur:~# lspci -nnk | grep -A2 0280  03:00.0 Network controller [0280]: Qualcomm Atheros AR9285 Wireless Network Adapter (PCI-Express) [168c:002b] (rev 01)      Subsystem: AzureWave AW-NE785 / AW-NE785H 802.11bgn Wireless Full or Half-size Mini PCIe Card [1a3b:1089]      Kernel driver in use: ath9k  root@eiricur:~# lsmod | grep -e ath9k -e asus  ath9k                  94208  0  ath9k_common           32768  1 ath9k  ath9k_hw              446464  2 ath9k_common,ath9k  ath                    32768  3 ath9k_common,ath9k,ath9k_hw  mac80211              626688  1 ath9k  cfg80211              540672  4 ath,ath9k_common,ath9k,mac80211  asus_laptop            32768  0  sparse_keymap          16384  1 asus_laptop  rfkill                 24576  6 cfg80211,asus_laptop,bluetooth  input_polldev          16384  1 asus_laptop  video                  36864  1 asus_laptop

The wifi on my asus x550ca laptop is not working. Ethernet works fine in ubuntu but wifi does not work. Wifi works just fine when I boot up windows 8.1 though. Is there any special driver I have to install?


So far I've got this. Is there a more efficient way?  if ls -1 $HOME/path/to/folder/* >/dev/null 2>&1 then         echo Directory is not empty. else         echo Directory is empty. fi

I want to test if a directory doesn't contain any files. If so, I will skip some processing.  I tried the following:  if [ ./* == "./*" ]; then     echo "No new file"     exit 1 fi   That gives the following error:  line 1: [: too many arguments   Is there a solution/alternative?


I usually quit my applications with the shortcut Command Q but it doesn't work for the Finder app. I can hide it with  Command  H but I can't quit it.  Any suggestion to solve this?

First time Mac user. I am confused by the fact that the finder application is always open. For example, when switching apps with Cmd+Tab, it is always there, even when there are no windows opened for the app. Cmd-tabbing to Finder with no windows/tabs opened for it has no effect (it seems to me it would more intuitive to open a new tab when this action is chosen).   Furthermore, there is no 'Close app' option when I right click the Finder icon in the dock. Am I misunderstanding something about the Finder app? Is it required for proper functioning of Mac OS? From what I see, Finder is just a file browser, which by no means should be forced to be open 100% of the time.


I am having a problem in pinpointing this issue, but here is the info:  Every once in a while, after some time, when I am watching streaming videos (Youtube, Udemy, Teachable, etc.) my laptop would freeze (as in it freezes and the audio keeps repeating the last 1 second). This also happened once when I had spotify open, but I think it was youtube, since I wasn't playing anything on spotify( that has been installed as snap, btw).  When this freeze happens, no matter how much time I wait, try to go for another TTY, nothing works, and I have to "Hard Reset" the machine.  I checked dmesg after reboot, see if I can find anything that helps, but didn't find anything (I am not sure what I am looking for).  I looked around to see if this would be a Firefox problem (latest version from ubuntu's repository), but couldn't find any similar problem.  For the record, this is my system info:  System: Ubuntu 16.04 x64 LTS with Gnome Shell v3.18.5 CPU: Intel(R) Celeron(R) CPU  N2820  @ 2.13GHz RAM: 4GB DDR3 Kernel: 4.4.0-119-generic   The laptop is not overheating, and this doesn't happen when I am listening to music/playing local videos, so I guess it is related to Firefox/wireless card.  Any help in pinpointing this issue will be appreciated. Also, if there's need of any additional info, please let me know.  P.S.: I know there will be the new ubuntu version (18.04) soon, but I really want to know why this is happening, so I don't make the same mistake.

My system freezes completely at random, frequent intervals. I started to have the same problem in Ubuntu 14.04 but after recent upgrade to 16.04 there is no improvement, in fact it seems worse.  When it happens, it's impossible to do anything. I've tried everything in this thread:  but nothing works, I have to hard reset. I have read all the system logs and journalctl but there is never any information that could help diagnose the problem.  This is a dual-boot system with Windows 10 and there's no problem there, so it's not defective hardware.  My laptop has an Intel Bay Trail processor (Pentium N3540)


Gauss made great progress in number theory in $\mathbb{Z}$ by working in $\mathbb{Z}[i]$ (or equivalently $\mathbb{Z}\left[\sqrt{-1}\right]$), so much so that we call $\mathbb{Z}[i]$ the Gaussian integers now. And it was even known to the old mathematicians that solutions to Pell's equation $x^2 - dy^2 = 1$ could be better analysed by working in $\mathbb{Z}\left[\sqrt{d}\right]$. But now in modern number theory we study much more the ring of integers $\mathcal{O}_{\mathbb{Q}\left[\sqrt{d}\right]}$. I find this confusing, as if we want to study Pell's equation with $d = 5$, we have that $\mathcal{O}_{\mathbb{Q}\left[\sqrt{5}\right]} = \mathbb{Z}\left[\frac{1 + \sqrt{5}}{2}\right]$ instead of $\mathbb{Z}\left[\sqrt{5}\right]$, which is not what we need. I was under the assumption that modern number theory usually tries to generalise its techniques but I don't see how this is a sensible generalisation and I don't see why the ring of integers is any more useful than just plain old $\mathbb{Z}\left[\sqrt{d}\right]$. So my question is: Why is the ring of integers defined the way it is?

A number is an "algebraic integer" if it is the root to a monic polynomial with integer coefficients. Artin says (Algebra, p. 411):  The concept of algebraic integer was one of the most important discoveries of number theory. It is not easy to explain quickly why it is the right definition to use, but roughly speaking, we can think of the leading coefficient of the primitive irreducible polynomials $f(x)$ as a "denominator." If $\alpha$ is the root of an integer polynomial $f(x)=dx^n+a_{n-1}x^{n-1}...$ then $d\alpha$ is an algebraic integer, because it is a root of the monic integer polynomial $x^n + a_{n-1}x^{n-1} + ... + d^{n-1}a_0$. Thus we can "clear the denominator" in any algebraic number by multiplying it with a suitable integer to get an algebraic integer.  When I first learned of algebraic integers, I looked online and saw some hints that maybe they were used to prove the Abel-Ruffini theorem. So I put off questioning their usage for a while; I now think I understand one proof of this theorem (the one at the end of Artin's Algebra) and it has nothing to do with algebraic integers (that I can tell). So basically: why is it important if a number is an algebraic integer? I think I understand what he's saying about the relationship between roots of integer polynomials and algebraic integers, but I fail to see why this is "one of the most important discoveries of number theory."


We use a WLAN access point for internet access. I need the internet access to be turned off at 10pm for my children, but still be able to use it for myself.  Can I have 2 passwords? Or does anyone know another way around this, please?

I have an internet connection that I'd like to be enabled only during the day. With multiple household internet devices, this would need to be something disabled at the level of the router.  I don't believe the router offers this sort of functionality, but I'm reasonably familiar with setting up web servers and the like, and I'm wondering if I can set up some sort of proxy server on the internet that the router must go through and have that proxy only active at certain times of day.  It's a bit vague I know, but is something like this even possible?  If not, are there other solutions to the problem?


I am using a GUI tool to upload data in my SQL Server 2016 database. The user being used for above task has been granted sysadmin permission I created a dedicated schema to store above data. This schema is owned and default to above said user. The issue is, when i upload data it stores in dbo schema instead of dedicated schema and i couldn't revoke sysadmin priv from this user.  Kindly let me know how to upload data to this dedicated schema without revoking sysadmin priv ?  Thanks

I have a login called user1. user1 can execute stored procedure [Test].[SP1]  EXEC [Test].[TestSortation] EXEC [TestSortation]   Both of the above commands work.  Now if I give the user1 the server role of sysadmin in addition to public. the later of the 2 statements above fails, and throws this error:     Could not find stored procedure 'TestSortation'.   I don't want to have to change every stored procedure in the database to have the schema name included with EXECute commands manually. Can someone explain to my why this is happening. Also, is there a way to get around this, automatically fix my stored procedures, have the schema default to [Test]?


I want to to my RaspBerry Pi 4 with an old small CPU fan. However it's a 12V fan. Is it possible to use 2 of the 5V pins on the board to total to 10V? Sorry if this is a dumb question. I haven't worked with electronics in a while.

I need to add two voltages together that share a common ground (power supply from computer). I tried using bridge rectifiers and Op-Amps.


I would like to check if a monitor is turned on so that I can switch the output to it.   xrandr --query   will show all connected displays no matter if they are turned on or not  xrandr --listmonitors   will only list the monitors that are displaying something.

Is there a way to check if a display is powered on in Linux? I tried xrandr and xset but neither of these two gives me any information about monitor power. Using xrandr I can identify if the vga cable is connected but not if power is connected. I need this because many of our lab systems keeps lying unused just because someone pulls out the power cable or something.


I'm starting a couple different websites, 1 is completely personal, and 1 is only going to be for a small group of people across the USA. I found a web hosting company that I like, but their only available server is in Europe.  My sites don't need to be indexed by any search engine.  I found  but not it didn't really answer my question. Would I be better finding a host that I didn't like as well in the USA, or using one that I liked in Europe?

I run a regional website in the US, where I'd say about 40% of our traffic and most of our returning visitors are located in 3 states.  In shopping around for a new dedicated server I'm wondering how important location is, and whether it makes the most sense choosing a provider that is closest.  I did find this post but it deals with the server being located in a different country.   How important is a servers location to the largest concentration of users?  Additionally, are there things to consider like making sure your servers datacenter is located next to a major hub?


I have a text like this:   text='gn="right" headers="gr-Y10 gr-eps i36">121.11<\\/td><\\/tr>
<\\/td><\\/tr>
'   I would like to get the value 121.11 using regex out of it. So I did this:  import re b=re.search('gr-Y10 gr-eps i36">(.*)<\\\\/td', text) b.group(1)   and I got this as output:  '121.11<\\/td><\\/tr>
'   How can I get what I am really looking for, which is 121.11 instead of the line above?

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 was wondering if there was a closed form for $\cos(\frac{\pi}5)$?  We have the following in closed form:  $$\cos(\frac{\pi}2)=0$$  $$\cos(\frac{\pi}3)=\frac12$$  $$\cos(\frac{\pi}4)=\frac{\sqrt{2}}2$$  $$\cos(\frac{\pi}6)=\frac{\sqrt{3}}2$$  $$\cos(\frac{\pi}8)=\frac{\sqrt{2+\sqrt{2}}}2$$  But perhaps a solution to $\cos(\frac{\pi}5)$?

The problem reads as follows:     Noting that $t=\frac{\pi}{5}$ satisfies $3t=\pi-2t$, find the exact value of    $$\cos(36^\circ)$$   it says that you may find useful the following identities: $$\cos^2 t+\sin^2 t = 1,\\ \sin 2t = 2\sin t\cos t,\\ \sin 3t = 3\sin t - 4\sin^3 t. $$  Do I have to do a system of linear equations in function of ..what? $t$? $\cos$?  Thanks in advance :)


I am making a music player app and when opening any song from files it comes like this Uri /external/audio/media/1162591  and when I try to convert this Uri with this code private String getRealPathFromURI(Uri contentUri) {     Cursor cursor = null;     try {         String[] proj = {MediaStore.Images.Media.DATA};         cursor = getContentResolver().query(contentUri, proj, null, null, null);         int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);         cursor.moveToFirst();         return cursor.getString(column_index);     } finally {         if (cursor != null) {             cursor.close();         }     } }  It returns error and this is the logcat 2021-06-07 22:58:47.612 6898-6898/com.yapps.ymusic E/AndroidRuntime: FATAL EXCEPTION: main Process: com.yapps.ymusic, PID: 6898 java.lang.RuntimeException: Failure delivering result ResultInfo{who=@android:requestPermissions:, request=1, result=-1, data=Intent { act=android.content.pm.action.REQUEST_PERMISSIONS (has extras) }} to activity {com.yapps.ymusic/com.yapps.ymusic.MainActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'int android.database.Cursor.getColumnIndexOrThrow(java.lang.String)' on a null object reference     at android.app.ActivityThread.deliverResults(ActivityThread.java:5041)     at android.app.ActivityThread.handleSendResult(ActivityThread.java:5084)     at android.app.ActivityThread.-wrap20(Unknown Source:0)     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2053)     at android.os.Handler.dispatchMessage(Handler.java:108)     at android.os.Looper.loop(Looper.java:166)     at android.app.ActivityThread.main(ActivityThread.java:7529)     at java.lang.reflect.Method.invoke(Native Method)     at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)  Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'int android.database.Cursor.getColumnIndexOrThrow(java.lang.String)' on a null object reference     at com.yapps.ymusic.MainActivity.getRealPathFromURI(MainActivity.java:752)     at com.yapps.ymusic.MainActivity.StringSound(MainActivity.java:740)     at com.yapps.ymusic.MainActivity.onRequestPermissionsResult(MainActivity.java:677)     at android.app.Activity.dispatchRequestPermissionsResult(Activity.java:7854)     at android.app.Activity.dispatchActivityResult(Activity.java:7705)

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?


It's commonly used in imaginary-time path integral that "analytic continuation" means replacing $t \rightarrow - i \tau$ or reparametrizing the theory in terms of imaginary time $\tau = i t$. For example, it's common practice to just replace the imaginary time $\tau \rightarrow i t$ to figure out the real time Green's function from the imaginary time Green's function. I've been having trouble connecting this with the definition from math. My understanding here is to find the analytic continuation of an analytic function in domain $V_1$ around $z_1$: $f(z) = \sum_k a_k (z- z_1)^k$, we need to find $f_2$ defined in another domain $V_2$, which overlaps with $V_1$. And if $f_1 = f_2$ in $V_1 \bigcap V_2 $, then $f_2$ is an analytic continuation of $f_1$ on $V_2$. How is the replacement justified from the definition in math? P.S. There is a very similar question  but I don't think the answer was satisfying to me. P.P.S QMechanic linked a post about , which is showing an integral along the real line is the same as the integral along imaginary axis. One can apply Cauchy theorem under the right conditions, but I thought "analytic continuation" by replacing arguments of $t$ is a strong statement: it's saying 1) there are no poles in the quadrants; 2) the contour integral connecting $t$ and $it$ are zero for all $t$. I suppose I could have missed some simple property about the Green's function, that might imply these two conditions?

In doing instanton problems or when connecting quantum field theory to statistical mechanics, I often see people trying the Wick rotation trick by defining an imaginary time $\tau\equiv it$. So, in this case, we should make sure that $\tau$ is imaginary, right? However, I often see places where people seem to handle $\tau$ as a real number, for example setting $\tau$ to $\pm\infty$. Moreover, I remember in one of my quantum mechanics classes, the professor said the Euclidean time $\tau$ was real. I am so confused and need some good explanations.


The phrase 'Head over heels' is quite often used when someone falls over:     He fell head over heels   But, in my mind it doesn't make much sense. If your head is over your heels (feet) then you're standing upright and not falling over at all.  So, where did the phrase come from ?  There is another, ruder version - 'Arse over tit' which actually does make sense.

Most people spend part of each day standing, and if they have normal anatomy their heads are over their heels in this position.  Even sitting or lying down, the head is higher than the heels (if not over the heels).  Yet the phrase "head over heels" is used in ways implying it is an unusual situation.  How did such usage come to be, and why does it persist?  Why is the more obvious "heels over head" not used?


I've implement people search in Search Center site collection. But I got problem when I try to view people profile.I've got . Sorry, something went wrong. user not found. Can anyone help me:)

I've setup MySites in SharePoint 2013 and created some test sites. Everything seems to be working well except on searching people. Using search center finds the person and the link's backslash is escaped.      http://mysiteshost/Person.aspx?accountname=DOMAIN%255CUsername   This link fails to load with a "User Not Found" error. However, changing to:      http://mysiteshost/Person.aspx?accountname=DOMAIN\Username    works perfectly.  Any ideas?


How can I bind to to an explicit interface indexer implementation?  Suppose we have two interfaces  public interface ITestCaseInterface1 {     string this[string index] { get; } }  public interface ITestCaseInterface2 {     string this[string index] { get; } }   a class implementing both  public class TestCaseClass : ITestCaseInterface1, ITestCaseInterface2 {     string ITestCaseInterface1.this[string index] => $"{index}-Interface1";      string ITestCaseInterface2.this[string index] => $"{index}-Interface2"; }   and a DataTemplate  <DataTemplate DataType="{x:Type local:TestCaseClass}">                 <TextBlock Text="**BINDING**"></TextBlock> </DataTemplate>   What I tried so far without any success  <TextBlock Text="{Binding (local:ITestCaseInterface1[abc])}" /> <TextBlock Text="{Binding (local:ITestCaseInterface1)[abc]}" /> <TextBlock Text="{Binding (local:ITestCaseInterface1.Item[abc])}" /> <TextBlock Text="{Binding (local:ITestCaseInterface1.Item)[abc]}" />   How should my Binding look like?  Thanks

Say I have an interface like this:  public interface ISomeInterface { ... }   I also have a couple of classes implementing this interface;  public class SomeClass : ISomeInterface { ... }   Now I have a WPF ListBox listing items of ISomeInterface, using a custom DataTemplate.  The databinding engine will apparently not (that I have been able to figure out) allow me to bind to interface properties - it sees that the object is a SomeClass object, and data only shows up if SomeClass should happen to have the bound property available as a non-interface property.   How can I tell the DataTemplate to act as if every object is an ISomeInterface, and not a SomeClass etc.?  Thanks!


(a) We filter out information that the brain deprioritizes without our knowing it. (b)We filter out information that the brain deprioritizes without us knowing it.  I came across the sentence (a) above, modified for clarification. I wonder it is possible to use "us," as in sentence (b), instead of "our," as in (a). If possible, is there any semantic difference between these two sentences? Could [my(her, their, etc.) + -ing form] and [me (her, them, etc.) + -ing form] in a sentence always be used interchangeably with little or no difference in meaning? Grammatically, is the phrase "our knowing it" in sentence (a) considered a present participle or gerund? I know both of the following sentences are just fine, with (c) a more formal tone. (c) Do you mind my smoking? (d) Do you mind me smoking? Generally, however, I have no idea what exactly is semantically different between "my + -ing form" and "me + -ing form," nor the underlying grammatical logic. Thanks in advance.

I have a problem analysing this sentence from the point of finite/nonfinite clauses, clause elements and their functions:     He does not want to destroy his parents' dream of him achieving a Cambridge degree.   I am especially interested in the: dream of him achieving a Cambridge degree.  I know that 'achieving a Cambridge degree' is a non-finite -ing participle clause. However what is its function? And what is the function of 'of him'? Is it a postmodification?


I live in a suburban town outside of Harrisburg, Pa. I know people who get swarmed by Pokemon where I live in Pokemon go. However, It is very difficult for me to find any. I can bike for 5 Kilometers and only find 2, maybe 3 on occasion. And the ones I am finding are low leveled ones. I do frequently have the White spinning pokeball loading on the side of my screen as well. My character is moving properly however on the map. Any help would be appreciated. I really want to enjoy this game.This is different from the other question because the other specific he lived in a low traffic area/rural. I live in a highly populated town. I also can specify that I dont see any when my friends find them right next to me.

I see pictures online of everyone having all these Pokémon to catch being everywhere around them, but it seems like I can only ever see one or two. I live in a rural area, but even walking miles through the farmland, it's rare to find any Pokémon.  Why is this? How can I find more Pokémon?


I can only get an install to "stick" if I use shred to zerofill my drive first. Otherwise, when I install ubuntu or lubuntu 12.04, I will get "grub rescue: out of disk".  With the aforementioned (completely default) install on top of a zerofilled drive, then rebooting after installing updates will tell me there is no operating system. I don't even get to grub.  Installing on top of the failed install, while choosing "erase ubuntu 12.04 and reinstall", I get the grub rescue: out of disk error.  The hard drive has been repeatedly tested and does not have any read or write errors.  I've used check disk for errors on the pen drive I'm installing from and it comes up clean as well.  The system is an inspiron 6000, with 1gb ram and a 250 gb hard drive. I'm typing this from a live cd on the same machine.  What gives?

I have a HP Compaq nx6310 notebook wth 4gb memory & a new 250gb hdd. After installing Ubuntu 12.04, i got an "out of disk" error & was unable to boot. I rebooted in live, instaled & ran Boot Repair then rebooted. Grub menu loaded fine, followed by "out of disk.....press any key to continue". I pressed a key & Ubuntu booted, a bit slow but still booted. So here are my questions: 1- Since Ubuntu DOES boot, should I just leave it alone? 2- If I need to fix this, HOW do I do it? 3- What causes this error?  $wolf@lpc-1:~$ df -h Filesystem      Size  Used Avail Use% Mounted on /dev/sda1       230G  9.1G  209G   5% / udev            1.6G   12K  1.6G   1% /dev tmpfs           655M  868K  654M   1% /run none            5.0M     0  5.0M   0% /run/lock none            1.6G  260K  1.6G   1% /run/shm wolf@lpc-1:~$


I'm using Blender for 4/5 weeks now, so, after learing the basics of modeling (i'm still not even decent), now i'm having some issues with Render Setup and Lights Setup, and i hope someone can help me out! :)  1. The Lightbulb  I've modeled a really simple dog-character for an upcoming work. Having a lightbulb for head, i need it to emit some glow/light. I need a result which looks like the FIG. 2 (lights are made with PS), while the one i'm having now in Cycles is kinda flat FIG. 1 What's the best way to achieve it?    2. Render Setup  Even if my scene is almost...empty (1 model, 2 lights) seems like my Pc is working really hard (and slowly) to manage it, both in 3d view and rendering session.  Windows 8 -  AMD Phenom II X4core 965 Processor   - NVIDIA GeForce GTX 560 Ti   -  8GB RAM  Not a beast, but still decent enough for a project like this, i suppose. (and i'm not forcing it, since render is still really noisy) Since i'm supposed to build a scenario and rig/animate character, having a 17/20 minute render time (for a frame) is really discouraging me :( I've attached the Blender file, to see how i've set the render.  What's wrong with it? Am I doing something wrong with modeling or scene general setup? How can i have to speed up the render? Any suggestion will be very appreciated! :>


Question  in triangle ABC there satisfies equation: $\cos A\cos B+\sin A\sin B\sin C=1$, determine possible values of C  What I have so far  I've noticed that the given equation looked similar to $\cos(A-B)$ which was $\cos A\cos B+\sin A\sin B$.   This I can extrapolate that $\cos(A-B)-\sin A\sin B+\sin A\sin B\sin C=1$  Thus $\cos(A-B)=1+\sin A\sin B+\sin A\sin B\sin C$  and when i factor out the common terms:  $\cos(A-B)=1+\sin A\sin B(1-\sin C)$  Right here I am not sure how to proceed and I got stuck

If $$\sin(a)\sin(b)\sin(c)+\cos(a)\cos(b)=1,$$;where abc are the angles of the triangle.! then find the value of $\sin(c)$. By trial and error put this triangle as right angled isosceles and got the answer..!! But i want a complete proof!


I have a script that searches for a string and replaces it via the sed command. If that string contains special characters, the script will escape them (except for the slash because it's my current delimiter for sed and the column because it marks the string on the bash line).  Here it goes:  raw_searchstring='SearchForThis'; raw_replacementstring='ReplaceWithThis';  #Escape special characters: quoted_searchstring=$(printf %s "$raw_searchstring" | sed 's/[][()\.^$?*+]/\\&/g'); quoted_replacementstring=$(printf %s "$raw_replacementstring" | sed 's/[][()\.^$?*+]/\\&/g');  find ./ -type f -exec sed -i -r "s/$quoted_searchstring/$quoted_replacementstring/" {} \;   I tested this on Ubuntu and it worked just fine.  However, I need to run the script on a AIX system. Since it does not support in-line editing with sed -i I tried the following, as suggested on a similar question here ():  find ./ -type f -exec sed -r 's/$quoted_searchstring/$quoted_replacementstring/' infile > tmp.$$ && mv tmp.$$ infile {} \;   This is where I get the error  find: missing argument to `-exec'   so I tried to pass more than one -exec statement to find with this line:  find /home/tobias/Desktop -type f -exec sed -r 's/$quoted_searchstring/$quoted_replacementstring/' infile > tmp.$$ {} \; -exec mv tmp.$$ infile {} \;   that doesn't work either:  sed: can't read infile: No such file or directory   I am not sure what I did wrong. Can you help me fix this line of code or point me in the right direction?

I'm writing shell scripts for my server, which is a shared hosting running FreeBSD. I also want to be able to test them locally, on my PC running Linux. Hence, I'm trying to write them in a portable way, but with sed I see no way to do that.  Part of my website uses generated static HTML files, and this sed line inserts correct DOCTYPE after each regeneration:  sed -i '1s/^/<!DOCTYPE html> \n/' ${file_name.html}   It works with GNU sed on Linux, but FreeBSD sed expects the first argument after -i option to be extension for backup copy. This is how it would look like:  sed -i '' '1s/^/<!DOCTYPE html> \n/' ${file_name.html}   However, GNU sed in turn expects the expression to follow immediately after -i. (It also requires fixes with newline handling, but that's already answered in )  Of course I can include this change in my server copy of the script, but that would mess i.e. my use of VCS for versioning. Is there a way to achieve this with sed in a fully portable way?


Let $\mathbb{F}_p$ be a field of prime characteristic $p>0$.The question is what we can say about the solvability of the equation $x^2+y^2=-1$ in $\mathbb{F}_p$ for every prime $p$. I have found out that there are $\frac{p-1}{2}$ different squares in the field $\mathbb{F}_p$. I was thinking about the circle of radius $kp-1$ has integer point for some $k$.

In an ordered field we have $x^2 \ge 0$, hence the equation $-1 = x^2 + y^2$ has no solution. But what about finite fields in general? What is the solutions set $$  -1 = x^2 + y^2 $$ of this equation?


I have the following sentence:     In order to read the remainder of this book, the reader is advised to familiarize themselves with the concepts contained within this Chapter.   I want to put:     In order to read the remainder of this book, the reader is advised to familiarize themself with the concepts contained within this Chapter.   In this very great article , it explains why you should use themself only in an informal context, and the sentence they gave supports this, however; In the sentence I have, it sounds plain wrong (as sometimes proper English tends to sound, admittedly), despite what they say. Should I still use themselves, because it is in a proper context, or am I able to use themself instead, despite its proper context?

We have  to a question about gender-neutral pronouns, in which he points to the "singular they" and its long history of use in English. (Note that he also advises against using it.) Example:     If someone wants to watch TV tonight, they'll have to do the dishes.   This avoids having to say "he or she" in mixed-gender situations. Okay, fine. I'm not going to get my panties in a bunch if people want to talk this way.  But it occurrs to me that "singular they"—infelicitous at the best of times—really falls apart when extended into the realm of reflexive pronouns:     If someone wants to watch TV tonight, they'll have to do the dishes all by themselves. [?]   That feels very wrong. The only alternative, if one paints oneself into that corner, is to flip it back to singular:     If someone wants to watch TV tonight, they'll have to do the dishes all by themself. [???]   That feels worse.  If I'm to state this as a question, I guess I would put it thus: How can use of a "singular they" truly be reconciled? Is it really as much of a linguistic dead end as it feels to me?


The following query returns NO data:    select * from ediImport  WHERE glnfact NOT IN (select GLN from Clients)   After some search, I found the data I want, this way:  select * from ediImport  WHERE glnfact NOT IN (select GLN from Clients WHERE gln is not null)   But I feel like the first query SHOULD return the information (and I think it WOULD return it in Access). So my questions:  - why is first query not working  - is there a better, more efficient way to do this ? I found EXISTS and ANY but I can't see any advantage over the old school way.      Note: I don't want to use a left join here since my REAL need is to perform an UPDATE:    UPDATE ediImport SET Status = 2  WHERE glnfact NOT IN (select GLN from Clients WHERE gln is not null)

This issue came up when I got different records counts for what I thought were identical queries one using a not in where constraint and the other a left join. The table in the not in constraint had one null value (bad data) which caused that query to return a count of 0 records. I sort of understand why but I could use some help fully grasping the concept.  To state it simply, why does query A return a result but B doesn't?  A: select 'true' where 3 in (1, 2, 3, null) B: select 'true' where 3 not in (1, 2, null)   This was on SQL Server 2005. I also found that calling set ansi_nulls off causes B to return a result.


I'm using 2x4 Gb sticks (1866 Mhz) (4 DDMI slots on motherboard, max 32 Gb). I accidentally bought a 8 Gb stick of the same type (instead of 2x4 Gb) . How should I set up this version of 16 Gb Rams for best performance? (I will buy another 8 gb stick to match it in the future).  Thank you in regards

I've heard that you always want the same size of RAM (2x1GB sticks) but does their placement matter? I have four slots on my motherboard but does it matter if the sticks are not adjacent?  This particular question involves the


I have begun reading Patrick Suppes' book Axiomatic Set Theory. The first sentence in chapter 1 reads: "Among the many branches of modern mathematics set theory occupies a unique place: with a few rare exceptions the entities which are studied and analyzed in mathematics may be regarded as certain particular sets or classes of objects."  What are these rare exceptions? What in mathematics cannot be described within set theory?

I often read that ZFC can formalize "most" of everyday mathematics, but I could never find an example which it cannot. The closest I got is differential geometry (DF), where some article mentions that the translation from concepts of DF into set theory would render it almost "meaningless", in the sense that any intuitions one could have would be lost in the translation. So, if I didn't misunderstand, at least in theory, the translation could be done, so that a future AI machine could prove theorems of differential geometry using set theory. On the other hand, the Stanford Encyclopedia of  Philosophy states that "all of mathematics can be reduced to a formal system of set theory"().   So, the questions are:    Is there any current area of mathematics that could be not formalized within set theory? If so, which ones? and  Is there any reason to think that every math of the future will be always formalizable in set theory? any references to read on the subject are welcomed!   Clarification: by set theory I am not restricting to ZFC, but to any flavor of it, including all additional axioms you want (about large cardinals or any kind)


I used \bibliographystyle{apacite} and gives me the following reference:      Herfindahl, O. (1950). Concentration in the u.s. steel industry [Unpublished doctoral dissertation, Columbia University].   In the reference, "u.s." should be capitalized . How can I capitalize "u.s"? I notice that \bibliographystyle{apacite} does not capitalize the words in a title of a journal that should be capitalized. There are cases where it capitalizes the wrong word. How to do deal with such issues?  In fact, it capitalizes a word after : in the title of an article.

Titles of articles I'm about to cite contain upper case letters and when using BibTeX it converts them to lower case ones. This happens only in the title and only the first letter conserves its case. For example, when I cite an article about HF, the reader won't know if it is about Hafnium (Hf) or fluorine acid (HF).  I know that I can fix it manually in the .bbl file but I would like to avoid it, or fix it automatically.


Similar to the question here, , I have a similar but different question.   I am an SG passport holder, which allows me to be in the UK for 6 months.   Question 1: If I leave UK and visit somewhere (i.e. France), does the 6 months reset when I return?  E.g. I leave UK on the 100th day. I travel to France for 7 days. When I return to UK, am I left with 80 days or it resets to 180 days?  Question 2:  Schengen area has a limit of 90 days per 180 days. Is there something similar in UK?   Thanks!

I am a US citizen and have recently visted the UK  with simply a passport which allowed me to vist for 6months I have heard rumors that I am obligated to stay in the US for a Equal amount of time that I have visited the UK before I am able to return, but I am struggling tour no any proof of this obligation .. Am I missing somthing or is it simply not true


I've had a quick look through the search results, and am not able to find a suitable answer.   My scenario is this - my mother in law in her 70s, is not all that keen on technology. She's also self-isolated thanks to Corona.   We're sending an iPad her way, that we can get 'set up' in advance... but what we really need to be able to do is remote-support it, because we can't go and see her in person.  To that end, I'm wondering what the best option would be for remote support. We have available an iPhone, a PC and an Android phone.   I'm currently contemplating something like teamviewer (the 'quick support' looks to allow screen viewing which would be a start), but if there's a free option out there that'd be better still.

I've been looking around and only found a couple of enterprise (price) level solutions for remote controlling an iPad/iPhone. Does anyone know of any cheap or free software out there that will allow me to control an IOS device from my PC/Mac?


Only moderators should be able to add status tags. However, it seems a normal user  to .  I have tried to reproduce this, but I wasn't able to do it as normal user or anonymous user.  The user seems to be an employee but it seems he is missing his diamond. He is able to make the tag change, but he still goes through review...

Have a look at  which was suggested by . He suggested  tag. I approved because I can see he is an SE employee. So I have two doubts:   Why doesn't he have some required privileges? (as he is suggesting instead of direct editing) If he doesn't have required privileges, how can a normal user suggest an edit for  tags?   Is there any special case here? Just curious to know.


I have a record set as below:  company_id      po_date     po_number       supplier_company_id  1             01/01/2017        1000          20 1             02/01/2017        1001          20 1             03/01/2017        1002          20 2             01/02/2017        1005          30 2             02/02/2017        1006          30 2             03/02/2017        1007          30   and I want to return the records for the latest dates per company_id  company_id      po_date     po_number       supplier_company_id  1              03/01/2017       1002        20 2              03/02/2017       1007        30

Table:   UserId, Value, Date.   I want to get the UserId, Value for the max(Date) for each UserId. That is, the Value for each UserId that has the latest date. Is there a way to do this simply in SQL? (Preferably Oracle)  Update: Apologies for any ambiguity: I need to get ALL the UserIds. But for each UserId, only that row where that user has the latest date.


I try to implement IEqualityComparer:  class AddressComparer : IEqualityComparer<Address> {     #region IEqualityComparer<Address> Members      public bool Equals(Address x, Address y)     {        return (x.CurrentBuildingNumber == y.CurrentBuildingNumber) && (x.CurrentBuildingLetter == y.CurrentBuildingLetter);     }      public int GetHashCode(Address obj)     {         return obj.StreetCode1 + obj.StreetCode2 + obj.BuildingNumber1 + obj.BuildingNumber2;     }      #endregion }   Here is Address class:  public class Address : IComparable {        public int StreetCode1   { get; set; }     public int BuildingNumber1 { get; set; }     public string BuildingLetter1 { get; set; }      public int StreetCode2 { get; set; }     public int BuildingNumber2 { get; set; }     public string BuildingLetter2 { get; set; }  }   The AddressComparer works perfect if properies StreetCode and BuildingNumber of the Address class are integers.  But what if I need to change the type of properies StreetCode and BuildingNumber in the Address class to string:  public class Address : IComparable {        public string StreetCode1 { get; set; }     public string BuildingNumber1 { get; set; }     public string BuildingLetter1 { get; set; }      public string StreetCode2 { get; set; }     public string BuildingNumber2 { get; set; }     public string BuildingLetter2 { get; set; }  }   Here is imlementation of the new AddressComparer:  class AddressComparer : IEqualityComparer<Address> {     #region IEqualityComparer<Address> Members      public bool Equals(Address x, Address y)     {        return String.Compare(x.CurrentBuildingNumber, y.CurrentBuildingNumber) && (x.CurrentBuildingLetter, y.CurrentBuildingLetter)     }      public int GetHashCode(Address obj)     {         //how to implement?     }      #endregion }   How do I implement GetHashCode method if my properies are strings?

In .NET, the  is used in a lot of places throughout the .NET base class libraries. Implementing it properly is especially important to find items quickly in a collection or when determining equality.  Is there a standard algorithm or best practice on how to implement GetHashCode for my custom classes so I don't degrade performance?


Let $n = pq$ where $p$ and $q$ are distinct, odd primes. Show that there exists $\alpha,\beta\in\mathbb{Z}^*_{n}$ such that $\alpha$ and $\beta$ are not elements in $(\mathbb{Z}^*_{n})^2$, and $\alpha\beta$ is not an element in $(\mathbb{Z}^*_{n})^2$.   Any help would be appreciated.

For $n=pq$, where p,q are distinct odd primes show that there exist $\alpha, \beta \in Z_n^*$ such that $\alpha, \beta \notin  (Z_n^*)^2$ and $\alpha \cdot \beta \notin   (Z_n^*)^2$. Here if we try to use Chinese Remainder theorem results then let : $$\alpha \equiv \alpha_p\mod p\,\,,\qquad\alpha \equiv \alpha_q\mod q$$ $$\beta \equiv \beta_p\mod p\,\,,\qquad\beta \equiv \beta_q\mod q$$ Since $\alpha \notin (Z_n^*)^2$, what can we say about $\alpha_p$ and $\alpha_q$? Do $\alpha_p \notin (Z_p^*)^2$ and $\alpha_q \notin (Z_q^*)^2$ also hold? Is there another approach to solve this problem?    PS: Couldn't insert "p,q are distinct primes" in title due length restriction.


public  class MyPositionClass {      public List<Position__c> pos;     public  void  updatePositionRecords() {         pos = [select id, Name, Apex__c, Close_Date__c, Days_Open__c, Educational_Requirements__c,                Functional_Area__c, Hire_By__c, Job_Description__c, Job_Level__c, Location__c, Max_Pay__c, Min_Pay__c,                Open_Date__c, Responsibilities__c, Travel_Required__c , Skills_Required__c   from Position__c  where RecordTypeid = '0126F0000016zuu'];         for (Position__c p : pos) {             if (p.Name == 'Salesforce Busyness Anylyst') {                 p.Close_Date__c = Date.Today().addDays(30);                 p.Hire_By__c = Date.Today().addDays(90);                 if (p.Travel_Required__c == false) {                     p.Travel_Required__c = true;                 }                 if (p.Java__c == false) {                     p.Java__c = true;                 }             }             update pos;         }     } }

How do I write a unit-test / test class for a trigger?  What are my options?   Inline with the trigger?  New Class?


const obj1 = { food: 'pizza', car: 'ford' }; let obj2 = obj1;     In the above example, I want to do deep copy of obj1 in obj2 .

What is the most efficient way to clone a JavaScript object? I've seen obj = eval(uneval(o)); being used, but . I've done things like obj = JSON.parse(JSON.stringify(o)); but question the efficiency.  I've also seen recursive copying functions with various flaws.  I'm surprised no canonical solution exists.


I am using ubuntu 16.04, is there a way to lock a IP address for 10 minutes after 3 Failed Login attempts to avoid brute forcing.  By did serching internet, I found a method can lock root use for temporary, by add this content in /etc/pam.d/common-auth file and restart the SSH service.  auth    required           pam_tally2.so onerr=fail deny=3 unlock_time=600 audit  $ sudo systemctl restart sshd   but it doesn't work. Is there a way to lock a IP 10min atfer over 3 Failed Login attempts?

I'd like to see if somebody has been trying to log-in by brute-force into my Ubuntu 12.04 server over SSH. How can I see if such activities have been taking place?


I've always been told you can't reuse marinade, so I always throw it out. But this evening, I marinated chicken, and then I took the chicken out (this was around ten minutes ago). Can I put a piece of fish in? It hasn't been sitting around, it hasn't been out of the fridge, and I haven't let it sit at all. Or am I still in danger?

I marinated chicken a couple weeks ago, and stored the marinade afterwards in a jar. Can it be reused, or is that dangerous? I've been told conflicting stories here. The marinade is mostly teriyaki if that makes a difference.   Intended use of used marinade: Marinate chicken which will then be cooked in the oven. It will not be used with anything that won't be cooked (like a sauce).


I want to set some data in array from objects, here is class A, it cause an NullPointerException. Why? how to solve this? what is the problem with my initializing?  class A {      int a;      public void setA(int a) {         this.a = a;     }  public class ObjArry { public static void main(String[] args) {      A[] ObjectArray = new A[5];      ObjectArray[0].setA(10); //Exception occurs in this line     ObjectArray[1].setA(9);     ObjectArray[2].setA(8);     ObjectArray[3].setA(7);     ObjectArray[4].setA(6); }

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 currently hold Schengen visa type C multiple entries valid for one year (from 10 December 2014 - 09 December 2015). So far I have two entries: 18 December 2014 - 11 January 2015 (25 days) and 25 March 2015 - 21 April 2015 (28 days). The total stay is now 53 days. I believe the half year (180 days) for my visa is at 15 June 2015. Now, I planned to stay in Germany from the 26th of May - 6th of September. That would make 104 days. However, it is an overlap between two half year as my first half year ends on the 15th of June. My question is, is it possible to combine the stays from two half year allowance together? Or is it that I must stay in EU zone for only 90 days with or without the overlap?

I have searched the web a lot and could not find an answer that fits my situation. Here are two links that are quite contradictory:       My situation:  I've visited Portugal in December 2012 for 29 days on a Schengen visa valid from December 1st, 2012 to February 1st, 2013 for research purposes (I am a Ph.D. student). I want to visit Sweden from February 10th, 2013 to May 10th, 2013 (89 days). I have applied for a Schengen visa again (for research). How will the 90/180 rule work in my situation?


I was creating a project which include the micro controller(ATmega328) and the 5VDC motor pump. so i made the circuit shown. motor is actuated by relay. the moment motor is 'ON' the micro controller gets reset(brownout). How do i modify the circuit to have a better performance. and is there any way that i can isolate the power supplies to controller and motor for same DC jack.

I've made a circuit to run 5V DC motor via ATmega328p  micro controller GPIO as shown below.whenever there is a connection to 5V DC motor, and if it tries to actuate the motor, micro controller will get reset.If there is no motor connection relay will get actuated properly. power supply circuit is also provided. please let me know how to resolve this.


I meet a error when I cleaned the cache or I run an update. It blocks my website, do you have a solution ? thank you

When I am creating a user for my Drupal in cPanel, it asks me to check all privileges. What privileges should be enabled, to make Drupal work correctly?  Currently, my user has all privileges except Drop permission.


I have two GTX 1080 and for a while when i press F12 blender rendered everything with 2 tiles. Right now no matter what i do there is only one render tile. In system tab in user preferences i can ether select both GPUs or none, does anyone know a solution to this. BTW it is not hardware

I am using Blender 2.77 and an R7 250 GPU on Windows.  Compute Device >> OpenCL (Oland).  OpenSubdiv >> (Tested with all).  Device >> GPU Compute.


What force other than gravity acts on objects in Earth orbit?  Without such force, continued orbit would be impossible, as the object would be drawn to the Earth.

Why doesn't the Moon fall onto the Earth? For that matter, why doesn't anything rotating a larger body ever fall onto the larger body?


I was reading the proof of the Portmanteau Theorem, when this statement was made:  $\int{fdP} = \int_{0}^{supf}{P\{{f\geq t\}}dt}$  Here the P is a probability measure on a metric space, and $f\ge0$ is a real-valued  continuous bounded function on the same space. Now I am familiar with measure theory and intuitively this makes sense to me. But for some reason I cannot justify it on paper. Any help would be appreciated as to why this is so.

I've read the proof for why $\int_0^\infty P(X >x)dx=E[X]$ for nonnegative random variables (located ) and understand its mechanics, but I'm having trouble understanding the intuition behind this formula or why it should be the case at all. Does anyone have any insight on this? I bet I'm missing something obvious.


This is the dialogue which I heard in a TV show:     The father asks: I heard your mission failed, Ranmaru.      Ranmaru: Yes, it did fail.   Why doesn't he say yes, it failed?

What is the rule and meaning of does in the following sentence (I think the appear omitted by it but if I am wrong please correct the title and tag):     The Moon illusion is an optical illusion which causes the Moon to appear larger near the    horizon than it does higher up in the sky. ()   MORE EXAMPLES   Sound travels faster in liquids and non-porous solids than it does in air (). This makes it possible for the Sun to rotate faster at its equator (about 25 days) than it does at more extreme latitudes (about 35 days near its poles) (). The Sun appears larger at sunrise than it does while higher in the sky, in a manner similar to the moon illusion ().


I have the following method which expects an object with a parameterized class. Kindly help me find the class of T. For example, i have put a return of JsonObject.class.  private static <T> Class<T> getType(me.yoctopus.util.Response<HttpResponse<T>, JSONException> response) {     /*     Type type = ((ParameterizedType) response             .getClass()             .getGenericSuperclass()).getActualTypeArguments()[0];     Type httResponse = ((ParameterizedType) type             .getClass()             .getGenericSuperclass()).getActualTypeArguments()[0];    return (Class<T>) httResponse;*/    return (Class<T>) JSONObject.class;   }   I need to determine and return the class T

I read about Java's type erasure .  When does type erasure occur? At compile time or runtime? When the class is loaded? When the class is instantiated?  A lot of sites (including the official tutorial mentioned above) say type erasure occurs at compile time. If the type information is completely removed at compile time, how does the JDK check type compatibility when a method using generics is invoked with no type information or wrong type information?  Consider the following example: Say class A has a method, empty(Box<? extends Number> b). We compile A.java and get the class file A.class.  public class A {     public static void empty(Box<? extends Number> b) {} }     public class Box<T> {}   Now we create another class B which invokes the method empty with a non-parameterized argument (raw type): empty(new Box()). If we compile B.java with A.class in the classpath, javac is smart enough to raise a warning. So A.class has some type information stored in it.  public class B {     public static void invoke() {         // java: unchecked method invocation:         //  method empty in class A is applied to given types         //  required: Box<? extends java.lang.Number>         //  found:    Box         // java: unchecked conversion         //  required: Box<? extends java.lang.Number>         //  found:    Box         A.empty(new Box());     } }   My guess would be that type erasure occurs when the class is loaded, but it is just a guess. So when does it happen?


I was taught in my high school that a noun can be a person, place, animal or a thing? The word "benchmark" does not qualify to be any one of them yet it is considered as a noun  Can someone please explain me how?

I'm having difficulty determining if certain nouns are considered places or things. For example, I'm unsure if 'a park' is a place or a thing. More generally, with the standard definition of a noun as a person, place, thing, or idea, how does one determine the difference between a place, thing, idea, etc. Another example could be 'heaven', is this a place or an idea? I'd greatly appreciate any help. Thank you.


I have rendered and saved as pngs. I then try to save in the output area as any of the options, but they are always blender file that only open in blender, not avi,mpeg or any other. Using 2.8. Any ideas? Is there a save key or option other than this?

Yesterday I was working on a simple animation, an animated logo.   Here is an image of the progress:    I already have the animation working and everything is okay with the project, but I can't figure out how I can render the animation and turn it into an AVI format video.  How do I render an animation in Blender?


Can someone please show me how to disable multiple simultaneous ssh sessions for an account on an Ubuntu 10.04 server. The setup currently in place is that every account has ssh access to the server.  The response given on the other question basically stated or showed how to  deny users or allow the user to access the server via ssh.  In the setup  I have got, all users have to have ssh access, but none of them are to have duplicate ssh sessions running at the same time from a Remote Desktop.

May someone please show me how I would restrict accounts/people logging into an ubuntu 10.04 server by SSH to a single active session at a time for each account that logs into the server.  Regards


When I create a new document, this option is available, but how to disable it, when the document is already created?   I can select shapes and disable it via the transform panel but not for newly created shapes. When selecting symbol this option is greyed out, Illustrator realigns the paths anyway.

I am working in Illustrator (15.0.2 (CS5) or 16.0.0 (CS6)) and when I try to move objects small distances, they snap to the nearest two pixels on some invisible grid. I can't find anything in the preferences. Here are some screen shots:


'What reading does is encourage comprehension and our ability to focus.'  As far as I'm concerned there's nothing wrong with this sentence. However, I'm aware that one could add 'to' before encourage. I would like to know whether any prescriptivists would say it should include 'to' or whether as a matter of style in formal English it would be better.   Thanks for any ideas on this.

"What I want to do is read this book."   Is it correct? Or, can I say:  "What I want to do is to read this book." "What I want to do is reading this book."  Are all of the three sentences correct?


I've been having a few issues with Ubuntu Software Center and need to do a complete reinstall of it. I tried "sudo apt-get purge software-center" but that said it would remove the Ubuntu desktp. So how can I completely remove it (config files and everything) then reinstall it?  Thanks!

Since migrating to a true install and upgrading to 12.04 I have had several problems that seem to relate to the Ubuntu Software Center. Hanging at applying changes and blank screen on screen lock only when it is running, for instance.  My question is: Can I safely uninstall and reinstall Ubuntu Software Center and could this possibly fix those problems or are they just bugs I have to wait for updates for?


Recently I got the following strange situation:  I accidentally lookup at a user's reputation and realized he has lost over 670 reputation on account removal. More suspicious is that he gained between 19 Jul and 27 Jul 80-120 reputation per day. That gives him over 1000 reputation in less than 10 days. In last 2 months he gained only 500 reputation. Moreover: this user has only 14 answers and questions with 9 upvotes in last one month. The upvotes was done on his previous questions.   Primary I was about asking mostly about tools that were able to detect such users. This part of my question was answered by @ChrisF and it was most adequate to my thoughts.  Now I realized no one answered to my second question part (maby I didn't made it clear): What an ordinary user can do in such situation. If any ordinary user have a any option to react in such situation? User can in some way know something more than machine and might help moderators to detect such situations.   For now the answer is: nothing. And I don't think flagging his post is an option.

A recent post on the Stack Overflow blog () states that the Stack Overflow team has implemented a voter fraud detection mechanism.  I look at the user board and noticed at least one user took a major hit as a result.  I'd like to know how it works.  No, not so that I can better circumvent it, but I'd just like to know that it is fair.


Let $f$ be a Riemann-integrable function on a closed interval $[a,b] \subset \mathbb{R}$. Let g be a function on $\mathbb{R}$. What conditions must g satisfy so that $g \circ f$ is also Riemann-integrable ? Thank you!

Suppose $f,g$ are two Riemann  Integrable functions .Is it true that $f\circ g$ is also Riemann  Integrable?  Trying this for a long time but not getting the answer


float x, y, z;     x = 0.1;     y = 0.2;     z = 0.3;     if (x + y == z)         cout << "True" << endl;     else         cout << "False" << endl;   I read a question that says 0.1 + 0.2 == 0.3 -> false, when I changed it into variables. It caused true. Why this happens?

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


While I'm fairly aware of the fact that floating-point calculations suffer sometimes from accuracy issues, I'm not aware of the scientific reason behind it. To be precise, I'm not aware why some apparent straightforward roundings sometimes fail to be executed correctly.  behave weird enough which makes me wonder whether a fair explanation exists:  alert(0.57 * 10000); // this is supposed to be 5700 alert(10 / 3); // this is supposed to be 3.33333333 (why the 5 at the end) alert(2.34 / 100); // this is supposed to be 0.0234 (why the 7 at the end)    popular article discusses floating points in details. I'm going to quote from it the following paragraph which looks like an explanation to my question. However, I was not able to understand what the paragraph wants to say:     Since rounding error is inherent in floating-point computation, it is important to have a way to measure this error. Consider the floating-point format with  = 10 and p = 3, which will be used throughout this section. If the result of a floating-point computation is 3.12 × 10-2, and the answer when computed to infinite precision is .0314, it is clear that this is in error by 2 units in the last place. Similarly, if the real number .0314159 is represented as 3.14 × 10-2, then it is in error by .159 units in the last place. In general, if the floating-point number d.d...d × e is used to represent z, then it is in error by d.d...d - (z/e)p-1 units in the last place.4, 5 The term ulps will be used as shorthand for "units in the last place." If the result of a calculation is the floating-point number nearest to the correct result, it still might be in error by as much as .5 ulp. Another way to measure the difference between a floating-point number and the real number it is approximating is relative error, which is simply the difference between the two numbers divided by the real number. For example the relative error committed when approximating 3.14159 by 3.14 × 100 is .00159/3.14159 - .0005.   In short, while the regular Windows calculator computes everything correctly, why can't JavaScript engines behave the same way?


I have just awarded my first bounty in stackoverflow and got the bronze "Benefactor" badge, but I somehow didn't got notified about this in my recent achievements dropdown. It used to do that with the other badges. That is how it looks for me, no more badge earned notice:    In fact I noticed the earning of the badge only because the bronze badge counter increased  For the case you say      "It is not a bug, we removed it"   I want this back :-) I think it is actually useful to see what badge has just been earned.

Yesterday, I have received two : Revival, and Self-Learner. However I was only notified of the Revival badge, because apparently the Self-Learner badge is not considered "".  What badges have their notification suppressed if the user has a 200-rep account somewhere on the Stack Exchange network, i.e. they won't trigger a new item in our achievements dialog?


I'm taking Andrew Ng's Machine Learning Course. In the lesson on classification algorithms, he presents the logit function ($\frac{1}{1+e^{-x}}$) and the way it converts parameterized functions to probabilities. He marks the "decision boundary" at .5, noting that the logit function cross .5 at $x=0$. If the value of the logistic regression function is .5 or greater, the result is given as 1. If it's less than .5, it's given as 0.  This sounds arbitrary. In real-world applications, is it common to adjust the decision boundary, or disregard the boundary and list only the probabilities?    Scenario 1 Adjusting the decision boundary: In the logit function, when x is -.3, y is .4256. Because y is less than .5, the predicted value is 0. If the lump in my patient's breast has a 42.56% probability of being malignant, I don't want that rounded down to 0%.  I would adjust the decision boundary from .5 to maybe .01. 1% or less probability is the threshold where I'd tell my patient their lump is nothing to worry about. Scenario 2 Removing the decision boundary: My team of social workers helps teens in my city. My classification parameters predict that 15% of the teen population is at high risk of committing a crime. That is, it predicts a positive result for 15% of P. My team is small, however, and can only reach 3% of the teen population.   Knowing that the 15% prediction includes teens at 51% probability along with teens at 99% probability, I disregard the binary predictions entirely and order teens based on their probability, thus reaching the most at-risk teens first.   Are these scenarios—where you adjust decision boundaries and/or list probabilities alone—common in real-world usage?

I have a question regarding classification in general. Let $f$ be a classifier, which outputs a set of probabilities given some data D. Normally, one would say: well, if $P(c|D) > 0.5$, we will assign a class 1, otherwise 0 (let this be a binary classification).   My question is, what if I find out, that if I classify the class as 1 also when the probabilities are larger than, for instance 0.2, and the classifier performs better. Is it legitimate to then use this new threshold when doing classification?  I would interpret the necessity for lower classification bound in the context of the data emitting a smaller signal; yet still significant for the classification problem.  I realize this is one way to do it. However, if this is not correct thinking of reducing the threshold, what would be some data transformations, which emphasize individual features in a similar manner, so that the threshold can remain at 0.5?


Why is there no space between the \x number and the text in my tikz nodes? There is a space in the final one in which I manually inputted a number instead of using a forloop. That's what I'd like the rest of them to look like.  \documentclass{article} \usepackage{tikz}  \begin{document}  \tikz { \draw[gray, very thin, opacity=0.2] (0,0) grid (6,13); \foreach \x in {0,...,5}  \node[right, rotate=90] at (\x,2) {\x I want a space between this text and the number before it!}; \node[right, rotate=90] at (6,2) {6 The space should look like this one!}; }  \end{document}    EDIT: Regarding the duplicate things, I assumed that the problem had something to do with being inside of a tikz or node environment, so I thought it was different from the other threads that mentioned spacing.

With a macro such as:  \def\naive{na\"{\i}ve}   I find that the space which I would hope to follow it, is absent. So, with  the \naive approach   I get     the naïveapproach   in the output. How do I bring back the space?


There are many posts here about how to boot into Windows with Ubuntu installed, can't find any about my specific scenario...  I have a ProLiant server running Ubuntu, and it's useful sometimes to be able to test things on an Ubuntu desktop, so I installed it onto my laptop as a "secondary" operating system. I only use it once a week or so, while I use Windows on the machine daily.  I'd like to boot by default into Windows, and have an option at startup to boot into Ubuntu, currently it's the other way around. I believe I have to use GRUB for this, but am not sure. Can anyone advise how I can go about this? Also, I can't reformat the machine as it's a factory installation and I don't have the Windows license key sticker. I'm waiting for Windows 10 and will install that as soon as it's available, at that point I may have the recovery options and such.  If it helps, I'm running Windows 8.1 and the latest LTS of Ubuntu (well, it was the latest 2 months ago when I bought the laptop).  Thanks in advance

I have both Windows 7 and Ubuntu installed on a shared machine. Because a lot of the non-developers use Windows, I'd like to change the boot order to make it easier for them.  Currently the boot order looks like the following:   Ubuntu 11.10 kernelgeneric *86 Ubuntu 11.10 kernelgeneric *86 (safe boot)  Memory test Memory test Windows 7 on /dev/sda6   How do I change the default order so that Windows 7 is at the top of the list?   Windows 7 on /dev/sda6 Ubuntu 11.10 kernelgeneric *86 Ubuntu 11.10 kernelgeneric *86 (safe boot)  Memory test Memory test


I'm going through a transition from Java to C++ and am trying to write a simple program.  There's a superclass Animal with the following inteface:  class Animal { public:     Animal(int a, std::string n);      bool operator==(Animal a); private:     int age;     std::string name; };   And it's subclass Dog:  class Dog : public Animal { public:     Dog(int a, std::string n, double w);      bool operator==(Dog d); private:     double weight;  };   My question is in regards to the Dog's operator== method, which compares 2 dogs.   Animal's operator== is below.  bool Animal::operator==(Animal a) //overriding of operator == { return (age==a.age) && (name==a.name); }   Now I want to write the Dog's version using Animal's method.  Like I'd do in Java:  boolean equals(Dog d){     return (super.equals(d)) && (this.name==d.name);  }   What I need is the c++ equivalent of (super.equals(d)) . If it was a method with a normal name it would be easy(Animal::equals(d)), but I don't know how to do it for operator==, which has a diferent syntax.

How do I call the parent function from a derived class using C++? For example, I have a class called parent, and a class called child which is derived from parent. Within  each class there is a print function.  In the definition of the child's print function I would like to make a call to the parents print function.  How would I go about doing this?


mapping an ability score to a modifier covers Ability Scores from 1 to 30.   established that it is indeed possible to attain an Ability Score of 1 due to effects lowering a character score below its nominal value.  This question wishes to explore the other end of the spectrum:  Is it possible for a character to attain a Strength Score of 30?     established that 30 is the absolute cap: there is no way to go over 30. It is mentioned that monsters and gods could have an Ability Score of 30, but not that a character could.

Can I increase an ability score over 30 with an item such as a Manual of Bodily Health?     [After reading] this book... your Constitution score increases by 2, as does your maximum for that score.


I tried several solutions to disable completely the notification center in Yosemite. For example, see  or .  These solutions disable the notification panel, but, in Yosemite, the notification icon of the menu bar is still there.  How can I remove the menu bar icon ?  I know the bartender software can do that but I am looking for a solution which does not require addind another app.  EDIT:   I have already tried to remove NotificationCenter.app in /System/Library/CoreServices. I also tried the following command:  launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist; killall NotificationCenter   These two techniques remove the notifications but do not remove the icon.

What is this icon   in OS X menu bar and how do you remove it?


Or at least have maybe the ability to set some other answers as assisted answer. I find myself finding an acceptable answer unusable while other answers underneath it might be more suitable. Would it be safe to say that the accepted answer should only make sense to the asker whether or not the question is important to others?

Often more than one person contributes to the community coming up with the final accepted answer to a question. However, it is only possible to accept a single answer. Restricting to one final answer does make sense for the sake of referencing that answer later, but in many cases that answer is the product of the input from several individuals. I would like to be able to decide how much of a bounty goes to different users, or some other mechanism to recognize the contribution of multiple users. Of course I could always upvote their previous answers, but this is really incorrect if their previous answers aren't the complete, final answer I've accepted.  What think you metaSOrs?


While I'm trying to repair grub using a live cd when I use sudo command it asks for password But there is no password and if just hit enters it shows please try again Is there any default password ?

When I boot Ubuntu 10.04.3 from a live CD, it asks me to enter a username and password. I have not booted before, and I haven't created an account.


I got the new Titan X Pascal GPU today installed it, and I am in an infinite login loop. Do I need to install drivers somehow? I have a 4k screen and the resolution it is showing is very low, I think 1024 x 780. Has this happened to anyone else and do you have any ideas?  I also have been trying to install the drivers in Windows, and I have been unable to do so.

I just ordered the Nvidia GTX card. I have a dilemma, though. Should I keep using the driver which is available in "additional drivers" in Ubuntu, or should I install the driver from the Nvidia site?  So which driver is the best for me?


I noticed on my server that when I type in any command in the server console that it makes a message that all the players can see. Is there a way to make it so that players can't see those messages?

I have a realm with a few of my friends and i want to play the creeper primed sound at him but i am afraid he will see the command and ignore it  Im using: /playsound minecraft:entity.creeper.primed block  Version: 1.14.2


According to , it falls into T-canon. But following source notes lead to dead links. I have been told by some that it is not canon, and others say it is. Can anyone provide current sources that show it either is or is not canon?

For all types of derivative works, namely:   Movies Novels Comic books Other written works (including RPG materials) Cartoons Video games Derivative movies (such as the infamous Ewok movies and even more infamous )   According to what rules does something become "canon" and who is responsible for the evaluation of a published work?