The book I'm reading casually mention that $\mathbb{Z}[\sqrt{5}]$ isn't integrally closed without explaining why.  Could someone show me why this is the case?

I was recently reading about integral ring extensions. One of the first examples given is that $\mathbb{Z}$ is integrally closed in its quotient field $\mathbb{Q}$. Another is that $\mathbb{Z}[\sqrt{5}]$ is not integrally closed in $\mathbb{Q}(\sqrt{5})$ since for example $(1+\sqrt{5})/2\in\mathbb{Q}[\sqrt{5}]$ is integral over $\mathbb{Z}$ as a root of $X^2-X-1$, but $(1+\sqrt{5})/2\notin\mathbb{Z}[\sqrt{5}]$.     Now I'm  curious, can we find what are all integers $n$ such that $\mathbb{Z}[\sqrt{n}]$ is integrally closed (equal to its integral closure in its quotient field)?   One thing I do know is that unique factorization domains are integrally closed, so I think rings like $\mathbb{Z}[\sqrt{-1}]$, $\mathbb{Z}[\sqrt{-2}]$, $\mathbb{Z}[\sqrt{2}]$ and $\mathbb{Z}[\sqrt{3}]$ are integrally closed, as they are Euclidean domains, and thus are UFDs. But can we say what all integers $n$ are such that $\mathbb{Z}[\sqrt{n}]$ is integrally closed? Thanks!


I would like to have a sense of the number of distinct subgroups (that is, isomorphic subgroups are counted multiple times) the symmetric group $S_n$ has as $n$ goes to infinity. I suspect nailing down the exact number is harder than understanding the general size. Can someone help me understand this?

Is there an efficient way to enumerate the unique subgroups of the symmetric group? Naïvely, for the symmetric group $S_n$ of order $\left | S_n \right | = n!$, there are $2^{n!}$ subsets of the group members that could potentially form a subgroup. In addition, many of these subgroups are going to be isomorphic to each other. I feel that the question has an easy answer in terms of the conjugacy classes, but I don't see how. If the answer generalizes to all finite groups, please elaborate!


How to ask further clarification, or to point out that the answer shown, even if once correct, is not correct anymore? I can’t comment as I don’t have 50 reputation.

Users with less than 50 reputation points cannot write comments on questions and answers that they don't own.  Why does this limit exist? But I want to contribute now. What should I do instead? But I can't write a good answer without more information! Shouldn't I be allowed to post comments if I have reputation on a different site? But I saw a new user posting a comment! How did they do it? Why do I need 50 reputation to comment on my own post?   See also:    in the Help Center


This morning I updated my windows 10 with   • Feature update to Windows 10 Enterprise, version 1703.  After that my policy that enables long paths stopped working ( I guess? ). I see it as enabled but when I try to compile some stuff that have long path tree my compile fails.   When I pull the files out from the long tree closer to the root it works.  I reverted my windows update to the previous version and now everything works as usual.

For some time, Microsoft has supported an option to remove the limit of 260 symbols for NTFS file name length.  The web is full of articles, describing what should be done.   Hit the Windows key, type gpedit.msc and press Enter. Navigate to Local Computer Policy > Computer Configuration > Administrative Templates > System > Filesystem > NTFS. Double click the Enable NTFS long paths option and enable it.   However, I don't have such option. Please see the screenshot below:    Am I missing some Windows update, or is it something else?


Let $X$ be a locally compact Haussdorf space, each singleton of which is the intersection of countably many open sets.   Show that X is first countable.

Given a compact Hausdorff space $X$, if $a \in X$ is a $G_\delta$ singleton (i.e., $\{ a \}$ is a $G_\delta$ set), then there is a countable local base at $a$.   The point $a$ can be written as countable intersection of open sets let's call $U_{n}$.  How can I use the compactness? What is the next step for proof? Could you give me hint please?


I noticed that the System process has a high CPU usage (specifically, around 100% of 1 core). Following , I opened the properties of System in  and see that the ntoskrnl.exe!KeReleaseInStackQueuedSpinLock+0x1e0 is the one using most of the CPU. What could the issue should be?  I use Windows 7 SP1 x64 Ultimate.

I have noticed that from some time my system is freezing and its probably caused by the high CPU usage which is caused by the system process.  All applications I'm running is the Skype, TeamSpeak and Chrome so it definitely shouldnt eat that amount of CPU.  You can see the problem itself and running processes in the screenshot below:    Sometimes CPU usage is reaching 90%, but the average usage is like 40-65%.  My PC parameters:   Windows 8 (customer preview) Intel Core i3 - 2350M 8 GB RAM   I'd appreciate any help attempt! Regards.  --UPDATE--  As the user below posted a great answer, I have noticed that the process that is eating the most CPU in the system is called Arthurx.sys, simple google tells that it's a TPLink driver (an wifi adapter, I have bought like 2 weeks ago!) drivers has been installed from the Windows MSDN, but also tried to install the drivers from the attached CD, but it doesn't help. From the system start, it is using like 5% of the CPU only, but after 2-4 hours of working it is growing up and reaching 40-60% of the CPU usage.  Device name: TPLink WN722N


I'm new to Unity. I've just installed Ubuntu Desktop LTS 14.04.  In the top-left corner there's an Ubuntu icon, when I click on it it pops up a search input box saying:     Search your computer and online resources   I'd like to remove online resources. At the right-hand side I noticed a Filter results dropdown, where I removed all the unwanted sources and left only Applications. But when I enter the letters "ter" in the search box (for "terminal"), the categories I previously unselected pop back, and I see results like News, More suggestions (shopping), Reference and many others. (See the screenshot below.)   How can I opt out of searching in online resources? What's name of this search thingy? What's the keyboard shortcut to bring up this search box easily?

How can I disable Amazon search results in the Dash?


I run below query to fetch data from a Oracle DB - SELECT T1.Col1, T2.Col1 AS Tab2_Col1      FROM Tab1 AS T1           INNER JOIN Tab2 AS T2                  ON Tab1.Col3 = Tab2.Col4  With that, I am getting below error - ORA-00933: SQL command not properly ended 00933. 00000 -  "SQL command not properly ended" *Cause:     *Action: Error at Line: 2 Column: 32  Can someone help me to understand why my query is failing? Thanks for your time

I'm quite new to querying databases, I've only been doing it for about 2 weeks in the current job that I'm in and have never touched SQL prior to this.   I'm working on trying to use alias names to pull two different sets of tables and display the fields in each table, all while ordering them by a specific field.  Here is the code I'm currently trying to use when to do that:    SELECT ars.facility_id, ars.service_code, ars.coding_system,    ars.result_label_seq, ars.display_seq, ats.facility_id,    ats.service_code, ats.coding_system, ats.display_name, ats.test_name    FROM anc_test_codes AS ats,   anc_results_seqs AS ars    WHERE ats.service_code = ars.service_code   AND ars.coding_system = ats.coding_system   AND ars.facility_id = ats.facility_id    AND ats.facility_id = 'C' AND ats.service_code = 'CBC'   ORDER BY ats.display_name   I'm sure my methods and style is totally hideous, so excuse this.  The error I'm getting is a generic Oracle SQL error: SQL Command Not Properly Ended - ORA-00933  Can anyone tell me what I'm doing wrong? Any help on this would be greatly appreciated.    Thanks!


Honestly there are so many bits and pieces I can use to identify the story and Google can't find a book with any of them. This is a book I checked out of a library in London about 6 years ago so maybe it is fairly recent.  The book begins from the point of view of a shuttle pilot who is doing recon in the area around an underground city on a vulcan-type planet and finds a crashed shuttle hundreds of years old, opening with a mystery then about where the shuttle came from.  Around the same time ships arrive from a previously-unknown nearby planet and it turns out it is humans from a planet in the same solar system.  The story backtracks hundreds of years to present-day Earth and an evangelical preacher who uses technology to produce special effects in his mega-church. He becomes politically involved, and knowing that Earth is being poisoned and its days are numbered, uses his frankly pathological behavior to lead the planet to build a fleet of ships to escape the toxic earth.  The ships arrive in a far-off solar system and one crash lands on one planet (which turns out to be the vulcan-type planet from earlier), and the other lands on a forested planet. Over time the two planets lose contact and forget about each other. The preacher and his wife go into stasis, emerging every hundred years or so, to check on humanity's progress.  The preacher dude is psychopath. Dishonest, narcissistic, selfish and arrogant, except you can't argue with results. Eventually after hundreds of years, his wife rebels, creates a rebel group called The Tru (after her last name), and attempts to overthrow the theologically-controlled world he established.  It is so frustrating I can't remember this book's title. I don't even remember if it was a GOOD book, I just got an impulse to read it again.

The setting is a colony world, with intense volcanic activity and enormous lava pressures outside... magma flooding the underground city is a real threat, with magma-proof-doors between different sections of the city.  The plot: the book opens with the central character in some kind of coffin-sized burrowing machine, making its way through kilometres of solid rock in search of something. This job is some kind of punishment. Later they find an old spaceship entombed in the solidified lava, and a hand-held particle weapon.  The colony world may be named "Fury"? And there is another much nicer colony world later in the book, perhaps named "Haven"?  There is a central library on Fury, which is being edited by the bad guys to obscure the true history of the colony.  Towards the end of the book we find out that a televangelist controls the lovely green world of Haven, is arranging the deletions from the Library, and arranged for his colony ship to land on Haven while all the other ships were sent to Fury. He also arranged a virus which presumably killed all humans on Earth, shortly after the colony ships departed.  The author is male, possibly English, as I remember reading another of his books which was set in England.


I have encountered a strange issue with calling my @AuraEnabled method from Lightning.  The second parameter (which is a method overload) is consistently null when called from Lightning - but is never null when called via executeAnonymous()  Here is the first method definition:  @AuraEnabled public static ReportSummary getReportSummary(String reportName) {   Id userId = UserInfo.getUserId();   return getReportSummary(reportName,userId); }   Here is the second definition (overload):  @AuraEnabled public static ReportSummary getReportSummary(String reportName, Id userId){   System.debug(LoggingLevel.DEBUG, 'USER ID: ' + userId);   ReportSummary summary = new ReportSummary(userId, '');   //ect ect...   //the above system.debug prints out 'USER ID: null'   I call first (single parameter) method from Lightning.  If anyone can shed some light on this, it would be appreciated.

I have a lightning component that displays Knowledge Articles based on Topic IDs that it is configured for. This works great so I went to create my test coverage for it and discovered that the inserted test Knowledge Articles can only ever be 'Draft' making my tests fail since the apex class only looks for 'Online'. Instead of rewriting my component I decided to overload the apex method so that when called without the status parameter it passes in 'Online' allowing my tests to pass in 'Draft' instead. However, the first method signature does not get called from the component resulting in null for the status parameter.  Here is the component controller:  ({     "retrieveArticles" : function(component, event, helper) {         var action = component.get("c.returnArticlesWithTwoTopicIds");         action.setParams({             mainTopicId : component.get("v.mainTopicId"),             secondaryTopicId : component.get("v.secondaryTopicId"),             limitAmount : component.get("v.limitAmount")         });          action.setCallback(this, function(response) {             var state = response.getState();             if (component.isValid() && state === "SUCCESS") {                 // handle SUCCESS             }             else if (component.isValid() && state === "ERROR") {                 // handle ERROR             }         });         $A.enqueueAction(action);     } })   Here is the apex class:  public with sharing class KnowledgeArticleVersionCtrl {     @AuraEnabled     public static List<KnowledgeArticleVersion> returnArticlesWithTwoTopicIds(String mainTopicId, String secondaryTopicId, Integer limitAmount) {         return returnArticlesWithTwoTopicIds(mainTopicId, secondaryTopicId, limitAmount, 'Online');     }      @AuraEnabled     public static List<KnowledgeArticleVersion> returnArticlesWithTwoTopicIds(String mainTopicId, String secondaryTopicId, Integer limitAmount, String status) {         // build query string         List<KnowledgeArticleVersion> articles = Database.query(query);         return articles;     } }   Is there something about the component that would cause it to not use the first signature, the one it should match, in place of the second one, which it shouldn't match?


In GTA 5, when you switch characters, what is the small number beneath their face mean?

When I hold Down on the D-Pad (Xbox) to show the character selection circle I notice there are some numbers next to the peoples faces. What do these numbers mean?


I need to be able to determine the size of a block special file.  For example, given /dev/sda, I need a command that will provide the size of the device. (By size I mean capacity, since this is a storage device.)    Rationale:  I can store information in the device with:   echo "12345" >/dev/sda  # needs to be run as root   (Don't run that command by the way... unless you don't care about your data.)  However, I need to know how much data I can store on the device and I don't know how to do that.

How can I find out the size of a block device, such as /dev/sda? Running ls -l gives no useful information.


I need to know the difference between these three types of variable initialization.   1)- The first type is using the "this" keyword.  var x=function (data1,data2){ this.data1=data1; this.data2=data2; }   2)- Second is using the "var" keyword...from what i know the var keyword makes the scope of a variable local which means that var can only be accessible when we are inside the function.    var x=function (data1,data2){ var data1=data1; var data2=data2; }   3)- Third type is without using any keyword..from what i know is that we don't specify the var keyword with a variable then it becomes global for the complete application. So you can access it any where you want...but in this case i think this would throw an error...because how would javascript know if data1 is a variable or a parameter (the passed on argument) ?  var x=function (data1,data2){ data1=data1; data2=data2; }

What is the scope of variables in javascript? Do they have the same scope inside as opposed to outside a function? Or does it even matter? Also, where are the variables stored if they are defined globally?


can you tell me how can I put questions and get more answers ! what I should do to get more interaction with my posts ! waiting for hours and days maybe months to get an answer or comment is not good ... Really I want some advices , thanks in advance

I was wondering what might be making my questions less attractive to users?  I get very low views most of the time. What should be done to increase a question's popularity?


We have put build breakers in our CI process for failing the build for insufficient junit coverage. The problem is with how to increase the code coverage because earlier we had broken down the methods in to smaller private methods due to sonar complexity issue.Now we need to work our way to add more junits to test each of the methods.  what are the best options?  1) Change the access modifier to protected or default? I have already seen the question of how to test private method. 2) Use reflection? 3) how best to work towards increasing branch coverage?  Example:      Class A {      public Object complexLogicMethodA(){        //1.Call private method B         methodB();      //2.Call private method C         methodC();      //3.Call private method D         methodD();      //Based on      }      private methodD(){      if(){      //some code here      }else{      //Some code here      }   } }

How do I unit test (using xUnit) a class that has internal private methods, fields or nested classes? Or a function that is made private by having  (static in C/C++) or is in a private () namespace?  It seems bad to change the access modifier for a method or function just to be able to run a test.


I'm getting started with bash scripting. I'm working with array elements that contain space characters. In the code below, the third array element is "Accessory Engine". I tried to set the space character using the \ symbol, but this doesn't help.  In the larger routine (not included here), I use the array elements to automatize some stuff with command line tools. Those command line tools would accept "Accessory Engine" as an input.  #!/bin/bash components="Persistence Instrument Accessory\Engine" for i in $components; do   echo ${i} done   Now the output from this code is:    Persistence   Instrument   Accessory\Engine   But I want it to be:    Persistence   Instrument   Accessory Engine   How can I achieve that?

Or, an introductory guide to robust filename handling and other string passing in shell scripts.  I wrote a shell script which works well most of the time. But it chokes on some inputs (e.g. on some file names).  I encountered a problem such as the following:   I have a file name containing a space hello world, and it was treated as two separate files hello and world. I have an input line with two consecutive spaces and they shrank to one in the input. Leading and trailing whitespace disappears from input lines. Sometimes, when the input contains one of the characters \[*?, they are replaced by some text which is is actually the name of files. There is an apostrophe ' (or a double quote ") in the input and things got weird after that point. There is a backslash in the input (or: I am using Cygwin and some of my file names have Windows-style \ separators).   What is going on and how do I fix it?


I am new to Blender with v. 2.80 and I wanted to ask how to reduce the "noise" in renderings with Cycles. It just doesn't want to render it correctly.

So this is my first try with cycles and I was wondering what can I do to make the image clearer?


I try locate -i -l 256 -r '*testhack*' and I get all hidden files as results polluting my limited result list, things like /home/kwaadpepper/testhack/TwitterReport/.git/objects/9a.  I think that regex might solve my problem but how? All I could managed to do was .

We have a Ubuntu NAS sharing SMB and Netatalk with some Macs and I often use locate to find my files. Unfortunately since installing Netatalk it has written tons of .AppleDouble cache files to share with AFP faster (I assume) and my locate prints all of that information. I'm constantly using cp on files only to find I've copied a useless hidden file on accident.  I have been using locate -i filename | fgrep -v ".AppleDouble" | fgrep -v "._" to remove those hidden files, but I'd like to change my bashrc in such a way that this is more or less default.  What is the most effective way to exclude hidden files from what locate prints? With regex? Right now, I would write a script that passes an argument to locate and pipes to grep as shown, but if there's an easier way, please let me know.


I am trying to prove this statement about countability:  Let $a\subset b$, if $b$ is countable then $a$ is countable.

Here is the proof I tried to weave while trying to prove this theorem:     Theorem. Every infinite subset of a countable set is countable.      Proof. Let $A$ be a countable set and $E\subset A$ be infinite. Then $A\thicksim\mathbb{N}$. This implies that there is a sequence $\left\{x_{n}\right\}_{n\in\mathbb{N}}$ where $x_{n}\in A$. Construct a sequence $\left\{n_{k}\right\}_{k\in\mathbb{N}}$ where $x_{n_{k}}\in A$, $n_{1}$ is the smallest positive integer such that $x_{n_{1}}\in A$, and $n_{k+1}>n_{k}$. Then      $$ E=\bigcup_{k=1}^{\infty}x_{n_{k}}, $$      and $E$ is countable, because $E\thicksim\mathbb{N}$. $\blacksquare$   Is it convincing?


How can I compute the gradient of f(x)= $||Ax-b||_{R^{-1}}^2$ I'm also confused about how to compute the gradient of g(x) = $||y-Ax||$ using the chain rule. I think the first step to take the gradient of g(x) would be $\nabla(g(x)) = \frac{d(y-Ax)^\top}{dx}(y-Ax)+ \frac{d(y-Ax)}{dx}(y-Ax)^\top$. However, I'm unsure of how to take the derivative of (y-Ax) or the derivative of $(y-Ax)^\top$. Any help is highly appreciated.

It's stated that the gradient of:  $$\frac{1}{2}x^TAx - b^Tx +c$$  is   $$\frac{1}{2}A^Tx + \frac{1}{2}Ax - b$$  How do you grind out this equation? Or specifically, how do you get from $x^TAx$ to $A^Tx + Ax$?


If the random variable $X$ has a Poisson distribution with mean $\lambda$, derive an expression for the expected value $\frac{1}{X+1}$   My attempt,  \begin{align*} \mathbb{E}\left[\frac{1}{X+1}\right] &=\sum_{x=0}^{\infty}\frac{1}{x+1}P(X=x) \\ & =\sum_{x=0}^{\infty}\frac{1}{x+1}\frac{e^{-\lambda}\lambda^x}{x!}. \end{align*}  I don't know how to proceed anymore so I went to see the given solution,  the answer is $\frac{1-e^{-\lambda}}{\lambda}$.

As the title states, I'm trying to find the expecteed value of $\frac{1}{x+1}$ where $X \sim \mathrm{Poisson}(\lambda)$  My attempt:  \begin{align} &\sum \frac{1}{x+1} \cdot \frac{e^{-λ}\cdot λ^x}{x!} \\ \implies& \sum \frac{x+1}{(x+1)^2} \cdot \frac{e^{-λ}\cdot λ^x}{x!} \\ \implies&  e^{-λ} \cdot \sum \frac{\lambda^{x+1}}{(x+1)!} \cdot \lambda \end{align}  I don't know how to further progress from here ... Help is appreciated


Traceback (most recent call last):   File "/usr/bin/do-release-upgrade", line 130, in <module>     useProposed=options.proposed_release)   File "/usr/lib/python3/dist-packages/UpdateManager/Core/MetaRelease.py", line 100, in __init__     cache = apt.Cache()   File "/usr/lib/python3/dist-packages/apt/cache.py", line 170, in __init__     self.open(progress)   File "/usr/lib/python3/dist-packages/apt/cache.py", line 230, in open     self._cache = apt_pkg.Cache(progress) apt_pkg.Error: E:Malformed line 1 in source list /etc/apt/sources.list.d/additional-repositories.list (type), E:The list of sources could not be read.

I have unistalled and reinstalled the Ubuntu Software Center as per info I found in a similar thread and I got the same response about line 91 or something like that.  I just tried to upload a screen shot but since I'm new it won't allow me to.  I also can not figure out how to cut and paste anything so I have to hand type what the error screen says, both when I attempt to open the software center and nothing happens, when I try to enter commands into the terminal to uninstall, reinstall, whatever I get the same following:  COULD NOT INTITIALIZE THE PACKAGE INFORMATION An unresolvable problem occured while initializing the package information Please report t:his bug against the 'update-manager' package and include the following error message: 'E: Malformed line 91 in source list/etc/apt/sources.list (dist parse)  E: The list of sources could not be read.,  E: The package list of status file could not be parsed or opened.   How do I report bugs?  What can be done about this.  I have searched and everything everyone says to do leads me back to the same line error message.  So, I don't know how to get to line 91 in the source list; to tell you what it says. Sorry, I'm really new to this. That is what I need is to find out how to get there and fix what it says. I would really like to NOT have to re partition my hard drive and start from scratch, so I'm really looking forward to getting this problem solved. I need to be able to install new software.


I'm trying to learn Java and now I created this Book class, I used the Generate toString() option in Eclipse and now I want to call the toString method in my runner. How do I call it?  import java.time.LocalDateTime;  import com.library.entity.Publication;  public class Book extends Publication {               public Book(String title, String firstName, String lastName, String publisherName, String address,             LocalDateTime datePublished) {         super(title, firstName, lastName, publisherName, address, datePublished);         // TODO Auto-generated constructor stub     }      @Override     public String toString() {         return "Book [getTitle()=" + getTitle() + ", getDatePublished()=" + getDatePublished() + ", getClass()="                 + getClass() + ", hashCode()=" + hashCode() + ", toString()=" + super.toString() + "]";     }           }  I tried using this as a runner but it gives me an error: Exception in thread "main" java.lang.NullPointerException: Cannot invoke "com.library.entity.Author.setFirstName(String)" because "this.author" is null     at com.library.entity.Publication.<init>(Publication.java:14)     at com.library.entity.publication.Book.<init>(Book.java:12)     at com.library.runner.BookstoreRunner.main(BookstoreRunner.java:9)  Here is the runner: package com.library.runner;  import java.time.LocalDateTime;  import com.library.entity.publication.*;  public class BookstoreRunner{     public static void main(String args[]) {         Book book1 = new Book("Generic Title", "K", "L", "K Publishing", "Earth", LocalDateTime.now());         String bookdetails = book1.toString();         System.out.println(bookdetails);     } }    Here is my Publication class, I hope it helps. I'm really new to java. package com.library.entity;  import java.time.LocalDateTime;  public class Publication {      private String title;     private Author author;     private Publisher publisher;     private LocalDateTime datePublished;          public Publication(String title, String firstName, String lastName, String publisherName, String address, LocalDateTime datePublished) {         this.title = title;         author.setFirstName(firstName);         author.setLastName(lastName);         publisher.setPublisherName(publisherName);         publisher.setAddress(address);         this.datePublished = datePublished;     }      public String getTitle() {         return title;     }      public void setTitle(String title) {         this.title = title;     }      public LocalDateTime getDatePublished() {         return datePublished;     }      public void setDatePublished(LocalDateTime datePublished) {         this.datePublished = datePublished;     }      }  edit: It now works! My error was using: private Author author; private Publisher publisher  instead of     private final Author author = new Author();     private final Publisher publisher = new Publisher();

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?


As the question says, I'm looking for the c# equivalent of the LinkedHashMap in Java.  I need to be able to retrieve keys and values by index, get the size. I need the elements to be ordered in the way they are inserted. One key should be matched to exactly one value.  Collections I've tried (And problems with them): NameValueCollection - Allows one-many linking. I'm guessing this causes an unnecessary overhead. OrderedDictionary - Unable to retrieve key by index.  EDIT : It has been pointed out that no such equivalent exists in C#. In the linked question, the answer points to a forum for an example implementation, which appears to be down. Could someone perhaps provide an example implementation here?  EDIT 2 : A CookieCollection from System.Net appears to be what I need. How would this react to larger sizes (number of elements)?

I wonder if there is a counterpart to java.util.LinkedHashMap in .NET? (ie. the elements are (re)ordered automatically if I access an element. (boolean accessOrder) ).


1 month ago I created one website and without doing anything I entered exact domain in google and it was shown as it suposed to..Now I created another project and after 3 days there is no sign of my website on google even if I enter exact name of it.. How can I push it to google??

It's been sometime and Google has yet to index my site. How can I get Google to index my website?


Question: Let F be a field, that is, a set with operations $+$ and $\cdot$     which satisfy the axioms of the definition of an "ordered field".     Prove that if $F$ is finite (i.e. has only finitely many elements), then     there does not exist an ordering $<$ which makes $F$ into an ordered     field.  How can I go about proving a finite field has no order?

I am reading  and it says all ordered fields with supremum property are isomorphic to $\mathbb R$. Since all ordered  finite fields would have supremum property that must mean none exist. Could someone please show me a proof of this?  Thank you very much, Regards.


I made a regression mode:  LogitModel<- glm(y~TimeBetweenStartRegAndEndReg+Age_wn+Train_Data[,1]+Train_Data[,2]+Train_Data[,3]+Train_Data[,4]             +Train_Data[,5]+Train_Data[,6]+Train_Data[,7]+Train_Data[,8]+Train_Data[,9]             +Train_Data[,10]+Train_Data[,11]+Train_Data[,12]+Train_Data[,13]+Train_Data[,14]             +Train_Data[,15]+Train_Data[,16]+Train_Data[,17]+Train_Data[,18]+Train_Data[,19]             +Train_Data[,20]+Train_Data[,21]+Train_Data[,22]+Train_Data[,23]+Train_Data[,24]             +Train_Data[,25]+Train_Data[,26]              ,family=binomial(link='logit'))   all the variables are factor except TimeBetweenStartRegAndEndReg and Age_wn.  the output summary(LogitModel) is not understood for me. there are NA for some variables. what it means that the coefficiant is NA?  And the most important how to remove them NA from the summary?  And another thing how can i print a model just with the significant coefficiant ?

I have 3 variables. Income is the dependent variable(continuous), sex(binomial), workhrs(categorical) i fitted a linear model and obtained the result:  My question is: Is this model usable? The NA values come from the fact that workhrs is missing 4 categories. The fifth one is i think due to coliniarity. The adjusted R squared is pretty high, but is the model Usefull to predict? or the interaction is not useful and should be dropped?  Call: lm(formula = income ~ factor(sex) + factor(workhrs) + factor(sex):factor(workhrs))  Residuals:    Min     1Q Median     3Q    Max  -6.757 -1.261  0.000  1.531  5.690   Coefficients: (5 not defined because of singularities)                                Estimate Std. Error t value Pr(>|t|)     (Intercept)                      31.330      4.645   6.744 8.42e-05 *** factor(sex)1                      0.160      6.569   0.024 0.981101     factor(workhrs)1                  2.930      5.689   0.515 0.618960     factor(workhrs)2                 13.240      8.691   1.523 0.161968     factor(workhrs)4                 10.935      5.689   1.922 0.086773 .   factor(workhrs)5                  6.960      6.569   1.059 0.316997     factor(workhrs)6                 30.045      8.691   3.457 0.007192 **  factor(workhrs)7                 18.315      5.689   3.219 0.010503 *   factor(workhrs)8                 26.947      5.364   5.024 0.000715 *** factor(workhrs)9                 25.340      6.569   3.857 0.003863 **  factor(workhrs)10                38.850      9.291   4.182 0.002370 **  factor(sex)1:factor(workhrs)1     9.160      8.691   1.054 0.319347     factor(sex)1:factor(workhrs)2        NA         NA      NA       NA     factor(sex)1:factor(workhrs)4     9.060      8.046   1.126 0.289276     factor(sex)1:factor(workhrs)5    23.035      8.691   2.651 0.026451 *   factor(sex)1:factor(workhrs)6        NA         NA      NA       NA     factor(sex)1:factor(workhrs)7     3.325      8.691   0.383 0.710895     factor(sex)1:factor(workhrs)8        NA         NA      NA       NA     factor(sex)1:factor(workhrs)9        NA         NA      NA       NA     factor(sex)1:factor(workhrs)10       NA         NA      NA       NA     --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1  Residual standard error: 4.645 on 9 degrees of freedom Multiple R-squared:  0.9263,    Adjusted R-squared:  0.8117  F-statistic: 8.083 on 14 and 9 DF,  p-value: 0.001742


Very often I need to extrude a shape inwards or outwards to create a curb/wall or simply another edge loop. I move the verts around manually and it's a painful and long process. I'm looking for methods of extruding every vert by a set distance of it's parent vert.  This is what simply extruding and scaling does:    This is what I need:      Any fast way to do this?

I'm quite new to Blender, so forgive me if this is a dumb question. I don't even know hot to describe it properly, so:      Basically I want to extrude a rectangle and then scale it along two axis, but without keeping the proportions; I want to reduce them of the same quantity, so that I get something similar to the frame of a picture.


I have dual American/French citizenship. I'm retired and live in France. My passports are both valid.  I will soon make a round-trip to the US and don't know which passport I have to show to police, customs.  I suppose that leaving France and entering the US I will show my US passport, but on my trip back to France, do I show my French passport - without or with an ESTA?  If it's without, police/customs might ask me how I entered the US without an ESTA.

I am a citizen of two different countries, and have two passports.  How should I use my passports when traveling?


I have learned several classifiers in Machine learning - Decision tree, Neural network, SVM, Bayesian classifier, K-NN, Markov process...etc.  Can anyone please help to understand when I should prefer one of the classifier over other - for example - in which situation(nature of data sets, etc) I should prefer decision tree over neural net OR which situation SVM might work better than Bayesian OR what types of problems are appropriate to apply decision tree, neural net, k-nn, markov processs or SVM or bayesian ??  Thanks.

I find resources like the  and  incredibly useful. They obviously serve well as references but also help me to organize my thoughts on a subject and get the lay of the land.   Q: Does anything like these resources exist for machine learning methods?  I'm imagining a reference card which for each ML method would include:   General properties When the method works well When the method does poorly From which or to which other methods the method generalizes. Has it been mostly superseded? Seminal papers on the method Open problems associated with the method Computational intensity   All these things can be found with some minimal digging through textbooks I'm sure. It would just be really convenient to have them on a few pages.


For my DLL that communicates with the Half-Life Engine, which I forked from YaLTeR, I have Discord RPC integrated. When on a certain map, the RPC displays an image for said map. The map file names are in uppercase; however, Discord RPC does not allow uppercase names for assets. Here is the const string: // Maps for which we have thumbnails.         const std::unordered_set<std::string> maps_with_thumbnails{             "Blimpboom"s,             "Boot_Box"s,             "Boot_Camp"s,             "Bounce"s,             "City"s,             "Crossfire"s,             "Datacore"s,             "Doublecross"s,             "Frenzy"s,             "Gasworks"s,             "Guardian"s,             "Kasino"s,             "Kasino2"s,             "Lambda_Bunker"s,             "Pyrozone"s,             "Rapidcore"s,             "Snark_Pit"s,             "StalkX"s,             "Stalkyard"s,             "Subtransit"s,             "Undertow"s,             "Xen"s,         };  I've tried google searching how to use tolower but I'm not good at C nor C++ so implementing what I found brought errors. Here's the code I tried:         // Maps for which we have thumbnails.         const std::unordered_set<std::string> maps_with_thumbnails{             "Blimpboom"s,             "Boot_Box"s,             "Boot_Camp"s,             "Bounce"s,             "City"s,             "Crossfire"s,             "Datacore"s,             "Doublecross"s,             "Frenzy"s,             "Gasworks"s,             "Guardian"s,             "Kasino"s,             "Kasino2"s,             "Lambda_Bunker"s,             "Pyrozone"s,             "Rapidcore"s,             "Snark_Pit"s,             "StalkX"s,             "Stalkyard"s,             "Subtransit"s,             "Undertow"s,             "Xen"s,             // convert string to back to lower case             std::for_each(data.begin(), data.end(), [](char& c) {             c = ::tolower(c); })         };  And this is the errors is brought up:

I want to convert a std::string to lowercase. I am aware of the function tolower(). However, in the past I have had issues with this function and it is hardly ideal anyway as using it with a std::string would require iterating over each character. Is there an alternative which works 100% of the time?


Is there any way to appear just online and not in-game to your friends (not offline, I know how to do that) while you're in a game?

Is there any way to prevent others from seeing your Steam status without removing them as a friend?   Let's say I want to play Borderlands 2 without letting some friends know. Is there any way to hide my status to prevent them from knowing I'm playing it?  Basically, what I'm asking if Steam has an "Appear Offline" option.


I was thinking Kitty aka Shadow Cat, her only power was that she can move through objects or let objects pass through her or go through walls and ceilings. In the new X-Men movie Days of Future Past, i see her sending wolverine's mind to past. Is that her ability which she had orginally or it was just an ability that they have created for the movie ?

In X-Men: Days of Future Past, how does Kitty Pryde suddenly get the power to send people's minds back in time? Initially she was only able to phase through objects and could extend this power to other people. The explanation of this cited molecular spaces.  How does she go from there to time travel all of a sudden??


We have the floor function $F(x)=[x]$ such that $F(2.5)=[2.5]=2, F(-3.5)=[-3.5]=-4, F(2)=[2]=2$.   How can I prove the following property of floor function: $$[a]+[b] \le [a+b]$$

Give a convincing argument that $\lfloor x\rfloor + \lfloor y\rfloor \leq \lfloor x+y\rfloor$ for every pair of numbers $x$ and $y$. Could someone please explain how to prove this? I attempted to say that the largest values that could be added to $x$ and $y$ is $0.99$ and that doing so still made $\lfloor x\rfloor + \lfloor y\rfloor < \lfloor x+y\rfloor$. However, my answer was not accepted.


Is it correct to say that the use badly is only used when there is a negative conjugation?  For example. When you beat someone at a game. Would you say you beat a person bad or badly? Because isn't the word bad in that context just slang for good?  Would the normal grammar rules of bad vs badly still apply here?

I know that a flat adverb is an adverb that has the same form as its related adjective, but does that mean any adverb without the -ly suffix is grammatically correct? For instance, if I said I am “extreme angry,” is that the same as saying I am “extremely angry”? Or is saying that it is “dangerous hot outside” the same as saying it is “dangerously hot outside”? I realize that flat adverbs are less common than they used to be, but that doesn’t change the question: Are flat adverbs always formed from words, namely adjectives, missing the -ly suffix?  Thank you  PS:  is what prompted my question:     “Flat adverbs used to be much more common than they are today. For example, in Robinson Crusoe, Daniel Defoe writes of weather that is "violent hot." Samuel Pepys wrote in his famous diary of being "horrid angry." But most of these adverbs have long since been abandoned.”   Bolded words are my emphasis.


I have a Toshiba 8 GB pendrive. All of a sudden, it's showing total space 4 MB. I have tried diskpart and various other software, but no gain. The disk management is also not showing unallocated space. Can someone suggest what happened to the pendrive?

My USB drive used to be originally 8GB when I bought it.  I'm trying to reformatted in Windows 7 by right clicking on the drive and selecting Format.... But the capacity only shows 250MB.  Is there something I can do to get the original size back? Maybe it got partitioned in a weird way?   The  flash drive is a SanDisk Cruzer Micro 8GB. I got it from Wal-Mart but this is the same drive.


I am facing some issue with  Converting One time to another time zone it not worked on IE and Safari.  var myDate = new Date('20/02/2014 21:46:36 GMT+07:00'); alert(myDate); var localtime = myDate.getTime(); var localoffset = myDate.getTimezoneOffset()*60000; var utc = localtime + localoffset; var targettime = utc + (3600000 * offset); var c_time = new Date(targettime); return c_time;   Please help

I have an issue -   The javascript Date("mm-dd-yyyy") constructor doesn't work for FF.  It works fine for IE.   IE : new Date("04-02-2008") => "Wed Apr 2 00:00:00 EDT 2008" FF2 : new Date("04-02-2008") => Invalid Date       So lets try another constructor. Trying this constructor Date("yyyy", "mm", "dd")   IE : new Date("2008", "04", "02"); => "Fri May 2 00:00:00 EDT 2008" FF : new Date("2008", "04", "02"); => "Fri May 2 00:00:00 EDT 2008" IE : new Date("2008", "03", "02"); => "Wed Apr 2 00:00:00 EDT 2008" FF : new Date("2008", "03", "02"); => "Wed Apr 2 00:00:00 EDT 2008"   So the Date("yyyy", "mm", "dd") constructor uses an index of 0 to represent January.   Has anyone dealt with this? There must be a better way than subtracting 1 from the months.


When creating an object (prior to ES6) one could instantiate an object like so...  var Animal = function(){}   and then  var dog = new Animal();   ...  Inside the animal "class" one can add...  var Animal = function( name ){     this.constructor.prototype.name = name;  }   The question is basically, what is the difference between using the regular this in oppose to using this.constructor.prototype  var Animal = function( name ){     // what is the difference between this    this.constructor.prototype.name = name;     // and that    this.name = name;  }   I know this kind of basic, if anyone would care to explain. Thanks in advance!

What's the difference between  var A = function () {     this.x = function () {         //do something     }; };   and  var A = function () { }; A.prototype.x = function () {     //do something };


Checking today , they talk about the difference between \\, \par, and even a new line. And that people does not know the difference. And indeed, I don't know it.  Can you enlight me? And explain the main differences and good uses practices of each (if relevant?.   Related to this one is , but in there there is not an in depth differentiation (which I will like to know), and don't talk about \par or even blank lines.

What is the difference between \par, \newline, \\ and blank lines? When should I use which one?


As discussed in , there are a number of elements in the Lord of the Rings and Hobbit movies that could be construed as racist against Muslim and non-Caucasian people, for example the fact Mordor is in the East and has the 'black' gate, whereas Gondor is the 'white' city, the men from the East who came to serve Sauron are dark skinned with face coverings, whereas all the good guys are explicitly described as fair.  The consensus of opinion seems to be that Tolkien wasn't being explicitly racist but my question relates to the films. It certainly seems that Peter Jackson could have done something about these (perceived) problems, but he chose not to.   Is this because the movies, or Jackson himself are intentionally racist?

In Tolkien's The Lord of the Rings series, there are generally two groups of Men. The good ones are coming from the West (Dúnedain, Men of the West), and the bad ones, the Easterlings, mostly fight under Morgoth and Sauron.  Why was this so?


I was wondering if there was a cleaner method to move files into the current directory than this:  mv path/to/file ../current_directory   If I wanted to move a file to the directory above I could go:  mv file ..   Is there a way to represent the current directory?

When i use the cp or move command in a terminal window, i'm currently with bash in a certain folder like this.  NES@server:~/Desktop/dir1$   And now i wanna copy a file from here ~/anotherdir/dir2 into the current chosen folder in bash (dir1) i would use the command  cp ~/anotherdir/dir2/file ~/Desktop/dir1   does a shortcut string exist to refer to the current chosen directory? So that in this example i don't have to provide the full path to the target dir, but the command knows it should use the current chosen directory in bash? i.e. as ~ stands for the home directory?


In how many ways can I choose 7 integers between 1 and 48, so that I never pick any neighbouring numbers (like 23 and 24)? I am looking for a good way to attack this problem. I have a strong feeling that the problem would become easier if I said that 1 and 48 were neighbours. I would get rid of boundary problems, when I count. Using the inclusion-exclusion principle seems an idea, but I haven't found the right way.  Thx in advance,  Jschmidt

In how many ways can we choose $r$ numbers from $\{1,2,3,...,n\}$,   In a way where we have no consecutive numbers in the set? (like $1,2$)


We need 64K secondary IPs on the linux eth0 interface. The goal is to be able to program the ip addresses in less than 10 seconds. Configuring manually one at a time takes 10 mins or more. netplan apply is the fastest way to program the IPs. Here is the netplan file 40-netcnfg.yaml file I am using. network:     version: 2     ethernets:         ens7:             dhcp4 : false     vlans:          ens7.730:              id: 730              link: ens7               addresses:              - 10.0.0.5/8              - 10.0.0.9/8              - 10.0.0.13/8              - 10.0.0.17/8              - 10.0.0.21/8              - 10.0.0.25/8 .... ....              - 10.3.255.229/8              - 10.3.255.233/8              - 10.3.255.237/8              - 10.3.255.241/8              - 10.3.255.245/8              - 10.3.255.249/8  Looks like we are hitting some sort of limits in sysmtemd. Here is what I found on Github () Recompiled this with 64K as the default and still running into issues. Are there other places where the limits are imposed? I can add the addresses manually so there doesn't seem to be any issue with kernel as such. I'd appreciate your guidance regarding this.

I know that the ip tool lets you bind multiple addresses to an interface (eg, ). Right now, though, I'm trying to build something on top of IPv6, and it would be really useful to have an entire block of addresses (say, a /64) available, so that programs could pick any address from the range and bind to that. Needless to say, attaching every IP from this range to an interface would take a while.  Does Linux support binding a whole block of addresses to an interface?


I want to make a 3D looking text that would in fact be 2 2D layers.  Here's what I want to make - I duped the layer 2 times and moved the second layer a little lower, then used Blend, recolored and put the original layer on top:    But here's the culprit:    Is there a way to avoid using the Blend command and fixing the curves myself?

Just like the question says.   Here's the . It's from a recent Progressive commercial.   Is there a way to do this, preferably in Illustrator, without drawing the outline by hand?


When removing unused kernals (to make space on /boot) I get this message:   The following packages were automatically installed and are no longer required:   gnome-mplayer hardinfo libgda-5.0-4 libgda-5.0-common libgmlib1 libgmtk1   libgmtk1-data libmusicbrainz3-6 libwxsqlite3-3.0-0 linux-headers-3.19.0-30   linux-headers-3.19.0-30-generic lubuntu-default-session   lubuntu-software-center lxappearance-obconf lxsession-default-apps mtpaint   python-gudev python-pysqlite2 sylpheed-plugins transmission xpad Use 'apt-get autoremove' to remove them. 0 to upgrade, 0 to newly install, 0 to remove and 47 not to upgrade.   I don't understand the last line, and when I use the autoremove command as suggested I get:  E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?   What do I do?

I get this error whenever I try to install programs using the terminal:  home@ubuntu:~$ apt-get install myunity E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?   Also I'm unable to install updates using the terminal.


I have tried installing R (for the first time on Ubuntu) using .  First three steps ran fine:  sudo echo "deb http://cran.rstudio.com/bin/linux/ubuntuxenial/" | sudo tee -a /etc/apt/sources.list gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9 gpg -a --export E084DAB9 | sudo apt-key add -   I got an 'OK'  Problem occurs in 4th step:   $ sudo apt-get update E: Malformed entry 54 in list file /etc/apt/sources.list (Suite) E: The list of sources could not be read.   I looked up the file, which said, at line 54:   deb http://cran.rstudio.com/bin/linux/ubuntuxenial/ xenial   The file was unable to be modified.   At first, I thought it was because I couldn't have access to public key so I tried the steps suggested by the first answer:  However  I also tested to see if it was a firewall issue by switching from my company connection to my phone hotspot and repeating the installation process, same errors occurred, so I don't think its due to having blocked port 11371.  Any ideas how I can fix the issue? I'm not sure how to correct line 54 (in terms of what to write and also how to get past the text edit restrictions).

I can't seem to edit and save config files in the root system (eg: /etc/dhcp/dhcpd.config); it just says "permission denied" or the save option is blocked in the text editor.  I'm pretty sure I'm a root user, but how do I make sure? If I am a root user, how do I fix this?


When we can use advice instead of advise? Can somebody help me?

In what contexts are those two words used?  It's been a while since I've read the grammar books and I don't exactly remember the definitions of a few terms like adjective, so I would really appreciate it if the answers didn't leave it off by saying x is verb and y is adjective - I learn more by practical examples.  Please do mention similar words as well.


Referring to question like   I wonder how could it be accepted as it satisfy none of criteria mentioned in SO. I should be able to flag it off-topic as it falls under Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. And also   Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist  I don't doubt about the quality and importance of the questions but to me the rule supposed to be same for all. And the very first line in the  clearly says      First, make sure that your question is on-topic for this site.You should only ask practical, answerable questions based on actual problems that you face. Chatty, open-ended questions diminish the usefulness of our site and push other questions off the front page.   How to Ask     Is your question about programming?      We prefer questions that can be answered, not just discussed.      Provide details. Share your research.   I don't understand how these are justified in these cases?  Some more similar entried I could find (And this list could go on)

I frequently come across a really useful answer on StackOverflow which has been closed because it doesn't match the Q&A format.  Examples include  ,  ,   ,  and there are others.  Where should this information be exchanged if it's not on stackoverflow?  It seems the moderators are often somewhat overzealous...  ---edit  When I say best, I mean they are informative and useful for someone who's looking for an answer to them.  Even if they do become a bit of a discussion, I value other people's opinions on the relative merits of the different JPA frameworks.  I come here looking to choose one and the answer helps me.  So what if it's not a definitive answer?  ---edit  I don't care how popular a question is, nor how interesting it is.  Users are interested in stuff that's useful to them.  Plenty of those were useful (as judged by the upvotes on the answers: 'This answer is useful'), but closed because they didn't have a definitive answer, as far as I can tell.  ---edit  Seems I'm not the first person to think this: there are various similar questions to mine like this one:   In it the user lists lots of other useful questions which have been closed:                    So isn't there a place on stackoverflow for these questions?  A discussion section, maybe?


I have:   /home/user/my_static /home/user/static/   How do I rename my_static to static and remove static(2)?

In Ubuntu why can't I have a folder named "MyFile" and a document named "MyFile" at the same location? I get an item already used in this location error. Does Ubuntu / Linux treat folders and files as same objects (pointers to disk)?


Evaluate $$\lim_{n \rightarrow \infty~} \dfrac {[(n+1)(n+2)\cdots(n+n)]^{\dfrac {1}{n}}}{n}$$ using Cesáro-Stolz theorem.  I know there are many question like this, but i want to solve it using Cesáro-Stolz method and no others.  I took log and applied Cesáro-Stolz, I get $$\log{2}+n\log\cfrac{n}{n+1}$$  Which gives me answer as $\frac{2}{e}$ . But answer is $\frac{4}{e}$. Could someone help?.  Edit:  On taking log,  $$\lim_{n \to \infty} \frac{-n\log n + \sum\limits_{k=1}^{n} \log \left(k+n\right)}{n} \\= \lim_{n \to \infty} \left(-(n+1)\log (n+1) + \sum\limits_{k=1}^{n+1} \log \left(k+n\right)\right) - \left(-n\log n + \sum\limits_{k=1}^{n} \log \left(k+n\right)\right) \\ = \lim_{n \to \infty} \log \frac{2n+1}{n+1} - n\log \left(1+\frac{1}{n}\right) = \log 2 - 1$$ Which gives $2/e$

Evaluate $$\lim_{n \rightarrow \infty~} \dfrac {[(n+1)(n+2)\cdots(n+n)]^{\dfrac {1}{n}}}{n}$$  Attempt: Let $$y=\lim_{n \rightarrow \infty} \dfrac {[(n+1)(n+2)\cdots(n+n)]^{\dfrac {1}{n}}}{n}$$  $$\implies \log y = \lim_{n \rightarrow \infty} \dfrac {1} {n} [\log (n+1) +\cdots+log(n+n)-log(n)] $$  How do I move forward?  Thank you very much for your help.


One oddity in the difference between UK and American usage is that Americans say "I went to the hospital" but British people say "I went to hospital".  Is there an explanation for this grammatical divergence? Does it have a name?

Why do British speakers omit the article in constructions like "go to hospital" or "go on holiday"? Pretty much all American speakers would rephrase those as "go to the hospital" and "go on a holiday", I think. Is there any good reason, or forgotten sense behind those words that might explain why the articles are ommitted?  Are there other common constructions other than those two that the British use that drop the article?  EDIT: I just realized per Kosmonaut's comment that Americans do much the same thing with a few nouns, so this isn't all that special.   Do grammaticists designate nouns that can have their article dropped with anything, i.e. do they have anything in common?


I have an array  $DATA = array( array(     "id" => "23",     "rate" => "4.555" ), array(     "id" => "12",     "rate" => "4.555" ), array(     "id" => "20",     "rate" => "4.555" ),  array(     "id" => "29",     "rate" => 5.1025" )    );   Now i need to sort above array by key: rate (ascending) and id (ascending).  So:      function mySort($a, $b) {        return strcmp($a['rate'], $b['rate']);       }   uasort($DATA,'mySort');   Now sort perfect but only by rate....  Adding new funcion:  function mysortID ($a,$b){ //AD         return ($a['id'] > $b['id']) ? 1 : -1;       }   Let's try:    uasort($DATA,'mySort');  uasort($DATA,'mySortID');   But doesn't work.... how to that ?

I have CSV data loaded into a multidimensional array. In this way each "row" is a record and each "column" contains the same type of data.  I am using the function below to load my CSV file.  function f_parse_csv($file, $longest, $delimiter) {   $mdarray = array();   $file    = fopen($file, "r");   while ($line = fgetcsv($file, $longest, $delimiter))   {     array_push($mdarray, $line);   }   fclose($file);   return $mdarray; }   I need to be able to specify a column to sort so that it rearranges the rows.  One of the columns contains date information in the format of Y-m-d H:i:s and I would like to be able to sort with the most recent date being the first row.


This is on Android.  In one of my bug report I often see this     java.lang.NullPointerException: Attempt to invoke virtual method 'int   java.lang.Object.hashCode()' on a null object reference at   java.util.concurrent.ConcurrentHashMap.replaceNode(ConcurrentHashMap.java:942)   at   java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:933)   at xxxx.MyActivity$1.handleMessage(MyActivity.java:261) at   android.os.Handler.dispatchMessage(Handler.java:102) at   android.os.Looper.loop(Looper.java:158) at   android.app.ActivityThread.main(ActivityThread.java:7229) at   java.lang.reflect.Method.invoke(Native Method) at   com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)   The code at line 261 is  handler = new Handler(Looper.getMainLooper()) {       @Override       public void handleMessage(Message inputMessage) {           switch (inputMessage.what) {            case 'test':                Object[] args = (Object[]) inputMessage.obj;               LatLng latLng = (LatLng) args[0];                // This is the line where the error is thrown               Circle circle = mapCircles.remove(latLng);          }  }   Basically my threads send a message to the UI handler. mapCircles is a ConcurentHashMap  I know it is hard to help, but does any one know what causes the java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Object.hashCode()' ?  Does the latLng object becomes null at some points in its lifetime? if latLng WAS null the errorwould have been something else mapCircles is definitely not null

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 was not able to find a way to create a built-in Guest user account under Windows 10 using their new Control Panel, so I resorted to adding it manually via the Computer Management snap-in:    After which it started appearing in the User switcher:    But if I click it to switch to it, Windows kicks me out into the login screen:    and nothing happens. (Note that the Guest account is no longer shown here.)  I also checked the event log and the only record it has about this event is under Local -> Windows Logs -> Application:     The winlogon notification subscriber  was unavailable to   handle a notification event.   So what am I doing wrong?

In older versions of Windows and even in Windows 10 previews you could enable the built-in guest account in control panel     Control Panel\User Accounts\User Accounts\Manage Accounts     In Windows 10, the Guest entry is missing.  Using Computer Management or net user you can still enable the guest account, but even then it doesn't show up on the logon screen.  In the Local Security Policy secpol.msc:     Local Policies - User Rights Assignment - Deny log on locally   we can see guest listed, this wasn't the case in older versions of Windows.  After removing guest from that policy, it is listed on the logon screen and we can using it to log on.  However, the whole Explorer shell is crashing and restarting constantly. The desktop is blinking and you can't click anything.  So the guest account is totally broken.   There is a  about this showing that some code was quickly added to the control panel to not show the guest account. So Microsoft does know about the problem.  While I don't really expect anybody to know what they've done to break this, at least this explains why the guest account is currently not listed.


I've been on 14.04 LTS for a while now and really keen to upgrade to the latest LTS version (if possible) or do I need to incrementally upgrade?  I will obviously backup my main directories and files as I'm not sure if my whole system will get wiped (hoping not) during upgrade.  Could people pls point me or guide me through the steps to carry out the upgrade as I am keen to upgrade but obviously want to make sure that is all successful and that I don't lose any of my existing data.  I also have a LAMP stack installed and hoping that this is also updated along with OS.

I am currently using Ubuntu 10.04. I know there is a 10.10 release, but can I upgrade directly to 11.04? Could you walk me through the steps please?


I'm trying to call a method from a dll fetched within the code. The foreign method to call:  private bool someMethod(out string errMsg)     {       //Error message is assigned       //Some more code       return aBoolean;     }   When I call the method with the following code:  string errorMessage;   someMethod.Invoke(activator, new object[] {out errorMessage});     I get the following error for "out errorMessage": Syntax error, ',' expected -- ',' or '}' expected    The method itself is correctly called when I ignore the out prefix, and the activator is assigned correctly according to the tests I have made  What's going on here?

an example code what I try to do will surely do better than my english:  public bool IsNumericValueInBounds (string value, Type numericType) {   double d = double.NaN;         bool inBounds = (bool)numericType.GetMethod ("TryParse").Invoke (null, new object[] { value, d });    return inBounds; }   Unfortunately the TryParse method needs an out parameter so this doesn't work. any ideas how to solve this?  (ps.: would'nt this be a nice example for duck typing? - because i know every numericType has an "TryParse" or I am mistaken?)


While I mean ''Analysis'', it means Baby Rudin's top 8 chapter.

I'm starting to read Baby Rudin (Principles of mathematical analysis) now and I wonder whether you know of any companions to it. Another supplementary book would do too. I tried Silvia's notes, but I found them a bit too "logical" so to say. Are they good? What else do you recommend?


I was just build single page application name,age,city,submit,persons are id of my input form. jquery and my script file in the header of .html file   $(function() { let inp_name = $('#name') let inp_age = $('#age') let inp_city = $('#city') let btn_submit = $('#submit') let tbl_persons = $('#persons')  }) function refreshPersonTable(persons){ tbl_persons.empty(); tbl_persons.append(     `<tr>     <th>Name</th>     <th>Age</th>     <th>City</th>     </tr>`     )     for(person of persons){         tbl_persons.append(             `<tr>             <td>${person.name}</td>             <td>${person.age}</td>             <td>${person.city}</td>             </tr>`         )     } }

What is the scope of variables in javascript? Do they have the same scope inside as opposed to outside a function? Or does it even matter? Also, where are the variables stored if they are defined globally?


Is there a command to explode a line feature (with many segments) into its segments?  Like this:   I have seen this:   But, I was looking for something similar that keeps everything in the same layer while editing it and does it only for the selected feature(s) not all elements. I am thinking in a simple command that takes the selected featured(s) and produces the desired output like the Split Patrs or Split Features in the Advanced Digitizing Toolbar.

I want to automatically split all lines in a QGIS layer at their vertices (). I've done a Google search and found , which is quite close but the workflow is complicated. Because I'll have to train my co-workers (who are unfamiliar with GIS) to use this tool, I want something as simple as a plugin or something that doesn't require GRASS. Since it's been a long time from 2010 - the time of , I wonder if there is any better way to achieve the same result?


I'm trying to install python imaging library because it's a dependency for some other stuff.  but when I try to do it I get this  $ sudo apt-get build-dep python-imaging        Reading package lists... Done E: You must put some 'source' URIs in your sources.list

I'm trying to install PIL a python module on ubuntu   I first need to install a package called python-imaging using the following command    sudo apt-get build-dep python-imaging   When I try and do this I get the error   E: You must put some 'source' URIs in your sources.list   I saw  question whihc shows how to fix via the GUI but I'm using the command line. Does anyone know how I can fix this error..?    UPDATE: Based on the below answers I've updated my package list but I now get this error. Not sure if it is related, if not I'll start a new question as I can't find reference to the error anywhere.   E: Build-Depends dependency for python-imaging cannot be satisfied because candidate version of package python-all-dev can't satisfy version requirements


I have git instaled on Ubuntu, I'd like to use git combined with my own server, so that as I change files in a certain branch, commit and push it to the server it automaticly updates the files and is visible on the website,  when I checkout to another branch I'd like my website to change automaticly to, so that the branch fits with what is visible on the website.  Is all that possible ?

Is it possible to deploy a website using git push? I have a hunch it has something to do with using  to perform a git reset --hard on the server side, but how would I go about accomplishing this?


I'm trying to find the center of $\mathbb{M}_n(K)$ with $K$ a field. I know what the center would be if $K$ was a ring, but I think this isn't the same for a field $K$. In particular I'm trying to find $Z(\mathbb{M}_2(\mathbb{F}_2))$.

The question is from Axler's "Linear Algebra Done Right", which I'm using for self-study.  We are given a linear operator $T$ over a finite dimensional vector space $V$. We have to show that $T$ is a scalar multiple of the identity iff $\forall S \in {\cal L}(V), TS = ST$. Here, ${\cal L}(V)$ denotes the set of all linear operators over $V$.  One direction is easy to prove. If $T$ is a scalar multiple of the identity, then there exists a scalar $a$ such that $Tv = av$, $\forall v \in V$. Hence, given an arbitrary vector $w$, $$TS(w) = T(Sw) = a(Sw) = S(aw) = S(Tw) = ST(w)$$ where the third equality is possible because $S$ is a linear operator. Then, it follows that $TS = ST$, as required.  I am, however, at a loss as to how to tackle the other direction. I thought that a proof by contradiction,  ultimately constructing a linear operator $S$ for which $TS \neq ST$, might be the way to go, but haven't made much progress.   Thanks in advance!


Is there any way to redirect/forward calls that are not from my contacts to another number?  (No, I'm not looking to block them or redirect them to voicemail.)

Is there a way to configure (with or without an app) an Android phone to forward calls from only certain numbers/callers to another number?  I'm not interested in call screening; I'm looking for a way for this to happen silently in the background.


The wheel with mass $M$ and radius $R$ below is free in space (it is not on the ground). A torque $\tau$ is applied to it through an engine. A horizontal force $F = \frac{\tau}{R}$ is also applied to it on its bottom-most point. I work out the net torque on the wheel by  $$\tau_{net} = \tau - \frac{\tau}{R}R = 0$$  Since the net torque acting on the wheel is zero, I expect the wheel to slide to the right  with linear acceleration $a = \frac{\tau}{MR}$, and to not roll (due to zero torque).    Now, another wheel (below) with radius $R$ is on the ground, and an engine applies a torque $\tau$ to it. The ground applies a force $F_{friction}$ in order to prevent the wheel to slip. The wheel translates to the right, but this time let's say that it rolls with a bit of slipping.    From this, can I assume that the friction force $F_{friction}$ the ground applies to the wheel is always smaller than $\frac{\tau}{R}$? Because, from what I see above, if friction is equals to this $\frac{\tau}{R}$, the wheel would not roll at all.

In school we solve a lot of physics problems involving rolling cylinders/hoops/wheels. Often it is specified in the question statement that "rolling can be assumed to occur without slipping". Then we know we can use the relationship between translational acceleration and rotational acceleration: $a = \alpha r$.  But can we know from a particular set up when the object can be assumed not to slip when rolling? Assume we know the usual macroscopic details of the set up such as the mass and radius of the rolling object, the angle of the plane, friction coefficients etc.. without deep insight into specifics of the materials of the wheel and the plane.


I want to include some libraries in my project like json-glib, beecrypt or libffi.  Usually, I install all the libraries using sudo apt-get install XYZ. But sometimes, I get a .tar file of any library which I extract at some place on my desktop. I don't know how to install these type of libraries for which I have the source code. I get the installed files in /usr/include or sometimes in /usr/lib folder when I install using the above command written. How to do it in case of source code?

I have downloaded tar.gz files. But I don't know how to install it. How do I install this kind of file?


I installed Windows 7 via bootcamp several years ago with much older version of macOS but now when I want to delete it via Boot Camp Assistant, it doesn't recognize my bootcamp to remove and also tells me I need to have my whole partition as one, which makes sense.  I read around and can try to remove my Bootcamp partition via Disk Utility but I don't think that would remove the Bootcamp menu and because I'm planning to install Windows 10, I'm not sure how things will go since I have already "a bootcamp" configuration.  Thanks.

The startup disk cannot be partitioned or restored to a single   partition.      The startup disk must be formatted as a single Mac OS Extended   (Journaled) volume or already partitioned by Boot Camp Assistant for   installing Windows.   I had installed Windows 10 via bootcamp in my mac. Current version is 10.14.1  Now I don't want windows and need that space back but getting above error when I go bootcamp to remove it.  This is the output of diskutil list  /dev/disk0 (internal, physical):    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      GUID_partition_scheme                        *251.0 GB   disk0    1:                        EFI EFI                     209.7 MB   disk0s1    2:                 Apple_APFS Container disk1         181.3 GB   disk0s2    3:       Microsoft Basic Data BOOTCAMP                60.3 GB    disk0s3    4:           Windows Recovery                         509.6 MB   disk0s4  /dev/disk1 (synthesized):    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      APFS Container Scheme -                      +181.3 GB   disk1                                  Physical Store disk0s2    1:                APFS Volume Macintosh HD            116.4 GB   disk1s1    2:                APFS Volume Preboot                 44.6 MB    disk1s2    3:                APFS Volume Recovery                512.8 MB   disk1s3    4:                APFS Volume VM                      4.3 GB     disk1s4   And this is of diskutil cs list  No CoreStorage logical volume groups found   Can anybody please help me to solve this problem?  Output after I tried commands given in the first answer  ❯ diskutil list /dev/disk0 (internal, physical):    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      GUID_partition_scheme                        *251.0 GB   disk0    1:                        EFI EFI                     209.7 MB   disk0s1    2:                 Apple_APFS Container disk1         250.8 GB   disk0s2  /dev/disk1 (synthesized):    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      APFS Container Scheme -                      +250.8 GB   disk1                                  Physical Store disk0s2    1:                APFS Volume Macintosh HD            116.4 GB   disk1s1    2:                APFS Volume Preboot                 44.6 MB    disk1s2    3:                APFS Volume Recovery                512.8 MB   disk1s3    4:                APFS Volume VM                      3.2 GB     disk1s4


i want getting a meta value from multiple meta  i getting meta by :  $data['cd_meta'] = get_post_meta( $p->ID, 'cd_meta', true);   but cd_meta is a multiple meta and i need just one specific meta from it  how Can get it ?  Thanks

i have a multiple meta (custom field) in posts as "cd_meta" that it (cd_meta) have a meta as "artist", also "artist" meta maybe have one or more value in array  i want to getting posts that "artist" meta have specific value and number of them  look below picture for more info


On my Motorola Moto G XT1068 with 5.0.2 whenever I'd turn on "location" it would ask permission to use high accuracy mode, and if I remember rightly, send information to Google. I always chose disagree because I don't want to do this.  Today I was helping a friend trial an app and in order to get it to function properly I was forced agree to this. Now I have two problems:   When I turn location on it always defaults to high accuracy, I cannot get it to default to device only I have no idea how to revoke this permission that I agreed to   So, my questions are:  1. How can I get it to default to device only?  2. How can I revoke this permission?  Ideally I don't want to have to do a factory reset. And yes, I know, I shouldn't have said yes if I didn't agree, but silly me assumed I could easily revoke this permission.

Like many, I found the Location Consent prompts to be annoying. I was excited when Google finally extended the option to 'remember this setting' in the latest update, but dismayed when I could only have the phone remember a 'yes' answer.  Unfortunately, when I handed the phone to a friend to coordinate GPS while driving she checked 'Remember this setting' and consented into the program. I would like to undo this, but cannot for the life of me find where this setting is stored on my phone. It does not appear to be listed in the 'Location' or by clearing the cache of the LocationServices app (which doesn't appear to actually work)  How can this be undone? Phone is a Motorola Razr HD running 4.4.2


I have a sequence of observed outcomes from independent but not identically distributed Bernoulli trials, and some covariate data. I perform logistic regression, and use it to estimate the probability of each trial succeeding. If I sum these estimates up, do they always add up to the total number of observed successes?  I know that in the absence of covariate data, the MLE of the constant term is the number of successes divided by the number of trials.

We're working with some logistic regressions and we have realized that the average estimated probability always equals the proportion of ones in the sample; that is, the average of fitted values equals the average of the sample.  Can anybody explain me the reason or give me a reference where I can find this demonstration?


I am trying to create midpoints for a set of polylines in QGIS. My python knowledge is poor and was wondering if there was a plugin that did if for me.  I have tried using the Mean Coordinates function suggested in  but this returns a centroid which is sometimes off the line (especially when lines are not straight). I am essentially looking for a point that is on the line half way along.

I'm trying to create a points in the middle of polylines. The data is now in the form of shapefile. Is there an easy way to do this?


Am I right that "spectral decomposition" for symmetric matrix and "singular value decomposition" for non square matrix? Any clarification would be appreciated.

I have understood how ridge regression shrinks coefficients towards zero geometrically. Moreover I know how to prove that in the special "Orthonormal Case," but I am confused how that works in the general case via "Spectral decomposition."


I rendered an animation and then placed it into the video sequence editor to test it, and rendered that as a video.  Now I want to render a second animation (in other words, keep working), but when I press render animation, it's still using the sequence render option? (Rendering it as pngs). I was wondering how to switch between sequence render and animation render properly?

Blender is rendering an older version of my project, not the most recent one. I have made it using the Blender Render but it does not want to render in cycles either. A black and grey screen is rendered as if everything is transparent. Checked general camera, lighting and compute devises in case I messed something up but I can't find anything. All my textures and objects look normal, does anybody know what is wrong or what to check?  Ok added link:


I downloaded a few themes, extracted the tar balls and copied the folders to both ~/themes and /usr/share/themes, but they still don't show up in gnome tweak manager. What should I do?

I want to change an icon of a specific theme. Where do themes save their icons?


import com.kernel.View.*; import com.kernel.ViewSupport.*;  I look like the problem is here which file I need to find and rebuild

I am getting a NoClassDefFoundError when I run my Java application.  What is typically the cause of this?


I am taking a flight purchased from United for Seattle (SEA) to Casablanca (CMN). Some segments are operated by other carriers but in United’s name. The ticket says:     United 4688 Operated by trans states airlines dba united express   …and…     United 8647 Operated by Air Canada Rouge   Whose luggage rules apply for the carry-on bag and the "personal item"? Unfortunately, the dimensions vary significantly between their various sets of rules.  Carry-on bag:   United: 22" x 14" x 9" Air Canada: 21.5" x 15.5" x 9" | 55cm x 40cm x 23cm   Personal item:    United: 17: x 10" x 9" Air Canada: 17" x 13" x 6"  |  43cm x 33cm x 16cm

My itinerary:    UA: Indianapolis -> Newark (operated by ExpressJet). Flight# UA** ANA: Newark -> Tokyo (operated by UA). Flight# NH** VNA: Tokyo -> Hanoi. Flight# VN**   ANA policy allows 2 free checked bags, but UA baggage calculator shows that I'll have to pay $100 for my 2nd checked bag. I tried calling UA customer service and was told they have recently changed their policy. The rep however was unable to point me to the document announcing said change.  However the information  says that the Most Significant (marketing) Carrier policy will override other carriers', which means only ANA policy will apply to my itinerary.  Am I missing something? Can I use this information to fight with them at the counter when I'm actually flying? This is a big deal because my family are flying together and it may cost us over $300 on checked baggage.  EDIT: added flight numbers.


Booted up to a weird issue.  My cursor size and selection change when I mouse over from desktop to browser.  I didn't change anything in themes, nor mouse pointers and such.  I have tried changing the size and cursor back to DMZ-White but it didn't work. Running Ubuntu 18.04.5 LTS and Cinnamon 3.6.7.  Any advice greatly appreciated.

I'm running Ubuntu 18.04 with default gnome and I installed Tweaks to change my themes. I'm using theme DMZ White for my cursors.  Everything is OK except for Chromium (Version 69.0.3497.81 (Official Build) snap (64-bit)). The mouse cursor is tiny!  I have checked Slack, Postman, System Monitor and Calculator and the cursor is fine on those apps.  I've tried the instructions here to no avail:   How can I change my mouse cursor to a normal size in Chromium?


I just installed Ubuntu on my machine and there is no wireless connection. I mean, the wireless card won't even show at the top pane of my desktop.  I might also add that whenever the Ubuntu launches, a moment before I get the login screen, there are three lines that say:   ERROR... something... something... wireless... go to www.kernel... something...     I don't know the exact words in the errors, because it vanishes a second after it appears, and it's too fast for me to read.  Is there a command that can detect my wireless card specification so I can look for a driver? or better yet, is there a command that can download the necessary drivers for the wireless card?   Here are the results for ifconfig:  eth0      Link encap:Ethernet  HWaddr 88:ae:1d:33:93:b0             inet addr:10.0.0.5  Bcast:10.0.0.255  Mask:255.255.255.0           inet6 addr: fe80::8aae:1dff:fe33:93b0/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:3539 errors:0 dropped:0 overruns:0 frame:0           TX packets:2922 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:3317067 (3.3 MB)  TX bytes:332509 (332.5 KB)           Interrupt:17   lo        Link encap:Local Loopback             inet addr:127.0.0.1  Mask:255.0.0.0           inet6 addr: ::1/128 Scope:Host           UP LOOPBACK RUNNING  MTU:65536  Metric:1           RX packets:1119 errors:0 dropped:0 overruns:0 frame:0           TX packets:1119 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:0            RX bytes:110448 (110.4 KB)  TX bytes:110448 (110.4 KB)   If any more information is needed, tell me.  Please, this is very important to me, I have a project due next week, and I cannot do it without wireless (I'm connected through wired connection right now).  EDIT: Here's some more information that might help, lspci -nn | grep 0280 gives:    04:00.0 Network controller [0280]: Broadcom Corporation BCM4312 802.11b/g LP-PHY [14e4:4315] (rev 01)

I'm having serious problems installing the Broadcom drivers for Ubuntu. It worked perfectly on my previous version, but now, it is impossible.   What are the steps to install Broadcom wireless drivers for a BCM43xx card?  I'm a user with no advance knowledge in Linux, so I would need clear explanations on how to make, compile, etc.    lspci -vnn | grep Network showed:   Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller [14e4:432b]      iwconfig showed:  lo        no wireless extensions. eth0      no wireless extensions.   NOTE: Answer below is updated every time new information is added and confirmed working.


Overheard on an elevator today,     I didn't realize it was him.   Corrected by the know-it-all,     He.  "I didn't realize it was he."   The know-it-all then went on a rant about how everybody is a dolt for not knowing that.  I swear I have never heard this before in my life.  Is the know-it-all correct?    If so, why is "I didn't realize it was he," grammatically correct?  What rule makes "him" incorrect here?

Upon answering the telephone, the person calling asks if Joan is available. If Joan is the person who answered the phone, should she say "This is her" or "This is she"?


After executing apt-get update I get the following output. What does it mean and how to solve it? Hit:1 http://ppa.launchpad.net/x2go/stable/ubuntu bionic InRelease                                                        Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease Hit:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease Hit:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease Hit:5 http://archive.ubuntu.com/ubuntu bionic-security InRelease Reading package lists... Done Building dependency tree        Reading state information... Done 17 packages can be upgraded. Run 'apt list --upgradable' to see them. W: Skipping acquire of configured file 'stable/binary-i386/Packages' as repository 'http://archive.ubuntu.com/ubuntu bionic InRelease' doesn't have the component 'stable' (component misspelt in sources.list?) W: Skipping acquire of configured file 'stable/binary-amd64/Packages' as repository 'http://archive.ubuntu.com/ubuntu bionic InRelease' doesn't have the component 'stable' (component misspelt in sources.list?) W: Skipping acquire of configured file 'stable/i18n/Translation-en' as repository 'http://archive.ubuntu.com/ubuntu bionic InRelease' doesn't have the component 'stable' (component misspelt in sources.list?) W: Skipping acquire of configured file 'stable/i18n/Translation-en_US' as repository 'http://archive.ubuntu.com/ubuntu bionic InRelease' doesn't have the component 'stable' (component misspelt in sources.list?) W: Skipping acquire of configured file 'stable/dep11/Components-amd64.yml' as repository 'http://archive.ubuntu.com/ubuntu bionic InRelease' doesn't have the component 'stable' (component misspelt in sources.list?) W: Skipping acquire of configured file 'stable/dep11/icons-48x48.tar' as repository 'http://archive.ubuntu.com/ubuntu bionic InRelease' doesn't have the component 'stable' (component misspelt in sources.list?) W: Skipping acquire of configured file 'stable/dep11/icons-64x64.tar' as repository 'http://archive.ubuntu.com/ubuntu bionic InRelease' doesn't have the component 'stable' (component misspelt in sources.list?)

Getting below error message while issuing :  sudo apt-get update  Get:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease [95.8 kB] Ign:2 http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.2 InRelease                                                                                Ign:3 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                Hit:4 http://ppa.launchpad.net/canonical-x/vulkan/ubuntu xenial InRelease                                                                                Hit:5 http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.2 Release                                                                             Hit:6 http://us.archive.ubuntu.com/ubuntu xenial-security InRelease                                                   Ign:7 http://dl.google.com/linux/talkplugin/deb stable InRelease                                                      Hit:8 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease                                                    Ign:9 http://linux.dropbox.com/ubuntu wily InRelease                                            Hit:10 http://ppa.launchpad.net/numix/ppa/ubuntu xenial InRelease                               Get:12 http://dl.google.com/linux/chrome/deb stable Release [782 B]       Hit:13 http://dl.google.com/linux/talkplugin/deb stable Release                   Ign:14 https://apt.dockerproject.org/repo ubuntu-wily InRelease           Hit:15 https://apt.dockerproject.org/repo ubuntu-wily Release             Get:16 http://dl.google.com/linux/chrome/deb stable Release.gpg [181 B]   Hit:17 http://linux.dropbox.com/ubuntu wily Release                                   Get:20 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1,191 B] Fetched 98.0 kB in 0s (118 kB/s)                                  Reading package lists... Done N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://dl.google.com/linux/chrome/deb stable InRelease' doesn't support architecture 'i386'   This cuts across various releases of ubuntu


While ♫ living it up in the CVQ,♪ * I came across a dupe question being closed as a dupe of a question which already had an answer. I thought "Hey that's silly. I should just follow the link and propose the grandparent as the original instead of some arbitrary middle question."  So I got to the grandparent, copied the URL, and went back to the CVQ to present the better dupe. I got an error:     questions cannot be duplicates of themselves   Reading the two questions again, it dawned on me:    Should this be some sort of safeguards in place for this? As entertaining as it was, it's hardly useful. But the worst part was anyone could have gone along with it, since it's not plainly obvious what's about to happen. Furthermore, the user who voted to close clearly meant to go the other way, but accidentally did it this way instead. (We've since discussed it and his vote is now retracted)  At first I thought this was a geniusly diabolical audit. It's not.  Original question:     Its flagged duplicate:     Observe that the title of the original question, and the title of the link in the question closed as dupe are identical. Circular dupiness!  * That really should be the title of the Stack Overflow theme song

I just got this error message:    Fair enough; I wasn't really paying attention to the duplicate link at the top of the suggested duplicate, just at the contents.  However, this question is  review queue with a vote to close as a possible duplicate of the question that got closed as a duplicate of this one.  Can we exclude these posts from the review queue (or if it's not easy, run a job to get rid of them)? As circular duplicates are  they'll just languish in the queue forever; generating confusion and more meta posts like this one (or ).  P.S. I clicked do not close; this isn't a question about what to do in this situation.


Okay so I am supposed to find the recurrence equation of $T(n) = T(n-1)+n+2$, where $T(1) = 1$. I know the answer should come out to be $\dfrac12(n(n+5)-4)$ but I don't understand how to get that answer.

I have solved the following recurrence relationship:  $T(1) = 1$  $T(n) = T(n-1) + n + 2$  so  $T(n) = \frac{1}{2}n^2+\frac{5}{2}n -2$  I am now trying to perform mathematical induction to prove this.  $Basis:$  $T(1)=1=3-2=\frac{1}{2} + \frac{5}{2} - 2 $  $Induction:$  $T(k+1) = T(k) + k+1 + 2$  $= \frac{1}{2}k^2 + \frac{5}{2}k -2 + k+1 +2$  $= \frac{1}{2}k^2 + \frac{7}{2}k +1$  What can I do next?


I know that "due to" modifies a noun, and "because of" verbs. However, while searching for explanations and examples, I've come upon , where it is said that you can check if the choice is right by moving the phrase directly after the connecting verb, and that "The snowfall was due to the effects of El Nino" is wrong; but how is that? I mean, here "due to" clearly modifies the noun "snowfall", and it follows a form of "to be". Am I missing something?

Is it fine to use due to in place of because of ? How about the other way around? Are any of these sentences ungrammatical?   He was lost because of the storm. He was lost due to the storm. He lost his way due to the storm. He  lost his way because of the storm.


I'm trying to set a custom shortcut Alt + - [that's a hyphen] to print an em dash and can't get the right command. echo — doesn't work.  Any ideas what I can do?

I want to type guillemets (angle quotes, «») in Ubuntu when using   Russian keyboard mapping English keyboard mapping   Is it possible (preferably without typing numeric codes)?  There is a discussion , but it does not mention Linux.


I need to script toi set MAXDOP.  ----I have this script----  select cpu_count, case when cpu_count/hyperthread_ratio >8 then 8 else cpu_count/hyperthread_ratio end as optimal_maxdop_setting from sys.dm_os_sys_info   I need script to setup maxdop by using optimal_maxdop_setting output above  I do not want to take output above and plug on the query below,   sp_configure 'show advanced options', 1; GO RECONFIGURE WITH OVERRIDE; GO sp_configure 'max degree of parallelism', <OutPut of the above script>; GO RECONFIGURE WITH OVERRIDE;

When setting up a new SQL Server, I use the following code to determine a good starting point for the MAXDOP setting:  /*     This will recommend a MAXDOP setting appropriate for your machine's NUMA memory    configuration.  You will need to evaluate this setting in a non-production     environment before moving it to production.     MAXDOP can be configured using:      EXEC sp_configure 'max degree of parallelism',X;    RECONFIGURE     If this instance is hosting a Sharepoint database, you MUST specify MAXDOP=1     (URL wrapped for readability)    http://blogs.msdn.com/b/rcormier/archive/2012/10/25/    you-shall-configure-your-maxdop-when-using-sharepoint-2013.aspx     Biztalk (all versions, including 2010):     MAXDOP = 1 is only required on the BizTalk Message Box    database server(s), and must not be changed; all other servers hosting other     BizTalk Server databases may return this value to 0 if set.    http://support.microsoft.com/kb/899000 */   DECLARE @CoreCount int; DECLARE @NumaNodes int;  SET @CoreCount = (SELECT i.cpu_count from sys.dm_os_sys_info i); SET @NumaNodes = (     SELECT MAX(c.memory_node_id) + 1      FROM sys.dm_os_memory_clerks c      WHERE memory_node_id < 64     );  IF @CoreCount > 4 /* If less than 5 cores, don't bother. */ BEGIN     DECLARE @MaxDOP int;      /* 3/4 of Total Cores in Machine */     SET @MaxDOP = @CoreCount * 0.75;       /* if @MaxDOP is greater than the per NUMA node        Core Count, set @MaxDOP = per NUMA node core count     */     IF @MaxDOP > (@CoreCount / @NumaNodes)          SET @MaxDOP = (@CoreCount / @NumaNodes) * 0.75;      /*         Reduce @MaxDOP to an even number      */     SET @MaxDOP = @MaxDOP - (@MaxDOP % 2);      /* Cap MAXDOP at 8, according to Microsoft */     IF @MaxDOP > 8 SET @MaxDOP = 8;      PRINT 'Suggested MAXDOP = ' + CAST(@MaxDOP as varchar(max)); END ELSE BEGIN     PRINT 'Suggested MAXDOP = 0 since you have less than 4 cores total.';     PRINT 'This is the default setting, you likely do not need to do';     PRINT 'anything.'; END   I realize this is a bit subjective, and can vary based on many things; however I'm attempting to create a tight catch-all piece of code to use as a starting point for a new server.  Does anyone have any input on this code?


I'm trying to create a linked list, but when I run IsEmpty(test) it just says it was not declared in this scope even though it's public.  I'm pretty new at templates, but I couldn't find the answer on google so I have to ask here.  Anyone know what the problem is?  Also, the error points to main() where I call IsEmpty()  //.h template <typename ItemType> class Node {     public:         ItemType Data;         Node <ItemType> *next;         int position; };  template <typename ItemType> class Linked_List {         public:         Node <ItemType> *start;         Linked_List();         bool IsEmpty(); }   //.cpp   #include "Linked_List.h" #include <iostream> #include <cstdlib> using namespace std;  template <typename ItemType> Linked_List <ItemType>::Linked_List(){     start = NULL; }  template <typename ItemType> bool Linked_List <ItemType>::IsEmpty(){     if (start == NULL){         return true;     }     return false; }  int main(){     Linked_List <int> test;     cout << IsEmpty(test) << endl;   //error points to here }

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


I'm trying to solve this exercise in the page 10 of this     Maybe I'm forgetting something, but I couldn't solve this exercise, I need a hint or something to begin to solve this question.  Thanks in advance

Let $f$ be polynomial in $n$ variables. If we have $f(a_1,\ldots,a_n) = 0, a_i \in S_i$ and $S_1,\ldots,S_n$ are infinite subsets of a field $k$, how can I show that $f=0$?


In the case of the proper noun Ross, which of the following would be correct?   Ross's Ross'

Many questions already ask about this topic ( , , etc.) and their answers vary, but they always give exceptions to the apostrophe-s rule, for example:      6.24 The general rule for the possessive of nouns covers most proper nouns, including most names ending in sibilants."   Examples they give include Kansas’s, Ross’s land, and Jones’s reputation. Exceptions include Jesus’  and Moses’.  Which names does this apply to?  Is the Aeneas’  form correct, or is it Aeneas’s instead?


thanks in advance!  Calculate the leading-order asymptotic behaviour of the integral $$I(x) = \int_{0}^{2\pi} (1+t^2) e^{x \cos t} dt \mbox{ as } x \mbox { tends to infinity}$$  So far I know there are two maximas at $0 \mbox{ and }2\pi$ so it can be assumed to be the integral  $$\int_{0}^{\epsilon} (1+t^2) e^{x \cos t} dt + \int_{2\pi-\epsilon}^{2\pi} (1+t^2) e^{x \cos t} dt$$ then using taylor expansions this can be transformed to: $$\int_{0}^{\epsilon} (1+t^2) e^{x (1-\frac{t^2}{2})} dt + \int_{2\pi-\epsilon}^{2\pi} (1+t^2) e^{x (1-\frac{1}{2}(t-2\pi)^2)} dt$$ but where do I go from here? How do I find the leading order term?