I am trying to remove the duplicates items from a big Excel sheet. I would like to remove all rows that have a duplicate code values (sample below)  Before:      Name     Code item_01  xxxx01 item_02  xxxx02 item_03  xxxx01 item_01  xxxx03 item_04  xxxx04   After:  Name     Code item_01  xxxx01 item_02  xxxx02 item_01  xxxx03 item_04  xxxx04   I have played with the "Remove Duplicates" features, but I can't get the result that I want.   Any help? Thanks


Deleting large snapshot with limited datastore space

I've read best practices for using snapshots in ESXi, unfortunately I inherited system with VM's running on snapshots for longer than they should be.  In one instance that's concerning me, the delta VMDK has grown larger than the original VMDK off of which it was running.  These VMDK's are about 57 and 43 GB, respectively.  In addition to this, I only have about 22 GB left on my datastore.  Are either of these going to cause issues or is it fairly safe to delete this snapshot?  I'm using ESXi 4.1.


$K\subseteq X$ compact, C closed, can I say something about $K \cap C$?

If C is closed then C is compact as well, but the intersection of two compact set is not compact in general. It would be nice to have this intersection to be compact though, any idea if this is true?


Is it possible to convert/export 2D curves to an svg?  I know you could render it to a raster image and then convert it with inkscape/potrace, but it would be nice if you could keep the splines the way they are in blender.


Will increasing the time spent on site lead to better search engine rankings

My 1 blog is now 8-months old I receive on average anywhere from 700-1200 people per day, however it is not so much the acquisition numbers in terms of visitor count that interest me, it is the time on site spend, below you can see an image from  yesterday's traffic.    Currently my average visit time is 5.28min I have been working to increase this to 7-min by writing longer posts, which is rather difficult and also I am worried it will start to become to long for users.  When looking at my current time on site spend, would you say it is adequate for a sports niche blog?   If I can increase my time on site spend to say 7 or 8 min am I likely to see an increase in traffic, or am I wasting my time focusing on this?  QUESTION UPDATE  What I am asking is, if there is a direct correlation between time on on site spend from organic traffic to increased ranking?   As for longer content mentioned in comments, my posts are starting to average 2000-words and I am outranking many competitors without backlinks to those posts, so I will say that content length DOES play a direct role in rankings (even more so than backlinks IMO) I would like to know however, how much of a factor is time on site spend


Word for bigotry towards someone of political beliefs

Ageism is the word for bigotry towards people of an age group, racism towards people of a race, sexism towards people of a certain gender, etc.  Is there a word for bigotry towards someone of certain political beliefs, such as towards liberals/democrats?


Bounding a series: $\frac{\pi}{2} < \sum_{n=0}^\infty \frac{1}{n^2 + 1} < \frac{3\pi}{2} $

I have the following statement -  $$\frac{\pi}{2} <  \sum_{n=0}^\infty \dfrac{1}{n^2 + 1} < \frac{3\pi}{2} $$  So I tried to prove this statement using the integral test and successfully proved the lower bound. But when I tried to calculate the upper bound I was required to calculate the integral from -1 - $\int_{-1}^{\infty} \frac{1}{x^2 +1}\,dx$. If someone can explain why it will be great , thanks!


Unable to use multiple @ signs in comment

I ran into an issue earlier today where I tried to comment on someone's post to indicate they should make sure they used an @2x and @3x image (iOS stackoverflow question). I was then shown a dialog saying I could only reference / reply to one user at a time. I had to delete one of the @ symbols to be able to post my comment. There were no users I could reference named 2x or 3x, so why was I shown this message? Although a small one, is this a known issue?


Is it correct that if Ubuntu is installed inside Windows using Windows installer then it works slower?


How do I remove the apps "Files" and "File Manager"?

About a year ago "Files" and "File Manager" started to act very strangely and all my files were lost, despite an extensive search. Two days later I lost all my data and files from my SATA hard-drive. Luckily I had a backup, but "Files" continued to lose everything every time I put removable media into the USB slots.  Frustrated with "Files" and "File manager" I installed "Thunar" which was an instant success. However "Files" is still set as the default manager for removable media and Rubbish Bin.  Today "Files" moved the contents of my terrabyte SATA drive into the Rubbish Bin and changed the permissions, which prevented me from restoring the contents back onto the drive with "Thunar". In the end I had to copy the folders onto my desktop, rename them and put them back that way.  I want to remove "Files" and "File Manager" but they cannot be un-installed in either "Software Centre" or the Dashboard. I cannot make "Thunar" open the removable media or the rubbish bin as "Files" must be the default for these operations. Is there any way of using terminal to remove these apps as they seem to be standard as part of the Ubuntu package


How do i keep my program looping after the user inputs "n"

I have been writing this program where the user enters a value that stands for a day of the week. It then displays the day of week with the time the alarm will go off in the morning. It then asks the user if they wish to close the program and if no it will then start again. I cannot get it to loop and start again when the user enters "n".   public class alarmClock {     public static void main(String[] args) {       String endProgram = "y";      while (endProgram == "y") {        int weekday = readInt("What day of the week is it");        weekday(weekday);        String endProgram = readString("Do you want to end the program y/n");      }      System.out.print(endProgram);    }     public static String readString(String prompt) {      System.out.println(prompt);      java.util.Scanner keyboard = new java.util.Scanner(System.in);      return keyboard.nextLine();    }     public static int readInt(String prompt) {      System.out.println(prompt);      java.util.Scanner keyboard = new java.util.Scanner(System.in);      return keyboard.nextInt();    }     public static void weekday(int weekday) {      if (weekday == 1) {        System.out.println("On monday the alarm will ring at 7am");      } else if (weekday == 2) {        System.out.println("On tuesday the alarm will ring at 7am");      } else if (weekday == 3) {        System.out.println("On wednesday the alarm will ring at 7am");      } else if (weekday == 4) {        System.out.println("On thursday the alarm will ring at 7am");      } else if (weekday == 5) {        System.out.println("On friday the alarm will ring at 7am");      } else if (weekday == 6) {        System.out.println("On saturay the alarm will ring at 7am");      } else if (weekday == 7) {        System.out.println("On Sunday the alarm will ring at 7am");      }    }  }


Difference between apt-get remove -y and apt-get purge -y?

apt-get remove <name of program>    apt-get purge <name of program>   and  apt-get purge -y <name of program>   Research indicates the running either "remove" or "purge" performs the exact same function and that they are interchangeable commands.  Running the command apt-get purge -y <name of program> removes the program and its dependencies.  IOW, does this command remove dependencies strictly associated with that program or is it liable to delete shared dependencies that may cause other programs to stop working?  Which should I run to delete a program? purge or purge -y ?


Why my ftp server doesnt work in passive mode but works in active mode?

Trying to setup a FTP server on a EC2. I have installed vsftp and followed this  When I try to connect with the -p option I cannot pass any command. Everything is smooth without it. I have setup vsftpd.conf: allow_writeable_chroot=YES pasv_address=<my-ip> pasv_enable=Yes pasv_min_port=50000 pasv_max_port=51000 port_enable=YES  And opened the port (20-21 && 50000-51000 using Terraform here) resource "aws_security_group" "ftp_passive_port" {   name = "ftp_passive_port"    description = "Access to FTP passive"   vpc_id      = aws_vpc.din_vpc.id    ingress {     from_port   = 50000     to_port     = 51000     protocol    = "tcp"     cidr_blocks = [...]   }    # Allow all outbound traffic.   egress {     from_port   = 0     to_port     = 0     protocol    = "-1"     cidr_blocks = ["0.0.0.0/0"]   } }  I got this error : Connected to xxxxxxxx. 220 Welcome to XXXXX FTP service. Name (xxxxx:qwerty): xxxxxxxxxx 331 Please specify the password. Password: 230 Login successful. ftp> ls 227 Entering Passive Mode (0,0,0,0,198,19). ftp: connect: Connection refused ftp> bye 221 Goodbye.


Is there any flaw in the proof of $-1 = 1$?

We have $i^2 = -1$ where $i = \sqrt{-1}$. Now consider $$\sqrt{-1}\cdot \sqrt{-1}              = \sqrt{(-1)\cdot(-1)}              =  \sqrt1 = 1$$ Which proves $-1 = 1$. Is there anything wrong with the above manipulation?


I have noticed a strange behaviour when switching between the packages german and babel with the german option. There is obviously a difference in how "= is handled in the preamble:  \documentclass{article} \usepackage{german} \title{Some"=Thing} \begin{document} \maketitle  Some"=Text. \end{document}   yields the following result:    while the following code  \documentclass{article} \usepackage[german]{babel} \title{Some"=Thing} \begin{document} \maketitle  Some"=Text. \end{document}   does not handle the "= in the \title{} command correctly:    What is the reason for this behaviour? How can I make the babel package behave like the german package? (I have to switch from german to babel because some packages like fancyref use the wrong translations if only german is used.)


Why is the past tense of vomit generally spelled 'vomited' rather than 'vomitted'?

"Vomit" is not a recent addition to English, and nor does it have a peculiar pronunciation. Yet, the past tense of vomit does not follow the notion that a vowel followed by a consonant and emphasis on the consonant. (For example, past tense of 'emit' is 'emitted'.)


What is __init__.py for in a Python source directory?


How do you remove a default program association for file types in Windows 7?

I somehow have set the default file type association for a file type in Windows 7. It doesn't appear to be possible to delete it from the "Change the file type associated with a file extension" options screen. Is it possible to remove it?


How many finite fields with 10 elements are there?

I want to know how many finite fields with 10 elements there are. I know for example $\mathbb Z_{11}$ is one of them. How can I count all the possible polynomial fields or even something like $\mathbb Z^{*}_{p}$? Or is $\mathbb Z_{11}$ the only one?  thank you for your help


I'm using algorithm2e package but my algorithm does not fit in only one page. Is there any way to split it over two pages, even if manually?  If doing it manually, we can use two algorithm environments, but there are some issues:   Maintain the line counting - OK, this can be done by calling the package with noresetcount Remove the caption from the first/second algorithm (depending if we want the caption in the beginning or end) -- how to do it? Take care of the vertical lines of the indentation, that is, I expect them to "cross" the pages -- how to do it?


Why isn't the username obfuscated as one of the close-voters once the user is deleted?

We recently had  which showed that "Mik" had cast a close-vote on one of the questions however his profile wasn't linked. It became clear later on in the answers and comments that Mik's profile is now deleted and hence his name is not linked to his profile.  Another example for same user:    But then, why isn't the name of the user obfuscated like it gets done for posts/comments once the user gets deleted?


I did something I can't get out of! I selected nodes and thinking I'd group them I did a Cntrl + G. Not liking (or understanding) the result, I deleted the nodes. And I'm still left with a green cover that does not allow me to select nodes. :(


I was creating a loop to send HTTP requests taking data from a txt file but in the variable I get a line break that I don't know how to remove:  import requests  file = open("uuids.txt", "r")  for uuid in file:     url = 'http://ip:port/api/assets/changeAssetTemplates/{}'.format(uuid)     headers = {         ...     }     print(url)     response = requests.request("GET", url, headers=headers)     print(response.text)   The first print paints this:  http://ip:port/api/assets/changeAssetTemplates/f4c71dd5-13af-428a-a3a5-4cbaf10d9bd3   A good URL. But the second print paints the error from the request:  {"timestamp":1563971402621,"status":404,"error":"Not Found","message":"No message available","path":"/api/assets/changeAssetTemplates/f4c71dd5-13af-428a-a3a5-4cbaf10d9bd3%0A"}   Where we can see that the data you get from the uuid variable is making a line break (%0A) and I would like to know how to avoid this problem.  By the way, an example of uuids.txt:  f4c71dd5-13af-428a-a3a5-4cbaf10d9bd3 1a71d6dc-a9b3-43fa-b675-747af9d7c202 2465ea64-3334-44b1-8f23-16e4df3aeea1 2fb98bba-d03d-495a-b5a2-9656bf623854 7a2aca40-dc5c-4aec-b700-7d0a91d39dd8 983ce44b-ab24-49bb-b128-8a30712dc2ca 2487e2ed-bff5-4195-ab5e-875210e634b0 965c62da-7c7a-4bf3-a0b8-de60d9b392dd 8b9bcf8c-0163-48cc-8603-3447ab7f29f6 0a7a5db9-67be-4a2a-af58-0189565caa2d


I'm a still learning PHP and I'm programming a  .php Registration webpage, and I want to make sure that the e-mail is valid (if the user doesn't type @ or . he will get a error message).  That's the e-mail part:  $Email = $_POST['email']; $needle = '@'; $search = strpos($Email, $needle);  elseif ($search == FALSE)             {                 echo "Your e-mail is not valid.";             }   How can I make it with multiple letters instead of only @? I want to add the dot (.com) as well, I added it on $needle but it doesnt work. Thanks in advance.


Consider this:   I have one fast server with a Drupal installation but this server does not have access to a lot of disk space. I have another server that isn't quite as fast but does have access to lot of disk space.   My drupal server is hosting a blog and some photo galleries.  I would like my drupal server to use the file server to store its images and files.  How can I achieve such a thing? The file server can be accessed through ftp or sftp.  I'm considering using the storage api for this, it seems like a good fit (?) but I'm not sure how to implement it. The documentation seems a bit off.  Also, the blog uses the wysiwyg module + the media module to allow for image uploads in the body field. How can I make this functionality work with the storage api?  Is there anyone with experience in this field that can help me out?


How do I know which type of music have I created?

I have created music using drums and guitar, but I do not know in which category does my music falls in. Is it jazz, pop or any other. Also if in future I create a music with a violin in addition, does the genre of music change?


Let $f$ be continuous on $ [a,b]$, differentiable on $ (a,b) $ and $ f(x) \neq 0 \forall x \in (a,b) $ Prove $ \exists c \in (a,b) $ such that

To Prove : $$ \frac{f'(c)}{f(c)} = \frac{1}{a-c} + \frac{1}{b-c} $$ I think I should proceed in following way :  Define $g(x) = \ln|f(x)| + \ln|x-a| + \ln|b-x|$ such that $$g'(x) = \frac{f'(x)}{f(x)} - \frac{1}{a-x} - \frac{1}{b-x} $$ Then, using Rolle's Theorem , I have to prove that : $\exists c \in (a,b)$ such that $g'(c) = 0$ But I am not able to solve it any further .


Custom question lists April status update

Previous posts:                           After a long hiatus, a new Custom Question Lists update is out with a fresh new design.  What's shipped?  If you are participating in the Custom Question List alpha (by ), you'll see some brand new UI components when viewing question lists:  New tab bar and editor    Based on your feedback, we decided to rethink the whole UI, removing some confusing and redundant components, and bringing back some much loved pieces.  The new design is closer to "the existing question lists with advanced options" than "a radically new experience".  Huge shoutouts to our new designer, , for making this new design possible and to  for picking up development while I was on sabbatical!  Some important notes for existing testers:   The summary is back in its rightful place next to the tab bar.  If bounty or unanswered filters applied, the summary provides a clearer explanation of what you're looking at, inspired by /unanswered. The "Filter" and "Sort" popovers are gone. Sort was too similar to the existing tabs, and Filter was a form in a popover. (how were you supposed to submit or cancel?)  Now there's a dedicated UI for filtering. The complex "Create" and "Edit" modals are gone.  Now you just configure your list with the same UI as if you were filtering and click "Save filter" when you're ready to save. You can preview your changes before updating a filter.  Editing a saved filter and clicking apply shows you your new options while remembering what filter you were looking at.  You can then click "Save filter" to either update your existing filter or create a new one. We handle responsive better.  The tab bar has been set up so it compresses more naturally on narrower browsers and mobile devices.   New sidebar widget    A new right-sidebar widget has been added, similar to Watched Tags, to give you more direct access to your saved lists.  This is where indicators will live in Phase 3 (which I swear we are actually going to ship).  Please give it a try.  If you have any questions, bugs, or feedback, you can reply to this post directly or add a new question with the  tag.  A wider alpha  Since we're nearing launch, we're expanding the alpha out to the whole network.  So feel free to try this out on any site you frequent, to help suss out any site-specific issues.  What's next?  As always, Phase 3 of this project is adding indicators for new content, now in the right sidebar widget.  There's increasing interest in this feature from Enterprise, so I do really expect this to ship and get out of Alpha sooner rather than later and this time, I mean it.


how to deal with $| dz |$ in complex integral, with two examples

I met two integrals:  $$\int_{| z |=1} \frac {|dz |} {z} $$ and   $$\int_{| z |=1} |\frac {dz} {z}| $$.  Actually I have no idea of how to deal with $|dz|$.  Any good suggestions?  Many thanks.  Best


Force printing of all Acronyms, even those that have NOT been mentioned in the text

Several acronyms that are not used (but are defined in the Acronym file) in my text are not shown in the List of Acronyms. How can I print all acronyms even if they are not used in the text. You can find related code lines that I used below:  \usepackage[nonumberlist, acronym]{glossaries}  \loadglsentries{acronyms}  %----- List of Acronyms -----% \cleardoublepage        %\newpage \phantomsection     \addcontentsline{toc}{chapter}{List of Acronyms} \printglossary[type=acronym, title=List of Acronyms] %----------------------------%   By the way, I'm using pdflatex to build the pdf file.  Thanks in advance


share wired connection to wifi adapter ( external )

I'm connected to the internet using wired connection and I have an external   TP-LINK wifi adapter. I want to bridge connection from wired to wifi adapter,  then to my iPhone. How can I do this?


Are the algebraic numbers dense in $\mathbb{C}$?

Since rational numbers are real algebraic numbers, clearly the real algebraic numbers must be dense in $\mathbb{R}$. So it seems natural to ask: are the (complex) algebraic numbers dense in $\mathbb{C}$? If not, is the (topological) closure of the algebraic numbers known?


Compare the two phrases:  ... at a much reduced price...  versus  ... at a much-reduced price...  Is a hyphen required here or it's unnecessary?


Print duplicate values and non duplicate values separately in java

I want to print duplicate and non duplicate values separately.   String[] values= { "Java","C", "JavaScript", "JavaScript", "Java" ,"Java", "Java" , "JavaScript", "Java", "Ruby"};   My output should be below.  String[] duplicate = {"Java", "Java", "Java", "Java", "Java", "JavaScript", "JavaScript", "Java"}  String[] unique = {"C", "Ruby"}    I have tried several ways but I couldn't able to make it.  public static void main(String[] args) {          String[] a = { "Java","C", "JavaScript", "JavaScript", "Java" ,"Java", "Java" , "JavaScript", "Java", "Ruby"};           List<String> uniq = new ArrayList<String>();          List<String> dupe = new ArrayList<String>();          int count = 0;         for (int j = 0; j < a.length; j++) {             for (int k = j + 1; k < a.length; k++) {                 if (a[j] == a[k]) {                     count++;                 }             }             if (count == 1){                 System.out.println("Dupe: "+a[j]);                 dupe.add(a[j]);             }              count = 0;          }     }   Output   String[] Duplicate = {"Java", "Java", "Java", "Java", "Java", "JavaScript", "JavaScript"}  String[] Unique = {"C", "Ruby"}


I have a SQL Server 2008 instance and one table is quite large (log data) so I delete old logs. Now I start to read articles on this problem, .  As I see it there is no solution! If I shrink the database and then rebuild the index, the database will be about the same size as before. If I don't rebuild the index, the database will shrink, but performance will be low, which is not an option.  So shrinking for production databases seems not to be an option. Is there any solution? Does deleting from the database make any sense? How do big companies delete log data from their databases?


What is this ICON -circle with a plus sign in the middle?

This icon showed up a few days ago, but I have no clue what it is. I have done a Google image search and can't find it.  This is on my Samsung S7 in the notification bar.


Showing that a function is not differentiable

I want to show that $f(x,y) = \sqrt{|xy|}$ is not differentiable at $0$.  So my idea is to show that $g(x,y) = |xy|$ is not differentiable, and then argue that if $f$ were differentiable, then so would $g$ which is the composition of differentiable functions $\cdot^2$ and $g$.  But I'm stuck as to how to do this.  In the one variable case, to show that $q(x) = |x|$ is not differentiable, I can calculate the limit $\frac{|x + h| - |x|}{h}$ as $h\to 0^+$ and $h\to 0^-$, show that the two one-sided limits are distinct, and conclude that the limit $$\lim_{h\to 0}\frac{|x + h| - |x|}{h}$$ does not exist.  The reason this is easier is that I do not have to have in mind the derivative of the function $q$ in order to calculate it.  But in the case of $g(x,y) = |xy|$, to show that $g$ is not differentiable at $0$, I would need to show that there does not exist a linear transformation $\lambda:\mathbb{R}^{2}\to\mathbb{R}$ such that  $$\lim_{(h,k)\to (0,0)}\frac{\left||hk| - \lambda(h,k)\right|}{|(h,k)|} = 0$$  I thought of assuming that I had such a $\lambda$, and letting $(h,k)\to (0,0)$ along both $(\sqrt{t},\sqrt{t})$ and $(-\sqrt{t},-\sqrt{t})$ as $t\to 0^{+}$, but this didn't seem to go anywhere constructive.


I want to make a shell alias that starts a certain program and also changes the title of the terminal to the name of the program.  How can I do that?  In case it matters, I am running the terminal on Ubuntu and connecting to a Debian server via ssh.


How do I ripen unripe oranges and grapefruits?

Sometimes when I buy oranges or grapefruits I find out that they are rather unripe when I get them home. How do I ripen them?


'HTTPS security is compromised by res://ieframe.dll' error in IE

I've noticed that I get this string of errors in IE in my SharePoint Online sites.    SEC7111: HTTPS security is compromised by res://ieframe.dll/forbidframing.htm SEC7111: HTTPS security is compromised by res://ieframe.dll/ErrorPageTemplate.css SEC7111: HTTPS security is compromised by res://ieframe.dll/errorPageStrings.js SEC7111: HTTPS security is compromised by res://ieframe.dll/httpErrorPagesScripts.js SEC7111: HTTPS security is compromised by res://ieframe.dll/red_x.png SEC7111: HTTPS security is compromised by res://ieframe.dll/bullet.png SEC7111: HTTPS security is compromised by res://ieframe.dll/background_gradient.jpg   Anyone know what causes this and/or how to fix?    I've seen similar posts in SO not related to SharePoint, but always get the same ones in my SP sites (compared to other files in other sites) so thought it might be worth a post here.  I have tried some of the solutions I have found, but haven't had any luck.  I thought the most likely case would be something to do with Internet Security Options like this post mentions: .  I didn't have any luck with the answer there though.


How to bypass the "secure connection failed" warning in Firefox 33

Since installing Firefox 33 a "Secure Connection Failed" error is no longer  using the "I Understand the Risks" button - it's gone!  Is it still somehow possible to ignore certificate errors? (e.g. for lazy use in local environments) Error code: sec_error_invalid_key


A standard document (e.g. scrreprt) uses roman font family for text and Sansserif font family for titles etc. It is the other way round in beamer. How can I switch the two font families? Or why do beamer define the font families in this way?  For the background: I think this is my problem when using formulas, because they use the Sansserif font instead of the roman version. Formulas using the euler package look really poor.  P.S.: I compile with LuaLaTeX using TeXlive 2013.


I've been experimenting with recursive sequences lately and I've come up with this problem:     Let  $a_n= \cos(a_{n-1})$ with $a_0 \in \Bbb{R}$ and $L=[a_1,a_2,...,a_n,...].$   Does there exist an $a_0$ such that $L$ is dense in $[-1,1]?$     I know of $3$ ways of examining whether a set is dense:  $i)$The definition, that is, whether its closure is the set on which it is dense, in our case this means if: $\bar L=[-1,1]$.  ii)$(\forall x \in [-1,1])(\forall \epsilon>0)(\exists b \in L):|x-b|<\epsilon$ $iii)$ $(\forall x \in [-1,1])(\exists b_n \subseteq L):b_n\rightarrow  x$   So far I haven't been able to use these to answer the question. I tried plugging in different values of $a_0$ and see where that leads but I have not found any corresponding promising "pattern" for $a_n$. Any ideas on how to approach this?


What to do with questions too old for migration

I have just run into . As comment below states, this question fits perfectly to the Programmers and in the same time is a nearly perfect example of an off-topic question at SO (chit-chat discussion like question). However, I can't flag it to be migrated to Programmes. It is too old.  How to handle such questions? I don't think, it should remain at SO only cause it's to old for migration.


Does any one know how to find and replace text in a file. it can be implimented into a bash file. i would like to find the line and the output the text to it the file can only be opened with the root sudo account.


Every number is the sum of three squares with signs

The question. Can every $n\in \mathbb N$ can be written: $$n=a^2\pm b^2\pm c^2$$ where $\pm$ are signs of your choice?  We know with  that every integer can be written as the sum of four squares. Plus, with have  stated that an integer can not be written as the sum of three squares if, and only if, it is of the form: $$4^k(8n+7).$$ So we just have to prove (or disprove) it for every number of this form. I have checked it until $55$, and it seems to work so far. So the number we have to check are . For instance: $$31=6^2-2^2-1^2$$ and $$39=6^2+2^2-1^2.$$ The issue here is that $a$, $b$ and $c$ can be arbitrarily large. For instance: $$183=14542^2-14541^2-170^2.$$ So I don't really know how to prove or disprove this result, and I think it could go either way.


Let me filter jobs by the employer's Joel Test Scores

Can we have a filter to hide job postings without a certain Joel Test Score or certain Joel Test Score items checked off?  Basically, I don't want to have to sift through jobs without their Joel Test Score visible, a low test score, or certain items not checked.  For, example, there are two filters on the right hand side for: "Work remotely", "Offers relocation", we can add "Passes Joel Test with 9+", or "Shows Joel Test Results"  If not can we have this as a premium option?  Rough possible mockup:


I was using Visual Studio for 2 years in Windows, but now I am using Ubuntu. Are there any other IDEs to use that are as high quality as Visual Studio? Please don't tell me the name of another IDE that tells me to download 5 GB of files before I can even test it, and then I'm supposed to try to run the whole thing with Wine. I want to use it in Ubuntu as an application for Linux, not install a Windows application in Ubuntu with Wine.


What is the rank of the matrix consisting of all permutations of one vector?

Let $a=(a_1,...,a_n)^\top\in\mathbb{R}^n$ be a column vector and let $M_1,...,M_{n!}$ denote all $n\times n$ permutation matrices. When is the rank of the matrix that consists of all possible permutations of $a$: $$ A=[M_1 a \,|\; ... \; |\, M_{n!} a]\in\mathbb{R}^{n\times n!} $$  equal to $n$? Obviously, $rank(A)\le n$ and if all entries of $a$ are identical, then $rank(A)=1$. Moreover, if $A$ has rank $n$, then there exist two entries $i,j$ s.t. $a_i\not=a_j$. Is the converse statement also true?


PGFPlots: importing data from a txt file

So I imported data from two txt files.  However, I would like to plot the mean of the data and then the standard deviation bars.  How can this be done?  \documentclass[tikz, convert = false]{standalone} \usepackage{pgfplots}%                                                             \pgfplotsset{compat = 1.8}%                                                        \begin{document} \pgfplotstableread{FRETData.txt} \datatable%                                                                        \pgfplotstableread{FRETData2.txt} \datatabletwo%                                                                     \begin{tikzpicture}   \begin{axis}[ymin = 0.16,     ymax = 0.22,     minor y tick num = 5,     xmin = -6.7,     xmax = -6.2     ]     \addplot table[y = 1] from \datatable;     \addplot table[y = 1] from \datatabletwo;   \end{axis} \end{tikzpicture} \end{document}     From the picture, we see that pgfplots has connected two separate experiments.  How can I remove the line?  Can pgfplots calculate the mean for each experiment and put standard deviation bars?  Edit 1:  So to remove the lines, I added only marks option.


Make a web listener class publicly available

I am implementing a web listener class and want to listen to POST requests. @RestResource(urlMapping='/MyListener/*') global with sharing class ListnerClassTest {     @HttpPost     global static String makeAction (String ID, String Value) {         return 'Got it!';     } }  When I make POST requests to this class, I am getting 401 unauthorized error. Can someone help me how to expose my class for apps to make post request without oauth or authentication.Thanks for the help.


How to avoid reference issue with array append in python

Let's take the following code  board = [[0,0,0],[0,0,0],[0,0,0]] versionsOfBoard = [] versionsOfBoard.append(board); #this will keep the versions of board array print(versionsOfBoard); # output # [[[0,0,0],[0,0,0],[0,0,0]]] # later I change few values in the board and append 'board' to my versions array board[0][0] = 1 versionsOfBoard.append(board) print(versionsOfBoard) # output # [[[1, 0, 0], [0, 0, 0], [0, 0, 0]], [[1, 0, 0], [0, 0, 0], [0, 0, 0]]] # if you notice here, the 0th index value is also changed board[1][2] = 1 versionsOfBoard.append(board) print(versionsOfBoard) # output # [[[1, 0, 0], [0, 0, 1], [0, 0, 0]], [[1, 0, 0], [0, 0, 1], [0, 0, 0]], [[1, 0, 0], [0, 0, 1], [0, 0, 0]]]   Every index value displays the latest state of 'board'. it is referencing the board. I have tried with .append(board[:]) and .append(board.copy()). Both these options too do not solve the problem.  Any help would be highly appreciated


Storing value in two variables and changing one affects both variables in Javascript

I have  an object "a" and would like to duplicate it to "b"  When I delete an element in "a" why is "b" also being affected?  var a  = {'apple':1,'orange':2,'grapes':3} var b = a   console.log(a,b) delete b.apple console.log(a,b)   Now a and b are the same. I only want the element in b to be deleted.  How can I do this


is there a possibility to remove old files and folders from the complete GIT repository (also in all commits)? I´m using GIT 1.9 and Gitlab 6.8.


Proving that $n \over 2^n$ converges to $0$

I'm completely clueless on this one. I can easily calculate the limit using L'Hopital's rule, but proving that the series is converging to 0 is far more tricky.  $$a_n= {n \over 2^n}$$   Any help?


I think "were" is the right answer, but still I want an opinion on this. So is it "was" or "were" in the sentence given below?     There ...... only fifty rupees in my pocket.


Move whole content from a flash drive into system using terminal

I am working on an project which is based on system security.I want to move all data from a flash drive into my system hidden folder.But I don't know how can i do this in a single terminal command(bash). Is there any way to do this in Ubuntu?  For example: There are 50 folders in a USB flash drive.Now I want to copy all folder in system and then format the pendrive or simply move data form a pendrive.So how can i do this? I hope you guys understand my question.  Thanks in advance


I couldn't find the notation for the external set of all positive unlimited real numbers.  It's like the symbol of infinity with a slash over it  I've tried \ninfty in fashion of \nequal  but it didn't work  you can find this notation in this book


Can store bought salmon be used for sashimi?

Is it safe to consume raw fish purchased at the fish counter of a typical suburban grocery store? If not, do you have any tips for finding sushi grade fish. Also, are there requirements for safe sushi/sashimi beyond the use of safe fish?


Type '"deb' is not known on line 1 in source list

I am relatively new to Ubuntu and especially to using terminal commands. I love the system and regret not having discovered it years ago.      In playing around with it and tweaking my system (Ubuntu 13.04) I have somehow lost control of my terminal function. When I attempt to run a command in the terminal I get an error msg.:  E: Type '“deb' is not known on line 1 in source list /etc/apt/sources.list.d/virtualbox.list E: The list of sources could not be read.   Is there any way for me to regain control of the terminal and/or stop the "virtualbox error?"


How to add a letter to the numbering of lemmas

I would like two of my lemmas to be numbered additionally by letters, e.g. Lemma 2a. and Lemma 2b, while the all other lemmas (and theorems etc.) are numbered normally by numbers. \newtheorem{lemma}{Lemma} \begin{document} \begin{lemma} This should be Lemma 1. \end{lemma} \begin{lemma} This should be Lemma 2a. \end{lemma} \begin{lemma} This should be Lemma 2b. \end{lemma} \begin{lemma} This should be Lemma 3. \end{lemma} \end{document}  Duplicate, I guess: tex.stackexchange.com/q/43346/4427


Canonical Isomorphism Between $\mathbf{V}$ and $(\mathbf{V}^*)^*$

For the finite-dimensional case, we have a canonical isomorphism between $\mathbf{V}$, a vector space with the usual addition and scalar multiplication, and $(\mathbf{V}^*)^*$, the "dual of the dual of $\mathbf{V}$." This canonical isomorphism means that the isomorphism is always the same, independent of additional choices.   We can define a map $I : \mathbf{V} \to (\mathbf{V}^*)^*$ by $$x \mapsto I(x) \in (\mathbf{V}^*)^* \ \text{ where } \ I(x)(f) = f(x) \ \text{for any } \  f \in \mathbf{V}^*$$  My Question: what can go wrong in the infinite-dimensional case? The notes I am studying remark that if $\mathbf{V}$ is finite-dimensional, then $I$ is an isomorphism, but in the infinite-dimensional case we can go wrong? How?


Cloud page collects an attachment which needs to be sent to salesforce

Client is using a cloud page as a sign up form and the attendee must attach documentation in order to sign up.  We would like to send that attachment via the connector from Marketing Cloud over to Salesforce and attach it to a SF object.  Any ideas how this could be done?


I have printable text in a file (header.txt):  ******************* * $string *******************   and I have the script (generate.sh):  prn_header () {    string=$1    echo $(<header.txt) }  prn_header I_want_this_text_for_the_header   and the output is exactly the same like the header.txt.  My problem is: how can I get the template from a file, but substitute the needed variable in it before printing?  In real, I have many text pieces in files, and the result builded from them.


What is the difference between CentOS "DVD" vs "Everything" ISOs

What is the difference between the DVD ISO and the Everything ISO?  These options are presented on the CentOS  but there is no explanation as to what the difference is.


Why is it not possible for equipotential surfaces to intersect in this case?

My textbook reads “ Two equipotential surfaces can never intersect because if they did, at the point of intersection, the field would have to have two directions (perpendicular to each surface) which is clearly absurd..” I understand the fact that if there were to be a non-zero field at each point of the surface then since the surface is equipotential the Field must be perpendicular to the surface at each point. But, is it also not possible that the field be zero throughout the two surfaces somehow? In that case, considering the fact that the surfaces must have the same potential . According to me, the argument given in my textbook does not refute such a case. Is it possible? Thanks in advance!


Prove that $\mathbb P(X>Y) =\frac{b}{a + b}$ if $X, Y$ are exponentially distributed with parameters $a$ and $b$.

Let $X, Y$ be an exponentially distributed random variables with parameters $a, b$. Then $X$ has pdf:    $$f_X(x) =\begin{cases} a e^{-a x},& x\geq 0\\ 0,& \text{otherwise}.\end{cases}$$ Suppose $X$ and $Y$ independent. Show that $$\mathbb P(X>Y) = \frac{b}{a+b}.$$   Now I thought the following: $$f(x,y) = f_X(x)\ f_Y(y) = abe^{-ax -by},\qquad\text{for } x,y > 0.$$ And then $$\mathbb P(X>Y) = \int_0^\infty \int_0^x a b e^{-ax -by}\,dydx$$ However, if I solve this (manually or using Wolframalpha), I can't seem to end up with $\frac{b}{a+b}$. Any ideas?


Why is there free space at the end of NTFS Partitioned Drives?

I've been wondering this for a while, why is there free space at the end of a drive that was formatted to NTFS in windows?  You can only see the unallocated space in Linux. So why is it there? Does it serve a purpose?


PHP subtraction with a value more than 63

In php arithmetic operation   <?php $lower = floor(63.1);  $value = 63.1;  echo $value - $lower;die; ?>   i get the answer as 0.1, but when i do the same for      64.1-64 i get the result as  0.099999999999994 Why is it so?


There are a number of questions on this site about the protection spell that Lily gave to Harry through her death, but one question doesn't seem to have been touched on:  Why aren't such spells commonplace?   and its answers make it clear that the intention to sacrifice yourself is a vital part of the spell, but even so, would that really be so uncommon?  The books make it sound like Harry's protection is incredibly rare, even unique.  But Rowling herself, quoted in that question, says...     Now any mother, any normal mother would have done what Lily did.   And not just mothers! Many fathers and grandparents would likely do the same, even friends or lovers.  Wars and armed conflicts inevitably lead to stories of comrades "throwing themselves on the grenade" to save their cherished friends.  Hell, plenty of famous/powerful people have bodyguards whose whole job is to "jump in front of the bullet."  Now maybe a Secret Service officer doesn't have enough love for his protectee to make the spell work, but within the novels I'm sure Harry, Ron, and Hermione would have been willing to sacrifice themselves for the others at any point, and that certainly would have been out of love.  Now, I'm not saying that everyone has people sacrificing their lives for each other everyday, but wouldn't that kind of protection spell still be fairly commonplace?  Especially during a time of strife, like during Voldemort or Grindelwald's rise and reign?  It seems like the more dangerous the era, the more often people would be making this kind of sacrifice.  Why would this kind of spell be so rare, given how natural the impulse to protect your loved ones is?


Why does vim complain "no version information available" for libtinfo?

Every time I run vim, it opens successfully but outputs the error message vim: /usr/lib/libtinfo.so.6: no version information available (required by vim). I already have libtinfo installed: ➜  repo ls -l /usr/lib/libtinfo.so.6 lrwxrwxrwx 1 root root 16  2月 13  2020 /usr/lib/libtinfo.so.6 -> libncursesw.so.6  but the message still pops out every time. My question is: How do I fix it? Why is the message shown?


Yet another flag status question...  However I've read that:      A flag's status will never change once it has been set.            From:     And I've also found that when:      A spam or "rude or abusive" flag is cleared (but not declined) by a moderator [results] in a flag being disputed.   [...]   This can also be done retroactively, in which case the outcome will change from helpful to disputed. (*)            From:    (*) Notice this was recently  .    So, which is it?   Was there a change in this behaviour? Provided the status could actually change, how exactly is it that it's done retroactively? Does it mean a moderator is allowed to change spam/abusive flag from helpful to cleared? Are there any other paths where a flag status would be modified after it has been set?


natbib - authoryear citations displayed as brackets [1]

I'm trying to use harvard style referencing, and thouhgt I had it figured out, but the citation is shown with brackets.  Here is my sample doc:  \documentclass[a4paper,norsk,11pt,twoside]{report} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[norsk]{babel}    \usepackage[authoryear]{natbib}  \begin{document} I følge Andersen m.fl.\citep{Erdos65} har... \bibliography{myref} \bibliographystyle{plain} \end{document}   and my myref.bib document in the same folder:  @article{Erdos65, title = {Some very hard sums}, journal={Difficult Maths Today}, author={Paul Er and Arend Heyting and Luitzen Egbertus Brouwer}, year={1930}, pages={30} }   The output is "I følge Andersen m.fl.[1] har..."  So it seems that the reference to the .bib file is ok.  I added the authoryead option to natbib - but is did not change anything.  I have tried to delete all generated files.


/testfor at least 10 specific items in the Inventory

This is the command I entered in the command block: testfor @p {Inventory:[{id:minecraft:diamond,Count:10}]}  But it doesn't seem to work. What am I doing wrong?


Troubles installing nvidia driver on 18.04 fresh install

I installed the nvidia drivers using the Software & Updates GUI. Alas, when trying to install  I realized that something was not working:  ignacio@ignacio-XPS-8930:~$ nvidia-smi -a NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA  driver. Make sure that the latest NVIDIA driver is installed and running.   This screenshot shows that ubuntu is telling me that the nvidia driver is installed    How can I fix this?


Compass delimited list separator - how to set to –

I am using SASS/Compass to create a breadcrumb with the Compass mixin "@include delimited-list();"  I have a variable called $breadcrumb-separator: " > "; so that I can change the character out in different situations.  My css is: ul.nav {@include delimited-list($breadcrumb-separator);}  How can I change the use of the character ">", to use the en dash(&#8211; or &ndash;) entity?


How many decimal places should be used for which purposes?

Let's say that $x$ is some statistic that represents your measurement of something in nature, such as (say) the sample average of human height in a country.  Suppose that your measurement of $100$ randomly chosen objects (e.g. people) you find out that $x=179.0234234524312123545990088$.  Obviously many of these decimal places are probably highly likely to be due to noise, and will probably change drastically if I re-sample again. One may use eyeballing, and follow his feelings to choose (say) only 4 decimal places, thus writing down $179.0234$.  My question is: Is there any principled approach to decide how many decimal places should be chosen in order write down the number $179.0234234524312123545990088$ for various uses?  For example, should we write $x$ as $179.02342$? $179.0234$? $179.023$? $179.02$? $179.0$? Or maybe just $179$ if the statistic is too unstable to render its fractions meaningful?  So far I have been using my guts/feelings/eyeballing to decide what to display for a final answer. Usually I just choose $4$ decimal places. So usually I would write down $179.0234$.  But the problem is that my approach so far is not principled, and is rather based on guesses/feelings/eyeballing.  I wonder if there is any principled approach that can settle this debate down once and for all? For example, how many significant places should be used for computation and how many for display? There have been prior answers for display of results, for example,  and  but I do not feel that these addresse the issue of propagation of error during calculations.


Using two .bib files with biblatex package

I am currently using    \usepackage{biblatex}   and I have two different  .bib files:  First_bib_File.bib Second_bib_File.bib   The following command does not work  \addbibresource{First_bib_File.bib ,  Second_bib_File.bib}   What alternative command should I use to simultaneously use the two .bib files?


Evaluate the sum of series convergent series

Compute     $\sum\frac{1}{n^2(2n-1)}$ assuming that $\sum\frac{1}{n^2}$ = $\frac{\pi^2}{6}$ If we multiply and divide the fraction by 2n+1 we get $\sum\frac{2n+1}{n^2(4n^2-1)}$ but still I couldn't proceed.  How to use $\sum\frac{1}{n^2}$ = $\frac{\pi^2}{6}$ to evaluate the series sum?


How can i increase internal storage space,on my LG tribute?

Is there anything i can buy to increase my phones internal storage? I.e. a larger sd or sim or an app for my LG tribute? Plz help always getting the annoying "low storage" i currently have a 4gig external sd...thanks


Restrict Access of Synchronized Data Extesion

We have requirement to restrict access of Sync DE using custom Role Setting to some users , is it possible to restrict access of Synchronized DE in Email Studio and Contact Builder using Role and permission or with some other way?


Number before section name does not appear

Why isn't there a number before the section name?  \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} \usepackage{csquotes}  \usepackage{titlesec} \titleformat{\section}{\large\scshape}{\thesection}{1em}{}  \begin{document}  \renewcommand\abstractname{\normalfont\large\textsc{Abstract}} \begin{abstract} Some abstract \end{abstract}  \renewcommand\contentsname{\centering\normalfont\large\textsc{Contents}} \tableofcontents  \section{Some section}  \end{document}


What is the importance of last axiom of vector space. Axiom is $1u=u$.


Are "beginner questions" allowed on Stack Overflow?

I noticed that  (about basic  syntax) received a lot of downvotes as soon as I posted it. Is there any specific policy against the posting of questions with "obvious" answers on Stack Overflow?  I'm unclear as to why questions with "obvious" answers aren't usually well-received by the community - are beginner questions considered harmful for some reason? ("Obvious" is a relative term, of course - this type of question would be helpful to anyone who was learning C# for the first time, but it wouldn't be helpful to an experienced C# developer.)


Difference between mac and desktop version of Lubuntu

I do not understand the difference between . I am going to run it on Vmware Fusion on a mac, does it will make a difference ?


after login that will redirect user role into a page

I am trying to create a hook that when a user login, it check the user role.. if the user role is jsa_contributor then it redirect into specific page. but it seems my code didn't work.  This is the code..  function my_login_redirect($login) {     $data_login = get_option('axl_jsa_login_wid_setup');     $redirect_page = $data_login[0];      $logout_redirect_page = $data_login[1];      $current_user = get_user_by('login',$login);     if($current_user->roles == 'jsa_contributor'){         wp_redirect(get_permalink($redirect_page)); /* Redirect browser */         exit();     } }  add_action('wp_login', 'my_login_redirect', 99);   does anyone have an idea about this? thanks in advance...


Mapping a value in a normal distribution

I apologize in advance for misuse of terminology.  If given a number $x$ from a normal distribution with mean 0 and standard deviation 1, how can I map that onto another distribution with a different mean $m$ and standard deviation $s$?  Is it simply $m + s\,x$ ?  Clarification - the real-world problem I'm trying to solve: I would like to generate random numbers in a normal distribution for which I know the mean and standard deviation, however, I can only generate random floating point numbers in a distribution with mean 0.0 and stddev 1.0. How can I translate or "map" this value onto a different distribution?


Beamer: no text after title page with "show notes on second screen" using XeLaTeX

Problem  I want to show notes on the second screen in my XeLaTeX beamer presentation but this causes all text to disappear after the title page. How can I get the text to be shown?  Minimal Working Example  \documentclass{beamer} \usepackage{pgfpages} \setbeamertemplate{note page}[plain] \setbeameroption{show notes on second screen} \begin{document}                                                                                \begin{frame} This text is shown. \end{frame}  \begin{frame} \titlepage \end{frame}  \begin{frame} This text is NOT shown. \end{frame}  \end{document}   Versions  $ xelatex --version XeTeX 3.14159265-2.6-0.99996 (TeX Live 2016/TeX Live for SUSE Linux) kpathsea version 6.2.2 [...] Compiled with ICU version 52.1; using 52.1 Compiled with zlib version 1.2.8; using 1.2.8 Compiled with FreeType2 version 2.6.3; using 2.6.3 Compiled with Graphite2 version 1.3.1; using 1.3.1 Compiled with HarfBuzz version 1.4.5; using 1.4.5 Compiled with libpng version 1.6.8; using 1.6.8 Compiled with poppler version 0.42.0 Compiled with fontconfig version 2.11.1; using 2.11.1


How do you unlock all of the characters in SSB4?

Here is a list of all the unlockable characters in super smash brothers for the 3DS. How do you unlock them all? Do you have to beat the game a certain number of times like the other super smash games?  Unlockable Characters:   Ness Falco Wario Lucina Dark Pit Dr. Mario R.O.B. Ganondorf Mr. Game & Watch Bowser Jr. Duck Hunt Jigglypuff


I wrote a custom .sty file to put all my don't-want-to-carry-around definitions, which provides a new package for me. Now, if I want to use it with TeXstudio (that's what I use for typesetting), TeXstudio doesn't seem to find it (wiggly-underlines it as in "what's that package"). Whenever I want to use a command defined there, TeXstudio can't find it (won't autocomplete (as done with other packages) and highlights it as in "whoa that's a wrong command"), however compiles nicely without errors, as if everything was well-defined.   Why doesn't it recognize the package (and thus won't autocomplete or recognize the commands)?


Does the canonical commutation relation give a unique solution for the momentum operator?

So lets say we are in a 1d system and in the position basis just for simplicity.  The  is: $$ [x,p]=i $$ and the momentum operator is $-i\partial_x$.  Is this solution unique or are there other operators which could satisfy the commutation relation.  Similarly, in QFT does the commutation relation $[\phi(x),\pi(y)]=i\delta(x-y)$ uniquely specify that (in the eigenbasis of $\phi$) $\pi(x)=-i\frac{\delta}{\delta \phi(x)}$?      Obviously these are a solution to the algebra, but are they unique?


Redirect to edit page and then to detail page from apex

I am trying to deep clone the objects. I got the code for deep cloning from a blog  which is working perfectly for me. I have parent object as opportunity and child object as Line_item__c. After clicking clone button i want to be redirected to edit page. So i replaced   return new PageReference('/' + headClone.Id);   With:  return new PageReference('/' + headClone.Id + '/e');   But now it is redirecting me to home page on clicking save or cancel from edit page. Rather i would like to go detail page(which is a custom page) of newly cloned record on clicking save and old record detail page on clicking cancel.Please guide.


Div vertical align, what am I doing wrong?

Here is my code, I just can't get the login div to sit vertically aligned.  Code:    main {  display:flex; } .loginForm {  margin: auto; }  footer {     position: absolute;     bottom: 0;     left: 0; } <html> <head> <meta charset="UTF-8"> <title>Untitled Document</title> <link href="includes/css/basic.css" rel="stylesheet" type="text/css"> <link href="includes/css/layout.css" rel="stylesheet" type="text/css"> </head>  <body>   <main>   <div class="loginForm">    Login   </div>  </main>  <footer>   Footer  </footer> </body> </html>     But it just doesn't work. Can anyone give me any advice?


Erection problems happen mostly with men.  What causes it and what is happening in the body?


How to fit a distribution of censored data?

I have a right censored data set and want to fit a distribution to my observations. How does maximum likelihood estimation work on censored data and are there any issues that I need to consider?


How to specify batch (.command) file current location in Mac OS X

I have a batch file (.command) that I double click to do work. It has dependencies on files in the same folder, but if I double click the .command file it just launches and assumes the current location is /~  How do I find/specify the location of the .command file in the script itself, so I can refer to relative assets?


Python breaking a single list into multiple sublists

In python I want to take a list and break it into a list of lists. If I have a list that is 20 numbers long, I want to turn it into a list of two lists, each 5 numbers long.  Input  nums = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]  Output  new_nums = [[0, 1, 2, 3, 4], [5, 6, 7, 8, 9], [10, 11, 12, 13, 14], [15, 16, 17, 18, 19]]


How to attach javascript function while dynamic creating the element.  Thanks


Let's call "characteristically simple" such groups, that do not have proper non-trivial characteristic subgroups. Does there exist some sort of classification of finite "characteristically simple" groups?  All simple groups are "characteristically simple", but not all finite "characteristically simple" groups are simple. For example, if $G$ is a simple group and $n$ is a positive integer, then $G^n$ (a direct product of $n$ copies of $G$) is "characteristically simple", but, if $2 \leq n$, it is not simple. It will be interesting to know, whether there are "characteristically simple" groups not of that form.


Fibonacci sequence and Euclidean algorithm's connection.

Let $f_1, f_2,\dots,f_i,\dots$ be the Fibonacci sequence with $f_1=f_2=1$. For any $a,b\in\mathbb{N}$ with $a<b$, suppose the Euclidean algorithm takes $n$ long divisions to compute $\gcd(a,b)$. If $a\le f_j$, then $n\le j-1$, for $j\ge2$.   I want to prove this problem. But I can't see any connection between Fibonacci and Euclidean algorithm. If anyone can give a hint about first step, it will be very thankful.  My guess is to use induction.


What is the equation for the scale factor of the universe, a(t), for the best fit of data to the $\Lambda CDM$ Model of Cosmology?

Ideally I like a single formula or multiple formulas for different time ranges that would cover the time from the end of inflation through 100+ billion years after the big bang using  the $\Lambda CDM$ Model.  I know that from the end of inflation back to the time of the big bang would be much more speculative, but some wild estimate would be appreciated for that time range also!  The Friedmann–Lemaître–Robertson–Walker metric defines the scale factor, a(t), from the metric: $$-c^2d\tau^2 = -c^2dt^2+a(t)^2d\Sigma^2$$ where $d\Sigma^2$ ranges over the 3 dimensional space of the universe and does not depend on time. Usually the scale of the scale factor is set by defining  $a(t_{now}) = a(13.78 B yr) \equiv 1$


In Gmail, what is the safest way to download, save & print all emails with a given label?

Attempting to securely download all the emails with a given label in Gmail, save them to a single file, and print that file.


Are there parabolic and elliptical functions analogous to the circular and hyperbolic functions $\sinh$, $\cosh$, and $\tanh$?

Are there parabolic and elliptical functions analogous to the circular and hyperbolic functions $\sinh, \cosh$, and $\tanh$? Also, in matters of conic sections, are there other properties such that it helps to group the circle and hyperbola in one, and the parabola and ellipse in the other?


Whenever I boot my computer, I do not get any boot-menu to choose OS. It neither boots until I keep pressing ENTER (return). When it finally boots, it boots into UBUNTU and not windows. When earlier I used to get boot-menu, UBUNTU was the first option so presumably on pressing ENTER it is booting in UBUNTU.   Here is output from boot-repair.   The boot repair doesn't recognize Windows 10 installation in sda4:


Is is possible that a software issue could be causing spotty USB-C connections on 2017 MacBook Pro?

I have a 2017 MacBook Pro. It has 2 USB-C ports on the left side and I use an Aukey hub to provide more ports (4 USB, 1 HDMI, 1 USB-C) and always to connect two monitors.   I connect one monitor through the hub with the HDMI port and another directly to the MBP with a USB-C adapter. Sometimes when I connect the hub to the Mac and the 2nd monitor to the Mac, it works as it should with no problem...but more than half the time I have to connect, disconnect, jiggle, jangle, switch ports, reconnect HDMI, etc. and hopefully they will both work. OFTEN, I can only get one monitor to fire up.  Is there any kind of software fix or reset that might solve this issue? Any other thoughts welcome. Thanks.


How to use dynamic variable between regular expression


Is training loss guaranteed to decrease for stochastic gradient descent?

When performing stochastic gradient descent, it is necessary for the training loss to decrease  a) between iterations in an epoch? (I think the answer is no)  b) between epochs? (I think the answer is yes)  The training loss is always defined using the entire dataset.


How to replace a microSD card formatted as internal storage?

I've got a Motorola Moto G 2 with Android 6 Marshmallow and an old microSD 8Go formatted as internal storage. Today, I would like to replace it with a new one, bigger and faster one.  BUT, I would like to save all the content (especially some app content, etc.)  Usually (with non formatted as internal storage cards) I switch off the phone, remove the SD card and copy it's whole content. But this time, the phone has to be running and thus, some folders (especially "Android") cannot be copied.  Will I lose come content ? Can I make a copy of this folder ?


Cannot remove codeblocks using apt-get - Ubuntu 14.04

Whenever I try to run sudo apt-get remove codeblocks I am met with this message:  The following packages have unmet dependencies:  codeblocks-contrib : Depends: libgamin0 but it is not going to be installed                       Depends: libwxsmithlib0 (= 13.12-1) but 13.12-3 is to be installed                       Depends: codeblocks (= 13.12-1) but it is not going to be installed                       Recommends: cppcheck but it is not going to be installed                       Recommends: cscope but it is not going to be installed                       Recommends: cccc but it is not going to be installed  codeblocks-dbg : Depends: codeblocks (= 13.12-3) but it is not going to be installed                   Depends: codeblocks-contrib (= 13.12-3) but 13.12-1 is to be installed  libwxsmithlib0 : Depends: libcodeblocks0 (= 13.12-3) but 13.12-1 is to be installed                   Recommends: codeblocks-contrib (= 13.12-3) but 13.12-1 is to be installed  libwxsmithlib0-dev : Depends: libwxsmithlib-dev (= 13.12-3) but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).   I then try to use sudo apt-get -f install, there's a prompt to install some software then I'm met with this message and error:  Unpacking codeblocks-dev (13.12-3) over (13.12-1) ... dpkg: error processing archive /var/cache/apt/archives/codeblocks-dev_13.12-3_amd64.deb (--unpack):  trying to overwrite '/usr/include/codeblocks/externaldepsdlg.h', which is also in package codeblocks-headers 13.12-1 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing:  /var/cache/apt/archives/codeblocks-dev_13.12-3_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   Any suggestions? I've tried sudo apt-get remove codeblocks, but i'm met with nearly the same unmet dependencies error as before.  The reason I am trying to remove codeblocks is that I am trying to install gnome-themes-standard, but I was met with a similar unmet dependencies error (same packages listed). I'm guessing that something with the apt-get may be corrupted: I recently dual-booted windows 10 and moved a few OS partitions around.   Solutions I have tried:   sudo dpkg --configure -a Removing codeblocks-contrib and libwxsmithlib0  sudo apt-get autoclean sudo apt-get clean   If anyone knows how to fix this, please help.    If anyone is curious, I did get these errors when I used sudo apt-get update while writing this  Reading package lists... Done W: GPG error: http://download.opensuse.org  Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5A7D1D38BEB6D886 W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B70731143DD9F856     EDIT   So I was able to actually solve the GPG error with http:\\ppa.launchpad.net through  which is summarized here:   I copied the current pubkey that is output (B70731143DD9F856)   Searched the key in keyserver.ubuntu.com as a hexidecimal (bascially formatted with a 0x => 0xB70731143DD9F856) Pressed the pubkey link   Copied the entire textblock (includign the ---begin--- and    ---end--- lines) Pasted it into a text editor, saved it as key1  Ran sudo apt-key add key1 in key1's directory then received an OK   and when I reran sudo apt-get install, the error on ppa launchpad was gone, but the other GPG error persisted. Trying this method with the opensuse error does not work as a search in the Ubuntu keyserver turns up nothing


Since we are talking about mechanical drives that are below the 300MBps SATA2 can provide I suspect there would be no difference, but I was just wondering of other differences...


I am currently dealing with current mirrors and came across the circuit shown below, a High-Swing Cascode Current Mirror. I read that this implementation, as the name suggests, has the advantage of a high voltage headroom, since the minimum potential at the drain terminal of M4 is: $$ V_{D4\_min}=V_{DS4}+V_{DS2}=(V_{GS4}-V_{TH})+(V_{GS2}-V_{TH}) $$ So the drain potential at M4 only needs to be twice the overdrive voltage, in case of same transistor dimensions, in order to hold M2 and M4 in saturation. But cannot this be said for many other cascode current mirrors, since that behaviour simply occurs by "stacking" together two transistors (M2 and M4)? Additionally, why is there a connection from the gate of M1 to the drain of M3? I have a hard time understanding whats going on in this circuit, help is greatly appreciated.    EDIT: A bias voltage source is setting the potential at the gate of M3/4. Sorry its not shown in the circuit.  EDIT 2: I just read that the mentioned bias voltage is implemented by a MOSFET in diode configuration, . For further discussion lets call it M5.


does anybody have an idea where to get the official win7 iso? All the download links that i found on the web seems to be invalid. (iam not talking about pirated versions from dubious sources. just the iso's of the original installation medias that microsoft provides totally legally)  e.g.:      (looking for german versions)  does anybody have some newer informations?  thanks.


How can I learn to create my own beamer styles?

I'd like to create a custom design for my beamer presentations. How could I achieve this? I have neither found any resources for that nor does the official beamer documentation talk about it. Are there any good resources to start with?


Ubuntu operated from raspberry PI, is it possible?

Is it possible to have Ubuntu put onto a 32gb sd card and be operated from a raspberry PI


Alice walked to the door when the doorbell rang  Alice walked to the door when the doorbell had rung   In (1) it is clear in which order the actions occured. The doorbell rang. Then, Alice walked to the door. So would 'had rung' be still correct even though redundant? In other words, should 'had' necessarily be taken out?


LinkedList vs ArrayList on a specific android example

I return a List from my A class. I would like to remove the first element from the list and add it as the last element to the same list. I did it this way.  myList.add(myList.get(0)); myList.remove(0);   The target hardware is Android OS. Should I code my A class in a way that it returns an ArrayList, or a LinkedList? Which would be better for the following scenarios:   myList has always 100 elements myList has always 10 elements   Maybe I see a problem where there is none. Do you think I shouldn't care for performance in this case, since the problem size is (for both 1 and 2) is small?  I am aware of the saying "premature optimisation is the root of all evil". That's why I am hesitating before changing my implemantation (as for now, my A object returns an ArrayList).


It was the same in Ubuntu 14.04 so I updated my OS to 16.04 hoping that it will automatically get fixed. Issue wasn't resolved so i updated to Ubuntu 17.04 and the problem is still there. I have Windows installed on the other side which works fine.   Edit :   $ lspci -knn | grep -iA3 net  07:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller [10ec:8136] (rev 07)     Subsystem: Hewlett-Packard Company RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller [103c:80c1]     Kernel driver in use: r8169     Kernel modules: r8169 0d:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter [10ec:b723]     Subsystem: Hewlett-Packard Company RTL8723BE PCIe Wireless Network Adapter [103c:804c]     Kernel driver in use: rtl8723be     Kernel modules: rtl8723be


Deﬁne a new addition ⊕ and multiplication on Z by a⊕b = a + b−1 and ab = a + b−ab.

a+b and ab are the usual integer addition and multiplication. You can assume that this new operation forms a ring, say R is the set of integers with these operations. Then does R have zero-divisors? And Are R and Z (the integers) isomorphic?  Any help will be appreciated!


Attaching a database in SSMS gives error

I am accessing SQL Server using SSMS, and a user with adequate permissions.  When this user tries to attach a database by using SSMS (by right clicking on database node and then clicking on attach), they get an error message:     Cannot show requested dialog.   Parameter name: nColIndex      Actual value was -1. (Microsoft.SqlServer.GridControl)        at Microsoft.SqlServer.Management.UI.Grid.GridControl.SetColumnWidthInternal(Int32 nColIndex, GridColumnWidthType widthType, Int32 nWidth)   ...     at Microsoft.SqlServer.Management.SqlManagerUI.AttachDatabase.SetGridColumnWidth(SqlManagerUIDlgGrid grid, Double[] columnWidthRatio, Int32 columnIndex)   ...   If the same user uses a T-SQL command such as below, then it works fine:  CREATE DATABASE [hgnx] ON  ( FILENAME = N'E:\db\hgnx.mdf' ), ( FILENAME = N'E:\db\hgnx_log.ldf' ) FOR ATTACH


I have a persistent obsolete object on the panel. The application was removed several updates ago and I see errors chromium.desktop not found.  I have installed the dconf-editor through which I can see the offending item but I do not see an option to delete it.  I have dconf dumped to a file, removed the offending object from the dump file and then reloaded the edited file. This doesn't remove the object because suppose this is because the dconf database is not over-written by the load but modified in place.  The entry in the dump looks like this :  [org/mate/panel/objects/object-21] launcher-location='chromium-browser.desktop' object-type='launcher' panel-right-stick=false position=320 toplevel-id='top'   It is referenced in the panel definition as one of the objects in this way    object-id-list=['notification-area', 'clock', 'object-0',... 'object-21',...'object-24']   I have tried dconf reset /org/mate/panel/objects/object-21 but it persists  I am missing a step. I could completely clear the dconf database and reload it from the dump   dconf load / < dconf.edited   But I don't see how to clear the database.   Is there another way to remove this object -- or a way to clear the database?


So I have looked at a lot of suggestions from this website already and tried quite a few of them, but they all differ and I get a feeling these are very specific problems for which I lack the expertise to find which exact case applies to me.  Here is my result for systemd-analyze blame  1min 59.160s plymouth-quit-wait.service      33.950s apt-daily.service       7.276s NetworkManager-wait-online.service       2.292s apt-daily-upgrade.service        754ms fwupd.service        397ms dev-sda6.device        375ms systemd-logind.service        362ms plymouth-start.service        230ms NetworkManager.service        209ms udisks2.service        169ms networkd-dispatcher.service        160ms systemd-timesyncd.service        147ms systemd-resolved.service        135ms ModemManager.service        123ms apparmor.service        104ms accounts-daemon.service        100ms keyboard-setup.service         99ms systemd-journal-flush.service         91ms systemd-udevd.service         75ms upower.service         71ms systemd-udev-trigger.service         69ms plymouth-read-write.service         62ms systemd-rfkill.service   And this is what I get from systemd-analyze critical-chain:  graphical.target @2min 330ms └─multi-user.target @2min 330ms   └─kerneloops.service @8.446s +7ms     └─network-online.target @8.441s       └─NetworkManager-wait-online.service @1.164s +7.276s         └─NetworkManager.service @932ms +230ms           └─dbus.service @877ms             └─basic.target @872ms               └─sockets.target @872ms                 └─uuidd.socket @872ms                   └─sysinit.target @868ms                     └─systemd-timesyncd.service @707ms +160ms                       └─systemd-tmpfiles-setup.service @672ms +31ms                         └─local-fs.target @671ms                           └─run-user-122.mount @1.340s                             └─swap.target @623ms                               └─dev-disk-by\x2duuid-19af8e87\x2d864e\x2d4148\x2d                                 └─dev-disk-by\x2duuid-19af8e87\x2d864e\x2d4148\x   These were a few things I noticed  were added to most of these questions, so I thought they might help as well.   I run ubuntu 18.04 LTS in a dual boot configuration using GRUB. My grub version is 2.02-2ubuntu8.9.


Eevee reflections clipping at the edge in render but not viewport

In rendered view(left) displays like how it should, however when rendered the reflection is clipped at the bottom(right). THe plane has a principled bsdf with 0 roughness and screen space refraction turned off. Screen space reflections are of course turned on, half res trace is turned off. I tried reducing edge fading to 0 but it didn't change anything. Anyone know how to fix this?


java - discrepancy when passing parameter of different type and update

in below code although I am updating StringBuilder roar3 inside roar(String roar1, StringBuilder roar3) method but how it affects roar2 in main() method? Same thing does not affect int x or y in intUpdate(int  x, int y) also not for String roar1.  public class TestReference {      public void roar(String roar1, StringBuilder roar3) {         roar1.concat("!!!");         roar3.append("!!!");     }      public void intUpdate(int  x, int y) {         x=1;         y=2;     }      public static void main(String[] args) {         String roar1 = "roar";         StringBuilder roar2 = new StringBuilder("roar");         new TestReference().roar(roar1, roar2);          System.out.println(roar1 + " " + roar2);           int x=-1,y=-2;         new TestReference().intUpdate(x, y);          System.out.println(x + " " + y);     } }


Reset the natbib option longnamesfirst at each chapter

I am writing my thesis as a collection of papers and I want to have the full bibliography at the end of the thesis. As there is several references that are used in more than one chapter, I would like to "reset" the longnamesfirst option of the natbib package at each chapter. To illustrate here is a MWE.  \documentclass[11pt,a4paper]{memoir} \usepackage[utf8]{inputenc}  \usepackage[round,longnamesfirst]{natbib}  \usepackage{filecontents} \begin{filecontents}{\jobname.bib}     @ARTICLE{ahuja2002,         author = {Ahuja, R.K. and Ergun, {\"O}. and Orlin, J.B. and Punnen, A.P.},         title = {A survey of very large-scale neighborhood search techniques},         journal = {Discrete Applied Mathematics},         year = {2002},         volume = {123},         pages = {75--102},         number = {1},         publisher = {Elsevier}     } \end{filecontents}   \begin{document}     \chapter{First chapter}         \cite{ahuja2002}\\     \chapter{Second chapter}         \cite{ahuja2002} $\leftarrow$ That guy should be ``longnamesfirst'' as well!     \bibliographystyle{plainnat}     \bibliography{\jobname}  \end{document}   I use the memoir document class for the thesis, so the question is tagged  as well.


On beta sites, the monospace formatting in a spoiler quote is evil.

It doesn't reproduce on Meta, but it will on any beta site.  To see an example, check out :        Edit:  I noticed that on SciFi, English, Area 51, and Electrical Engineering (at least - those are the only ones I've tried), spoilers with monospace will show the monospace part whether or not the mouse is hovering over the block (though the normal font will continue to operate normally).  On those sites, however, it hasn't yet joined the Dark Side.


|z+w| = |z-w| ; prove arg(z) and arg(w) differ by (pi/2)

I'm pretty good with complex numbers though I can't figure out how to prove the same.   I experimented with the argand plane a bit yet couldn't come to a solution.   Source: Hasse and Harris IBDP: Application and Interpretation HL


Different password for windows 8 login and associated microsoft account

I want to use KeePass to create a 50 char password for my Microsoft account, but I also want a password when I login to my laptop, is it possible to have 2 different sets of passwords for those 2?


Does rooting a phone expose the phone to security risks?

I have a very simple question. If I root my phone, will it be easier for malware to run on my device and cause more damage (due to the nature of the extended set of operations that applications with root access can perform, and the downside of being logged in and running applications as root on Linux systems).  Thanks.    EDIT:  Even when an application is rooted, it can still be configured to disallow installation of APK files from unknown locations (locations other than the Google Play Store). This increases security since it makes it impossible that a web browser download install a malicious app even though the device is rooted.


Is it safe to install a three pronged cable into a four pronged dryer?

I just moved into an old home that has a three pronged wall jack as shown below:    I have a newer dryer that has a four pronged cable.  Please see the back of the dryer, I've removed the four pronged cable.     Question  I bought a new three pronged cable from home depot. Can I put that cable into this dryer and simple connect it to the wall? Is that safe? Will it work? If so, what do I do about the spot for the grounding wire? I would love to see a video/image of this being done.   In the past I've replaced a three pronged cable with a four pronged cable in a dryer and successfully connected it. But this time I'm trying to do the reverse..    I've fixed and already washed one round of clothes. Hopefully all is well :)


What is the difference between work function and the ionization energy?

So for a hydrogen atom, an electron at n=1 would require 13.6eV of energy to be excited to the infinite energy level, so thats ionization. Is the work function the energy to overcome the attraction between the ionized electron and the nucleus?


Assume a directed graph with positive integer values for edge weights. Also, we know that the cost of the longest shortest path is $K$. The objective is to construct an algorithm that finds the shortest paths from a source node $s$ to all the other nodes in $(K + V + E)$ time. I cannot see how the cost of the longest shortest path can be used by the algorithm to produce the required shortest paths. Can someone provide me with a hint?


Multiple table of contents (on first page and last page)

I need to put tables of contents on the beginning of the document and also at the last page. When I am using \tableofcontents second time it appears empty.  I want to achieve:  \documentclass{article}  \usepackage{fontspec} \setmainfont{Arial}  \begin{document}  %first toc \tableofcontents  \section{Test} test test  \section{Test 2} test test  \newpage  %second toc - generates empty \tableofcontents  \end{document}   How can I achieve the same toc on the last page?


SQL to LINQ Left Outer Join with Multiple Conditions

I am struggling with this left outer join with multiple conditions in LINQ.  My initial SQL statement is as follows. SELECT DISTINCT [Product].[prod_id],     [Product].[brd_id],     [Product].[prod_brdId],     [Size].[size_id],     [Size].[size_sort],     [Bin].[bin_rack],     [Bin].[bin_alpha]      FROM [Proddetails]   JOIN [Prodcolor]   ON [Proddetails].[pcl_id] = [Prodcolor].[pcl_id]      JOIN [Product]   ON [Prodcolor].[prod_id] = [Product].[prod_id]      JOIN [Size]   ON [Proddetails].[pdt_size] = [Size].[size_id]      LEFT OUTER JOIN [Bin]   ON [Product].[prod_id] = [Bin].[prod_id]      ORDER BY [Product].[brd_id], [Product].[prod_brdId], [Size].[size_sort]  And my corresponding LINQ statement in .NET BinProds = ( from pd in applicationDbContext.Proddetails   join pc in applicationDbContext.Prodcolors on pd.PclId equals pc.PclId   join pr in applicationDbContext.Products on pc.ProdId equals pr.ProdId   join sz in applicationDbContext.Sizes on pd.PdtSize equals sz.SizeId   join bn in applicationDbContext.Bins on pr.ProdId equals bn.ProdId into ps                   from bn in ps.DefaultIfEmpty()   select new CoreBin   {     ... fields here   } ).Distinct().OrderBy(i=>i.BrdId).ThenBy(j=>j.ProdBrdId).ThenBy(k=>k.SizeSort).ToList();   So, both of these execute successfully in SQL Server Studio and .NET respectively.  However it's not giving me the exact result I'm looking for because it's missing one additional condition on the LEFT OUTER JOIN.  Below is the one change I made to my SQL statement which gives me exactly what I want in SQL Server Studio.  I just can't figure out how to adjust the LINQ to get the same result in my .NET project. LEFT OUTER JOIN [Bin] ON [Product].[prod_id] = [Bin].[prod_id] AND [Bin].[size_id] = [Size].[size_id]  I'm hoping there is a reasonable adjustment.  If you need my table outputs or db design, plz let me know.


How to generate MD5 Hash value for only specific files in a folder using CMD

How to get MD 5 Hash value for only few specified files out of a folder using Command Prompt


Is prompting players with alternate moves poor etiquette?

Recently we have had a number of 'explosive' games of Catan and Risk, where the game has become very heated because use of 'prompting' or 'suggesting' of moves to other players. I see this as a valid strategy, however one of my rival players sees it very much the other way and thinks it is unsportsmanlike.   To give a better illustration of the issue here is a scenario for Catan:   It is a 4 player game, around half way through I am Player 1 and am currently not leading the game Player 2 is currently in the lead as I see it, and they are a good player Players 3 and 4 are in similar positions to me, and look unlikely to win.    At this stage I feel like if the game plays out then Player 2 has a high chance of winning, they are unlikely to make any major mistakes and it would take a sequence of bad luck to unseat them from the victory.  It comes up to Player 3's turn, and they have several moves they can make. They initially choose to attack me. At this point I speak up and prompt another move that attacks Player 2, and illustrate that they are currently winning the game, and that they need to be stopped, implying a loose alliance. This play is beneficial to both me and to Player 3 by keeping us in the game, but damaging to Player 2.   At this stage Player 2 'explodes'. I am berated for making such a suggestion, called a bad sport, and are accused of being of weak moral fibre.   Unfortunately Player 2 has been a better political opponent as well as player, and has the backing of some of the other members of the group, as this is not the first occurrence. They have been building support for their 'anti-prompting' cause for a number of weeks/months.   I back down, and stay quiet, and watch a number of games go by that were largely uninteresting because of a lack of any team play to slow down the winner. Part of this issue is with the way the game operates, in this case Catan:   You can see the progress of each player to within a 1-2 victory points in most cases, as well as how they trending The game seems to be decided quite early in many cases due to strong starting positions and early moves It has a large chance factor for starting positions and early resource gains By having only one winner it can be very cut-throat and does not explicitly lend itself to cooperation   The end result of these properties is that I feel many games are decided early, and the remaining 45-30 minutes is spent going through the motions. Ideally I would not be in this position, as the other players should see the primary threat and that we should work together toward a common goal of taking out the leader and then one of us may have a chance of the win. Unfortunately this is not often the case, and I'm not allowed to make any mention of this, or I get berated again.   Ultimately this comes down to trust also, if I suggest poor moves then no one will listen. The issue is that, as a strong player, my suggestions are often strong and insightful too, negating a major play or situation that has gone unnoticed. This is clearly aggravating for the player I'm doing this against (Player 2), but my only other option is to sit there and let them win.    Do you allow prompting in your games? Is it an issue? Do you think it is unsportsmanlike? Should I back down and keep quiet? How should I bring this up as a valid and accepted part of the game if I choose to try an get this included as an allowed behaviour in future games?


why does windows tells me that it cannot copy folders because their path is too long?

So I'm transfering data from my 3TB hard drive to a new 8TB hard drive, they are both formatted in NTFS. I just right clicked and did cut/paste from root to root. So why does it says that the path is too long since it was fine on the 3TB drive? Thanks.


How can I config an email account in Apple Mail with my own domain?

I am using outlook.com for my own email "mydomain.info" but I can not add an account in Apple Mail. I have searched in Ask Different for similar questions. I got this:    I have exact the same problem but the accepted answer doesn't work for me. My domain is "domain.info". I never configured an account successfully in Apple Mail from Maverick to Yosemite and now El Capitan.


What do i need to do to upgrade from 15.04 to 15.10 (and eventually to 16.04)

I'm stuck on Ubuntu 15.04, i followed some outdated guide on Reddit to update from 15.04 to 15.10 and screwed up my  /etc/apt/sources.list, i get a bunch of the following when trying to update:  W: Failed to fetch http://mirror.cogentco.com/pub/linux/ubuntu/dists/wily-updates/multiverse/binary-i386/Packages  404  Not Found   So how do i update from 15.04 to 15.10 and eventually to 16.04?  My dedicated server provider only offers 14.04, 14.10 and 15.04 on prebuilt servers so i cant freshly install it.


Proving equivalences of statements equivalent to AC

I'm doing the following exercise from Just/Weese:  Show in ZF that (WO) implies (IC) and that (IC) implies (SC).  where  (WO) Every set can be well-ordered.   (IC) For any two sets $X,Y$ either there is an injection $X \hookrightarrow Y$ or $Y \hookrightarrow X$.  (SC) For any two sets $X,Y$ either there is an surjection $X \twoheadrightarrow Y$ or $Y \twoheadrightarrow X$.    (WO) $\rightarrow$ (IC): Let $X,Y$ be two sets. Then by (WO) they can be well-ordered. Therefore each is in bijection with an ordinal $\alpha$ (and $\beta$, respectively):  Claim: Every well-ordered set is isomorphic to an ordinal.  Proof: Let $\langle, X,W \rangle$ be a well-ordered set. Let $\alpha$ be an ordinal with $|\alpha| \ge |X|$. Define an injective map $f: X \hookrightarrow \alpha$ as follows:   (i) Let $x_0$ be the $W$-minimal element. Then $x_0 \mapsto \varnothing$.  (ii) Assume $f$ has been defined for $x \in I_W (x')$. Define $x' \mapsto \sup^+ f(I_W (x'))$.   Let $\tilde{f} = f: X \to \mathrm{im}f$. Then $\tilde{f}$ is a bijection and $\mathrm{im}f$ is an initial segment of an ordinal hence also an ordinal.$\Box$  Either $\alpha \in \beta$ or $\beta \in \alpha$. Hence either $X \hookrightarrow Y$ or $Y \hookrightarrow X$.    (IC) $\rightarrow$  (SC): Let $X,Y$ be sets. Then either $X \hookrightarrow Y$ or $Y \hookrightarrow X$. Given $X \hookrightarrow Y$ it is easy to construct a surjection $Y \twoheadrightarrow X$, similarly for $Y \hookrightarrow X$.     Can you tell me if these proofs are correct? Thanks.  I also wanted to prove (IC) $\rightarrow$ (WO), but I'm stuck. I thought of something like if $X$ is a set and $\alpha$ is an ordinal then either $X \hookrightarrow \alpha$ or $\alpha \hookrightarrow X$ but the latter case seems to be a dead end.


How to find relevant and new open research topics?

How can one find relevant and new open research topics?  When working on my PhD thesis, I find it hard to find open questions in my very specific research area. Which approach do you take to find new and relevant topics?


How to modify the details of a debian package

I am new to Ubuntu and would like to know if there's a way to modify or edit the details of a deb package. For example, I'm running the command: sudo dpkg -I myPackage_amd64.deb and get several categories, such as Version, architecture, section, etc..  How can I remove or change the values of one or more of these categories?  Thanks very much.


What does "can be said to do / to be" something mean?

The various modern revolutions in physics, in psychology, in politics, even in literary style, have not escaped his intelligent notice, but they can scarcely be said to have influenced him deeply.    Could you please explain the following?  They can scarcely be said to have influenced him deeply.  Or, I can not understand such a structure like the following:  In contrast, prices set by a central planner are necessarily arbitrary, since there is no standard against which they can be said to be correct or incorrect. d'oh!


Evaluate $$\int\frac{1}{\sqrt{4-x^2}}dx$$  I had this question on my calc exam today, and I have no clue how it's done. I was trying to factor 4-x² to see if I could see any patterns but no luck.  One thing I did notice was that $$\frac{d}{dx}(\arcsin(x)) =\frac{1}{\sqrt{1-x^2}} $$


How to make diff print a full file diff when a file does not exist?

I'm trying to compare files on the root file system with a backup, and I'd like the comparison to work a bit like git or svn diff when a file has been added or removed - That is, display the full file diff. diff unfortunately just prints a No such file or directory message, which is not very useful. I couldn't find an option for this.  The simplest workaround I could find is to parse the diff output and diff -u path <(printf '') or diff -u <(printf '') path depending on which path exists. That's a bit of a kludge - Probably 10 lines of code for what could be a simple diff option.  Another workaround is  diff -u <([ -e "$path1" ] && cat "$path1") <([ -e "$path2" ] && cat "$path2")   , but that loses the file names in the diff.  Based on  and the previous workaround, I ended up with this:  diff -u \     "$([ -e "$path1" ] && echo "$path1" || echo /dev/null)" \     "$([ -e "$path2" ] && echo "$path2" || echo /dev/null)"   Edit: Turns out there is an option for it:  -N, --new-file        treat absent files as empty   In other words:  diff -Nu "$path1" "$path2"


If $W_1=Y_1+2Y_2$ and $W_2=4Y_1-Y_2$ what is the joint distribution of $W_1$ and $W_2$


How to install the latest versions of LAMP componanents

I want to develop web applications with PHP, for that reason I need to install a LAMP system, I heard that it's good idea to use latest versions of PHP, MySQL and Apache ... so if it's possible please help me ...


I read a while ago that the Literature Stack Exchange website was closed and I read also the reasons. Moreover, I would want to know where could I ask questions like these ones, if there is a place:   What does the writer of X book mean by...? What is the message the writer wants to transmit in X poem?   I actually agree that questions with book recommendations should not be accepted, but...     Is there a place for these type of questions?


Convert percentage margin into percentage markup without knowing the revenue.

So client has asked me to add an option to their website where they can apply margin markup instead of regular markup.  But all the formulas that I seem to be reading seem to know the revenue value in order to calculate the margin.  But I don't know the revenue.    This calculator in the link above does not know the revenue, and simply calculates the revenue.  For example £1 Margin: 30% Revenue: £1.43    So I need to know the formula that makes this 43% regular markup.  To arrive at a 10% margin, the markup percentage is 11.1%  To arrive at a 20% margin, the markup percentage is 25.0%  To arrive at a 30% margin, the markup percentage is 42.9%  To arrive at a 40% margin, the markup percentage is 80.0%  To arrive at a 50% margin, the markup percentage is 100.0%    Can this be made into a formula somehow?


I have some functions created in a C++ project in VC++ such as:  // Basically the power is an array int read_power( int * power, int iByteNumToRead);   Now I need to create C# equivalent/wrappers for these functions to be used in a C# project by compiling the C++ code in DLL Library and using to link against the C# functions declared. It ends up being something like this:   [DllImport("my_lib_dll.dll",CallingConvention = CallingConvention.Cdecl)]  unsafe public static extern int read_power( int * power, int iByteNumToRead);  public static int read_power_cs( int[] power, int iByteNumToRead )  {          if (power.Length < iByteNumToRead)          {              Console.WriteLine("Error: iByteNumToRead should be <= size of array[]");              return -1;          }            //Pinning the array           unsafe           {               fixed (int* ptr = power)               {                   return read_power_cs( ptr, iByteNumToRead);               }           }   }   The question here is: Do I need to pin the array before going into C++ function? IS there a need to do that? I understand we do that so that garbage compiler doesn't decide to delete the array but is it needed here? Or can I just get away with declaring the C# function without a wrapper as such:  [DllImport("my_lib_dll.dll",CallingConvention = CallingConvention.Cdecl)] public static extern int read_power( int[] power, int iByteNumToRead);   Note this has been tested and works. I just can't seem to understand if pinning the array is needed or not? Can someone please clarify as I'm new to the world of C#.  Thanks


This is a really simple problem I am having, yet for the life of me I can't find a solution searching around. In theory I can simply recode the data, but that is an extreme solution I would rather not use if I don't have to.   I am simply trying to do a logistic regression with an ordered factor as my predictor. For a toy data set, consider:    radiation leukemia other total 1         0       13   378   391 2       1-9        5   200   205 3     10-49        5   151   156 4     50-99        3    47    50 5   100-199        4    31    35 6       200       18    33    51   I want to execute the following:  glm(cbind(leukemia,other)~radiation,data=leuk,family=binomial("logit"))   That is, leukemia are the "successes" and other are the "failures". Basically, trying to predict dose-response relationship between radiation and the proportional mortality rates for leukemia. However, this model is oversaturated:  Call:  glm(formula = cbind(leukemia, other) ~ radiation, family = binomial("logit"),      data = leuk)  Coefficients:      (Intercept)      radiation1-9    radiation10-49  radiation100-199            -3.3699           -0.3189           -0.0379            1.3223       radiation200    radiation50-99             2.7638            0.6184    Degrees of Freedom: 5 Total (i.e. Null);  0 Residual Null Deviance:      54.35  Residual Deviance: -3.331e-15   AIC: 33.67   I don't want each level of radiation as a factor to be its own predictor variable; that makes no sense, especially when you only have a small number of data points (note, this isn't actually the real data I am using, this is just a toy example that is similar). In any case, how do I force R to simply consider the factor radiation as a single variable with multiple levels? For example, if I do the following:  x<-c(0,1,2,3,4,5) glm(cbind(leukemia,other)~x,data=leuk,family=binomial("logit"))  Call:  glm(formula = cbind(leukemia, other) ~ x, family = binomial("logit"),      data = leuk)  Coefficients: (Intercept)            x       -3.9116       0.5731    Degrees of Freedom: 5 Total (i.e. Null);  4 Residual Null Deviance:      54.35  Residual Deviance: 10.18        AIC: 35.84   This is more in line with what I want. But I am nervous about using that x variable in the regression for fear of changing the interpretation of the results. Similarly, I'd prefer to avoid an irritating system of dummy variables.   How do I go about doing this? Or is there a better workaround altogether for studying this type of relationship that I am not considering?


When using Maclaurin series, the limit is $$\lim\limits_{x\to\infty}\frac{1}{\sqrt{x+1}+\sqrt{x}}=0$$  If we expand the expression with two limits  $$\lim\limits_{x\to\infty}\sin\sqrt{x+1}-\lim\limits_{x\to\infty}\sin\sqrt{x}$$  it diverges.  Which solution is right?


Why does my computer keep displaying the GRUB menu when it starts up?

Yesterday I tried turning on my computer. It led me into this grub menu and I have no idea how to get out. I can't use my computer anymore due to this. What should I do? Do I type in a command or something?


How can I farm in World of Warcraft Wrath of the Lich King?

Can anyone tell me a good gold farming place in the World of Warcraft? A farming place list is what I need (please include levels too).


So, there are some great tutorials around the web about isolating render passes in Cycles so that you can make changes, and then recombine all of your work as one complete image.  You'll probably have a Compositor node setup that looks something like this:    Blender's Manual used to have a schematic explaining how these can be recombined:    But not all of the pass types are explained by this deprecated schematic, as now there are more pass types (SSS, Shadow...)  What would be the "master" routing, so that if all passes are separated out they would all get recombined properly to form the complete image?  I set off on a mission to create such a routing, but realized I wasn't sure how to recombine some of the passes.


I have some sets here and I have to find the elements of each set but I don't know if this is right because there's no way to check correct answer in a set. I have already found complement of each set. Thanks to those who help me 😊.  Universal/Union = { a,b,c,d,e,f,g,h}  A = {a,b,c,d}                 A' = {e,f,g,h}  B = {e,f,g,h}                  B' = {a,b,c,d}  C = {a,d,h}                    C' = {b,c,e,f,g}  D = {c,d,f,g}                  D' = {a,b,e,h}  E = {a,b,c,f,g,h}            E' = {d,e}  Sets:  1.)[ [ [(A' ∩ B')' ∩ (C' ∩ D')']' - [(B-D')'- (A-C')']' ]' - E ]'  2.) [ [ [ [ (A' - B')' -C' ]' - D' ]' - E' ]' ∩ [ ( A' ∪ B')' ∩ (E' ∩ D')' ]' ]'  ∩ ( B' '- C' ')' '  3.)[ B' ∩ [ (B' ∪ C')' - ( D' ∩ D) ] ' ]' ∩ [( E ∪ E')' ∩ (C' - E)']'   The symbol  ' is a complement symbol. I use the set of operations (Union, Intersection, Complement, and Difference)