I just made an account, so I do not have any reputation yet. I know the answer on a question in a comment, I would like to post a comment to answer it, but I can't because I don't have enough reputation.

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


I lost some mails from my Gmail and by mistake. They are permanently deleted from my trash.  What can I do to get them back?

Is it possible to recover an email that has been clicked on "delete forever" in the trash folder? I have accidentally clicked delete forever for an email but now I need to recover it.


I'm experiencing something very strange after deploying the May security update on our test machines.  Here is the thing -   client machines: Win 7 with May security installed, CredSSP patched  server machines: Win 2008R2, unpatched   We have TWO particular AD user accounts who always fails the FIRST login while trying to RDP from patched client to unpatched servers.  The error is "Unknown Username or Password".  In event viewer, i can find event 4625 which indicated the same failure reason with  status: 0xc0000006c sub status: 0xc0000006a  after some test and research, i figured this has something to do with the CredSSP patch released in May security update. However the error message doesn't match the one listed in Microsoft KB   Somehow it doesn't match the Interoperability matrix either.  The strangest part is that this is only affecting these two particular AD accounts (just regular user accounts, i can't think of anything special about these two account). After their first login attempt failed, they could login successfully in the second attempt.  The other solution is to apply the security policy mentioned in Microsoft KB (changing ENcryption Oracle Remediation to Vulnerable)  I believe it is definitely caused by may security patch, but i couldn't figure out why it's only affecting two AD accounts. I would expect the same behavior on all AD users....

After Windows Update, I get this error when trying to connect to a server using Remote Desktop Connection. When read  provided by error message, it seems because of an update at 2018/05/08:  May 8, 2018 An update to change the default setting from Vulnerable to Mitigated. Related Microsoft Knowledge Base numbers are listed in CVE-2018-0886.  Is there a solution for this?


I was browsing Facebook when i found the following code that is supposed to swap two variables without a third one:  #include <stdio.h>  void swap_vars (int* x, int* y) {     *x = *y ^ *x;     *y = *y ^ *x;     *x = *y ^ *x; }  int main () {     int my_int = 1;     int my_int2 = 2;     swap_vars(&my_int, &my_int2);     printf("my_int = %d, my_int2 = %d. \n", my_int, my_int2);     return 0; }   And i was surprised when i discovered that it actually works, why?

Can someone explain to me how XOR swapping of two variables with no temp variable works?  void xorSwap (int *x, int *y) {     if (x != y) {         *x ^= *y;         *y ^= *x;         *x ^= *y;     } }   I understand WHAT it does, but can someone walk me through the logic of how it works?


I got a problem. Here is my bash script to merge videos with subs:  #!/bin/bash   cd /media/ptrknvk/'TOSHIBA EXT'/Shows/My/'Doctor Who'/  url0='DW s11e0' url1='DW\ s11e'  for(( i=1; i<11; i++ )) do     if ! [ $i -gt 9 ];      then         mkvmerge -o $url0$i.mkv $url0$i.mkv $url0$i.srt         rm $url0$i.srt     else         mkvmerge -o $url1$i.mkv $url1$i.mkv $url1$i.srt         rm $url1$i.srt     fi done   File have names like for example "DW s11e05.mkv" and they actually exist in the directory.  And here is a result:  mkvmerge v8.8.0 ('Wind at my back') 64bit Error: The file 's11e09.mkv' could not be opened for reading: open file error. rm: cannot remove 'DW': No such file or directory rm: cannot remove 's11e09.srt': No such file or directory mkvmerge v8.8.0 ('Wind at my back') 64bit Error: The file 's11e10.mkv' could not be opened for reading: open file error. rm: cannot remove 'DW\': No such file or directory rm: cannot remove 's11e10.srt': No such file or directory   As you can see '\' before a space doesn't work here. I also tried to use echo, but nothing changed (mb I've used it in a wrong way).   Sorry for my little bit nooby style.

I want to enter the following folder in the terminal:  Milano, Torino (Jan)-Compressed   How should I write the command cd to enter this directory?  Spaces and several other special characters like \, *, ), ( and ? cause problems when I try to use them in the command line or scripts, e.g.:    $ cd space dir bash: cd: space: No such file or directory  $ cat space file cat: space: No such file or directory cat: file: No such file or directory  $ cat ( bash: syntax error near unexpected token `newline'  $ echo content >\ > ^C  $ ls ? (  )  *  ?  \   How do I enter file or directory names that contain special characters in the terminal in general?


I am following the MATLAB example to fit a mixture of two normal distribution that you can find   At some point it is defined the inital guess for the standard deviation as:  sigmaStart = sqrt(var(x) - .25*diff(muStart).^2)   where x are the data and muStart is the initial guess for the mean (i.e. centered at the two quartiles of the data)  using my data sigma is a non real number since I have  var(x) = 0.1045 muStart = [0.7000    1.3600];   Could you please tell me what's wrong? Peraphs the formula to calculate the sigmaStart?

Say I have two normal distributions A and B with means $\mu_A$ and $\mu_B$ and variances $\sigma_A$ and $\sigma_B$. I want to take a weighted mixture of these two distributions using weights $p$ and $q$ where $0\le p \le 1$ and $q = 1-p$. I know that the mean of this mixture would be $\mu_{AB} = (p\times\mu_A) + (q\times\mu_B)$.  What would the variance be?    A concrete example would be if I knew the parameters for the distribution of male and female height. If I had a room of people that was 60% male, I could produce the expected mean height for the whole room, but what about the variance?


I have finished Breath of the Wild, defeated Ganon, and watched the credits. After finishing the credits I am shown the game's title screen. When loading back into the game from the title screen Ganon is still alive. Is this how its supposed to be?   I have not acquired all of the memories so maybe that's it. But I want to know for sure.

I'm close to maxing out my character and I want to beat Ganon solely for the TRUE ending, but I'm too scared of losing some of my personal favorites from the Guardian Spear++ to fighting those damned Guardians (it was so fun).  So, after beating Ganon    Do monsters disappear? - Including the corrupted Guardians, but also the blood moons, I don't want to just face off against the Yiga Clan... Am I gonna run out of resources? - As a survival game Zelda BOTW has some emphasis on the survival genre but to me it is a survival-esque action-adventure game. Are special weapons still available when you max out? - Like the Savage Lynel Spears or Swords)


Problem: Let $\{a_n\}$ be bounded sequence, satisfied $a_{n+1} \geq a_n - \displaystyle\frac{1}{2^n}, n \in \mathbb{N}$. Show that $\{a_n\}$ is convergent.   My attempt: consider sequence $\{x_n\} = \left\{ a_n - \displaystyle\frac{1}{2^{n-1}} \right\}$. Obviously $\{x_n\}$ is bounded. Then we have $x_{n+1} - x_n = a_{n+1} - \displaystyle\frac{1}{2^n} - a_n + \displaystyle\frac{1}{2^{n-1}} = a_{n+1} - a_n + \displaystyle\frac{1}{2^n} \geq a_n - \displaystyle\frac{1}{2^n} - a_n + \displaystyle\frac{1}{2^n} = 0$. Hence, $\{x_n\}$ is a non-decreasing sequence, apply $\{x_n\}$ is a convergent sequence. Here, can we conclude that the sequence $\{a_n\}$ is convergent? If we can, please explain how can we do that. Sorry for my poor English. Thank all!

$(a_n)$ is a bounded sequence with the following condition  $a_{n+1}\geq a_n-\frac{1}{2^n}$   The sequence converges, but how do we show it?


I tried to install ubuntu 20.04 along with my existing OS Windows 10 as dual boot. After the installation is completed, I am not able to boot to Windows any more as there is no option to select the OS. Any help on this much appreciated.

I installed Windows on my computer, followed by an installation of Ubuntu. However, now I'm unable to boot into my Windows install.  What can I do to fix this?


Why are Deanna Troi's mother and Mr. Barclay not present at her wedding ceremony portrayed in Star Trek: Nemesis? By the end of Voyager, Troi and Barclay seem to get along pretty well, and Lwaxana is... well, her mother. Will's father is not present either.  Is there an in-universe explanation? Is there a real-world explanation? Were the characters even considered for participation?

In this , Wesley appears at the Riker-Troi wedding in a Lt JG uniform.    Why would this occur?   It's clear from "Journey's End" that       WESLEY: Dad came to me and told me not to follow him. He said I had to find my own path.   And then he resigns from the Academy and goes and studies with .  It seems pretty unlikely that he would change his mind, get readmitted to the Academy, graduate and get promoted to Lt JG (admittedly nine years have passed).  I understand they sometimes have plot holes, but they could have easily filmed him in civilian formalwear.       Was there some intent to open up the possibility of him returning in the future shows or films?


I want to show that $\Bbb Z[i]/(2+3i)$ is a finite field and count it's elements.  I don't really know how to show that this field is finite.  I start by trying to understand that definition of this ring, so I write   $\Bbb Z[i]/(2+3i)=${$a+bi+2+3i:a,b \in \Bbb Z$}  I don't really know what to do from here. The knowledge needed to solve this shouldn't be much farther than the Chinese Remainder theorem, so I think it should be relatively simple but I don't see how to approach it.  Any help is appreciated, thanks

Show that $\mathbb{Z}[i]/(2+3i)$ is a finite field.    By applying some isomorphisms and realizing $\mathbb{Z}[i]$ as the quotient ring of $\mathbb{Z}[x]/(x^{2}+1)$, I found that:  $\mathbb{Z}[i]/(2+3i) \cong \mathbb{Z}[x]/(x^2+1,2+3x)$  However, I run into trouble as I can't divide $x^{2}+1$ by $2+3x$ in $\mathbb{Z}[x]$. What would be another way to approach the problem?  Thanks for the help.


I was reading a book on discrete mathematics by k. Rosen.  One place in this book i found that      " When a quantifier is used on the variable x, we say that this occurrence of the variable is bound.  An occurrence of a variable that is not bound by a quantifier or set equal to a particular value  is said to be free"  Again another place it was said that   "The part of a logical expression to which a quantifier is applied is called the scope of this  quantifier. Consequently, a variable is free if it is outside the scope of all quantifiers in the  formula that specifies this variable."  It seems contradictory to me.  Can you clearly explain what is free and bound variable in a quantified statemen. Also tell me what will be the free and bound variables of the statement    $\exists x~(x + y = 1)$ and  explain me with the proper definition of free and bound variable.

I am currently learning about first order logic, and as an exercise was asked to provide free and bound variables in the following formula:  $$(\exists x P(y,y) \implies \exists y P(y,z))$$  I'm currently confused on the following: the term $P(y,y)$ clearly has $y$ as a free variable, while $\exists y P(y,z)$ clearly has it as a bound variable.  From definition, it should be that in the formula above, $y, x$ are both bounded and $z$ is free. However, this does not convey that if I were to do a "change of variables" to $(\exists x P(k, k) \implies \exists y P(y,z))$, then $x, y$ would be bound and $k, z$ would be free, which means that the number of free variables actually changed for formulas that are actually "equivalent" (since both $P(y,y)$ and $P(k,k)$ are referring to a constant, rather than a variable).  I am also having trouble understanding what the full parenthetization of this expression would be: $(\exists x (P(y,y) \implies (\exists y P(y,z))))$ or $((\exists x P(y,y)) \implies (\exists y P(y,z)))$. Both would a priori be valid, and even though it doesn't really change anything in this case (since $x$ is not mentioned within the formula that is being quantified), I'm curious.


We know differentiability implies continuity, and in 2 independent variables cases both partial derivatives fx and fy must be continuous functions in order for the primary function f(x,y) to be defined as differentiable.  However in the case of 1 independent variable, is it possible for a function f(x) to be differentiable throughout an interval R but it's derivative f ' (x) is not continuous?

Could someone give an example of a ‘very’ discontinuous derivative? I myself can only come up with examples where the derivative is discontinuous at only one point. I am assuming the function is real-valued and defined on a bounded interval.


EDIT: This question can be marked as a duplicate of   Is there any differences (performance or otherwise) between using a foreach loop or the ForEach LINQ method?  For context, this is part of one of my methods:  foreach (var property in typeof(Person).GetProperties()) {     Validate(property.Name); }   I can alternatively use this code to perform the same task:  typeof(Person)     .GetProperties()     .ToList()     .ForEach(property => Validate(property.Name));   When would be using the loop structure be better than using method chaining?  Here's another example where I've used the ForEach method, but could just have easily used a foreach loop and a variable:  // LINQ PrivateData.Database.Users            .Cast<User>()            .Where(user => user.LoginType == LoginType.WindowsUser)            .Select(user => new { Name = user.Name, Login = user.Login })            .ToList()            .ForEach(result => WriteObject(result));  // Loop var users = PrivateData.Database.Users                .Cast<User>()                .Where(user => user.LoginType == LoginType.WindowsUser)                .Select(user => new { Name = user.Name, Login = user.Login });  foreach(var user in users) {     WriteObject(user); }

There are apparently many ways to iterate over a collection. Curious if there are any differences, or why you'd use one way over the other.  First type:  List<string> someList = <some way to init> foreach(string s in someList) {    <process the string> }   Other Way:  List<string> someList = <some way to init> someList.ForEach(delegate(string s) {     <process the string> });   I suppose off the top of my head, that instead of the anonymous delegate I use above, you'd have a reusable delegate you could specify...


I'm unable to explain why the following sentence is grammatically correct.  This means that not only does it not harm the environment, but it also actually improves it!  What's the difference between saying does it or it does.

I have been looking around to find an answer to my question, but I was unable to find one that addressed my specific problem.  I want to create the following sentence, but I'm not sure whether it's correct.     "Not only the world has changed during this time but also we have in particular."   I apologize in advance if I have overlooked an easy solution to this.


I want to be able to identify when certain answers were posted relative to when certain tags were included with the question.  My curiosity is: I want to know if an answer uses a domain outside the scope of what the OP intended and the author of that answer edited the tags to include the domain they utilized in their answer.  I suspect there is a way to track the time stamps of when tag edits were made.  I just can't figure it out.

It is possible for users to edit an existing post.   How do edits work? Who may edit a question or answer? How can you tell what has been changed between edits?      For more information, see "" in the .     Related:


Assume that $A,B \subset R^2$ and $A,B$ are compact and connected. And $A,B$ are homeomorphic. are$A^c$ and $B^c$ homeomorphic ?  I don't have a good idea to solve that.

Suppose that $A,B$ are subsets of $\Bbb{R}^2$. If $A$ and $B$ are homeomorphic and $A$ and $B$ are compact and connected, are their complements homeomorphic?


$(function(){     $('button').click(function(){        $('p').addClass('red');       });      $('body').on('.red','click',function(){         alert(''); // doesn't work?     }); });   Why does the red class's click event doesn't fire? I thought by using on() it will catch any future coming classes?  Is it because of closure problem?

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


I'm having some trouble with setting up a SMTP server on a windows server 2003 machine, while trying to send emails using PHP through the internet, but to domain email addresses.  Common info:   I'm a newbie on this, so I don't know many of the concepts Machine has Windows Server 2003 Server Machine on a domain (mydomain.com) Machine is not a domain controller Machine accesses a domain controller through the internet (WAN with a corporate VPN link by the internet provider setup on the machine's gateway - adsl modem/router) Email addresses use the same suffix (mydomain.com) Do not have access to domain controller configuration   First Scenario   TCP/IP DNS: 1st 192.168.200.xxx   2nd 8.8.8.8 Direct access to domain controller is functional PHP mail using localhost to a user@mydomain.com won't work, because the remote mail server rejects emails from internal traffic (apparently!?!)  (internal DNS)   Second Scenario   TCP/IP DNS: 1st  8.8.8.8   2nd 192.168.200.xxx   (switched) Direct access to domain controller is not functional, only local accounts work PHP mail using localhost to a user@mydomain.com does work, because the remote mail server is accessed through its internet/external address (ISP DNS).   So, what I needed is to have both (1) access to the domain controller and (2) PHP mail using localhost to a user@mydomain.com account working.  Any pointers? Thanks in advance  edit: initally posted at stackoverflow but changed it here after recommendation.

I'm having some trouble with setting up a SMTP server on a windows server 2003 machine, while trying to send emails using PHP through the internet, but to domain email addresses.  Common info:   Machine has Windows Server 2003 Server Machine on a domain (mydomain.com) Machine is not a domain controller Machine accesses a domain controller through the internet (WAN with a corporate VPN link by the internet provider setup on the machine's gateway - adsl modem/router) Email addresses use the same suffix (mydomain.com) Do not have access to domain controller configuration   First Scenario   TCP/IP DNS: 1st 192.168.200.xxx   2nd 8.8.8.8 Direct access to domain controller is functional PHP mail using localhost to a user@mydomain.com won't work, because the remote mail server rejects emails from internal traffic (apparently!?!)   Second Scenario   TCP/IP DNS: 1st  8.8.8.8   2nd 192.168.200.xxx   (switched) Direct access to domain controller is not functional, only local accounts work PHP mail using localhost to a user@mydomain.com does work, because the remote mail server is accessed through its internet/external address.   So, what I needed is to have both (1) access to the domain controller and (2) PHP mail using localhost to a user@mydomain.com account working.  Any pointers? Thanks in advance


In my profile's votes tab, under the closure option, I see this:    The closure votes marked with (deleted) actually haven't been deleted. Those are the ones that have been closed.  Doesn't it seem like this isn't right? Or do close votes all the sudden count as delete votes but don't actually delete anything?  It's a bug. It needs to say (closed)

In the "Votes Cast" section of my profile, my vote to close  is annotated with "(deleted)":    However, the close vote does not appear to have been deleted: it successfully closed the question:    Why was this vote marked as "(deleted)"?    If the vote was deleted my some internal process after the question was closed and the closers were recorded, I call that a . Regardless of what happens internally, it's irrelevant to users if close votes are deleted after they have taken effect.


I want to get a better intuition on relative homology groups, but while I see that the definitions of relative homology groups $H_n(X,A)$ and the homology group of the quotient $H_n(X/A)$ have no reason to generally be the same, I struggle to find rules for when they would be different. Are there certain rules for when these groups differ or are equal?

If the pair $(X,A)$ is good, then of course we have that $H_n(X,A) \approx \tilde{H}_n(X/A)$. For a counterexample to the converse, what is a nice example of a reasonably non-pathological bad pair $(X,A)$ such that $H_n(X,A) \not \approx  \tilde{H}_n(X/A)$ ?   I would appreciate if $n = 1,2$ (so it can be visualized).


I have a UK ancestry visa which expires 20 Jan 2017. I would like to fly to South Africa Dec 2016 and come back 15 January 2017. Will I be allowed back in? I intend applying for a new ancestry visa before January 20th

I will be entering the UK in the morning and leaving in the evening of my multiple entry visa expiry date as I have a 12 hr layover in LHR. Will I be granted entry if I have my itinerary showing that I'm leaving on that same day?


When I read the Harry Potter series I found this part confusing! Is there a relationship between Lily Evans's and Snape's patronus?!

Why is Severus Snape's Patronus the same as Lily Potter's? Are Snape and Lily related somehow? Are Snape and Harry related?


If $n$ and $p$ are coprime how it will be true for some $x$ and $y$. $Nx+ py = 1$

How can i prove that  if $\gcd(a,b)=1$ there exist $x>0$ and $y>0$ such that $ax-by=1$?


I had a major problem trying to get smartsputnik.ru from being my default browser. I'm pretty sure that it came from some weird Japanese game my neighbor's kid downloaded recklessly from some site.   I tried removing it from Google Chrome through the settings but I can't remove it. This is what Chrome tells me:      This setting is enforced by your administrator.   I haven't seen that before, nor did I know that was even possible. I checked the only other browser on my PC, IE. And smartsputnik was there as well. Also I went to regedit and looked for the "smartsputnik" keyword using 'Find'. All I saw was one value and I deleted it. I ended process trees of those that I haven't seen before. But I saw some of them coming back.  I've reset Chrome settings afterwards but the problem persists.  I don't want to mess anything else since I'm more of the game developer type.   I also tried SystemLook program from what I've read in the internet. But that was for another malware. I didn't understand the logs I got and don't want to mess with it as well.  I'm all out of options here.  I need to remove this search engine and anything related to it. It's in Russian language so I don't need it even more.

What should I do if my Windows computer seems to be infected with a virus or malware?  What are the symptoms of an infection? What should I do after noticing an infection? What can I do to get rid of it? how to prevent from infection by malware?   This question comes up frequently, and the suggested solutions are usually the same. This community wiki is an attempt to serve as the definitive, most comprehensive answer possible. Feel free to add your contributions via edits.


In a clause like this one:  the success of the book resides in the clear explanations of complex subjects  is "in" the right preposition? Or is it better to use "on", like in:  the success of the book resides on the clear explanations of complex subjects  Thanks!

As it is common with people from my country, I have an immense difficulty with prepositions in English, especially with the use of in and on.   When the preposition indicates the position of the object it is a bit easier to decide which one to use, but as it requires thinking from me, I still say things like "I put the bill in the fridge", "my pencil is on my bag", etc, even though if I think about it, I would know how to say it correctly.  Of course, even in those cases where the preposition indicates position the decision is not always clear, as is the case for example with "on the bus" (you are not on top of the bus, you are inside the bus) or "he is in bed" (you are not inside the bed, you are on top of your bed).  Other cases are even less clear, and I believe there is no real rule to decide what should be said; the person should just know it. Two examples are "in a bad mood", "you are on my mind".  So my first question is whether there is really no rule to help me. The second question refers to two of the cases where I still don't know whether to use in or on:   good luck on/in your exam in/on the list   The last one is especially important to me, as I have asked a number of native speakers, and each time I get a different answer. The only consensus seems to be the case where you say "on top of the list". Apart from that, some people will say that I should say "his name is in the list" whereas others think I should say "his name is on the list". And yeah, a couple of people did tell me that I can use either.  Can someone help me?


I have a dataset where each data point is characterized by two variables: X(time) and Y(volts).  When I plot my data it would be something like this:     The plot shows some data points created a cluster (I demonstrated those with the red boundary). The other data points are noise points which are not important for me. I finally found "DBSCAN clustering" could help finding true data points (points in the red boundary). In particular, two parameters needed to be determined for running this method: (1) Distance (2) MinPts.  I have a question: - How I can find a correct value for "eps" (distance)?   BTW: (1) two variables are not on the same scale. (2) I wanna use R-programming for clustering process.

DBSCAN is most cited clustering algorithm according to some literature and it can find arbitrary shape clusters based on density. It has two parameters eps (as neighborhood radius) and minPts (as minimum neighbors to consider a point as core point) which I believe it highly depends on them.  Is there any routine or commonly used method to choose these parameters?


Sorry if the title is not accurate, not sure how to name it properly. the question is. If I do this code:  num = 1  def test_func2(arg):     arg = 10  test_func2(num) print(num)   The num will obviously stay 1 But if I do similar thing with objects  class TestClass:      def __init__(self):         self.one = 1         self.two = 2   test_obj = TestClass()   def test_func(arg):     arg.one = 10  test_func(test_obj) print(test_obj.one)   The value of test_obj.one will change to 10. Why are integers passed by value and user defined objects by reference?

I'm trying to understand Python's approach to variable scope. In this example, why is f() able to alter the value of x, as perceived within main(), but not the value of n?  def f(n, x):     n = 2     x.append(4)     print('In f():', n, x)  def main():     n = 1     x = [0,1,2,3]     print('Before:', n, x)     f(n, x)     print('After: ', n, x)  main()   Output:  Before: 1 [0, 1, 2, 3] In f(): 2 [0, 1, 2, 3, 4] After:  1 [0, 1, 2, 3, 4]


this is my codes: if (!table.getValueAt(selectedRow, 6).toString().isEmpty())  I want to check if the cell is not blank, but I had a NullPoiterException

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


I'm using a custom query to get all CPT posts for the author in author.php. I have a lot of authors and a lot of content so I'm using the wp pagenavi plugin to paginate between these posts.  For some reason the pagination is giving me 404 errors on a lot of these pages. The pages that throw 404s is always the last or the two last pages of the pagination.  So for example /author/steve/page/8/ will work, while /author/steve/page/9/ and /author/steve/page/10/ will not.  I believe the pagenavi plugin handles 'paged' => $paged, but i've also tried setting $paged in the file: $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;, but with no difference.  My global post_per_page (in the dashboard setting) is 6 posts per page. Changing 'posts_per_page' => 4 in the query to 'posts_per_page' => 6, fixes the 404 issue, but is more of a dirty fix as I need to only display 4 posts per page.  Below is my query:  <?php $author_id = get_the_author_meta( 'ID' );  if ( have_posts() ) :   the_post(); rewind_posts();  $author_details = $wp_query->get_queried_object(); $curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author)); $temp = $wp_query; $wp_query = null; $wp_query = new WP_Query(); $wp_query->query(array(   'post_type'=> 'publikasjoner',   'paged' => $paged,   'posts_per_page' => 4,   'meta_key' => 'rapportnummer',   'orderby' => 'meta_value_num',   'order' => 'DSC',   'author_name' => $curauth->user_nicename ));  while ($wp_query->have_posts()) : $wp_query->the_post(); ?>  // Post content  <?php endwhile; endif;  if(function_exists('wp_pagenavi')) { wp_pagenavi( array( 'query' => $wp_query ) ); }  $wp_query = null; $wp_query = $temp; ?>

I got a paged loop that pulls in 4 posts per page from custom post type. It works great, with the only downside that the pagination wont go over the page/20 everything after that is 404, and the posts_nav_link won't show the next arrow at all. Like the pages just aren't there.  In total there are 119 published posts in the custom post type. If I change posts_per_page to, say 6, then I get access to more of the posts from the end, but it also stops at the page/20.  On the production site the pagination stops at 21, I guess because the live database has more entries.  I got the "Blog pages show at most" setting set to 6.  Here's the loop I'm using:  <?php $paged = get_query_var('paged') ? get_query_var('paged') : 1; $args  = array(     'posts_per_page' => 4,     'orderby'        => 'modified',     'post_type'      => "projekte",     'paged'          => $paged ); $custom_query = new WP_Query($args); $c = 0; while($custom_query->have_posts()) :     $custom_query->the_post();     ?>     <article>...</article>     <?php endwhile; wp_reset_postdata(); // reset the query ?>   I've gone through the functions.php a million times looking for a some limiting get_pre_posts filter but there's nothing I can see.  I also got an error log setup and nothing is returned there, I've tested it that it works.  Any suggestions?


Having some issues creating a test class for the controller. public without sharing class DeleteFilesCtrl {     @AuraEnabled     public static List<FilesWrap> getFiles(string objectId){         List<FilesWrap> wrapList = new List<FilesWrap>();         List<ContentDocumentLink> cdList = [SELECT ContentDocument.Title,ContentDocument.FileType,ContentDocument.LastModifiedDate , ContentDocumentId,LinkedEntityId FROM ContentDocumentLink WHERE LinkedEntityId =:objectId];         for(ContentDocumentLink cd : cdList){             if(cd.ContentDocument.FileType != 'SNOTE'){                 wrapList.add(new FilesWrap(cd));             }         }         System.debug('---'+wrapList);         return wrapList;     }     @AuraEnabled     public static string deleteFiles(string objectId,string contentDocumentId){         List<ContentDocumentLink> cdlList = [SELECT ContentDocumentId,LinkedEntityId FROM ContentDocumentLink WHERE ContentDocumentId=:contentDocumentId];         try{             if(cdlList.size() <= 2){                 delete [SELECT Id FROM ContentDocument WHERE Id = :contentDocumentId];             }else{                 delete [SELECT ContentDocumentId,LinkedEntityId FROM ContentDocumentLink WHERE LinkedEntityId=:objectId AND ContentDocumentId=:contentDocumentId];             }         }catch(Exception ex){             return ex.getMessage();         }         return 'Success';     }     public class FilesWrap{         @AuraEnabled public String title;         @AuraEnabled public String fileType;         @AuraEnabled public String id;         @AuraEnabled public DateTime lastModifiedDate;          public FilesWrap(ContentDocumentLink cd){             title = cd.ContentDocument.Title;             id = cd.ContentDocumentId;             fileType = cd.ContentDocument.FileType;             lastModifiedDate= cd.ContentDocument.LastModifiedDate;         }     } }  I am have tried many ways but either I am not getting any coverages or getting errors. Would love some helpful insight on how to create a test class for this. thank you.  I was looked at that link earlier and setup test class like this. @IsTest public class DeleteFilesCtrlTest {     static testMethod void DeleteFilesCtrl()     {          Account acct = new Account(Name='TEST_ACCT');         insert acct;          ContentVersion contentVersion = new ContentVersion(                 Title = 'Penguins',                 PathOnClient = 'Penguins.jpg',                 VersionData = Blob.valueOf('Test Content'),                 IsMajorVersion = true         );         insert contentVersion;         List<ContentDocument> documents = [SELECT Id, Title, LatestPublishedVersionId FROM ContentDocument];          //create ContentDocumentLink  record          ContentDocumentLink cdl = New ContentDocumentLink();         cdl.LinkedEntityId = acct.id;         cdl.ContentDocumentId = documents[0].Id;         cdl.shareType = 'V';         insert cdl;      } }  but this gives 0% coverage.

This is a canonical question and answer developed by the community to help address common questions. If you've been directed here, or your question has been closed as a duplicate, please look through the resources here and use them to shape more specific questions. To browse all canonical questions and answers, including more unit test resources, navigate to the  tag.  This canonical question is intended to address several classes of common questions by providing a quick summary and links to comprehensive resources:   How is code coverage obtained and calculated? How do I increase my coverage?  Why can't I cover these lines? Why isn't the body of my loop or conditional statement covered?


I want to filter my answer and hence tried user:66803 is:answer  on  using android app but it displays nothing! You can also try searching/filtering such. So, Why does it not working?

I have a Samsung Galaxy S3. Android version 4.3  I downloaded the official StackExchange app today. I am not able to view post related to android tag from my profile. I tried refreshing also  Snap     Edit:  However i am able to see one post for the relevant from the drop down list    Edit 2:  I tried what Steven V suggested. However it's the same.    I tried for a different user its the same.


I have configured one remote sql server with 2 instances A,B. I have enabled TCP/IP,Port 1434, remote connections, sql browser running and firewall inbound rule. I've enable DAC using sp_configure 'remote admin connections', 1; and reconfigure. However when I try to connect via SSMS or SQLCMD using admin:hostmachine\sqlinstance or sqlcmd -S hostmachine\sqlinstance -U sa  -P pass -d master -A I'm getting the following error : A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 43 - An error occurred while obtaining the dedicated administrator connection (DAC) port. Make sure that SQL Browser is running, or check the error log for the port number) (Microsoft SQL Server, Error: -1) I can connect using DAC but only as admin:hostmachine or sqlcmd -S hostmachine -U sa  -P pass -d master -A

Well, luckily I got this error on my test environment. I'm so scared about this error that I disabled all logon triggers I was using on production environment.   I created the famous logon trigger, and I put a database in offline mode just to mess with something else. Then I discover that because the trigger can't find the table, I can't access the instance anymore. There are plenty of questions related to this, but even doing everything I could find, I still can't acces the instance, not even with SQLCMD.  I'm doing this:  sqlcmd -S server\instance -U sa -P <pass>  -A   If I don't use -A I receive the famous error:  logon failed for sa due trigger execution.   If I use -A:     Sqlcmd: Error: Microsoft ODBC Driver 11 for SQL Server : SQL Server   Network Interfaces: An error occurred while obtaining the dedicated   administrator connection (DAC) port. Make sure that SQL Browser is   running, or check the error log for the port number [xFFFFFFFF]. .   Sqlcmd: Error: Microsoft ODBC Driver 11 for SQL Server : Login timeout   expired. Sqlcmd: Error: Microsoft ODBC Driver 11 for SQL Server : A   network-related or instance-specific error has occurred while   establishing a connection to SQL Server. Server is not found or not   accessible. Check if instance name is correct and if SQL Server is   configured to allow remote connections. For more information see SQL   Server Books Online..   Why i'm not able to connect to the sql server    sql server express here.  I could enable SQL Browser, but I still can't access it.  I don't think this question is duplicated because is not about the trigger, is about Why I can't access the server with SQLCMD. I pretty much know how to fix this. I just don't know how can I acces sql server without triggering the trigger.


In ZF without choice, can a commutative ring $R$ have a prime ideal $P$ that is maximal among prime ideals but not among proper ideals?   By replacing $R$ with the quotient ring $R/P$, we may assume WLOG that $P$ is the zero ideal, so that $R$ would then be an integral domain that is not a field but has the zero ideal as its only prime ideal.  Note that it is possible for an integral domain (in ZFC or otherwise) to have exactly one nonzero prime ideal (e.g. any discrete valuation ring).

I would like to solve the beginner's standard exercise which claims that a point of $\mathrm{Spec} \ R$ is closed iff it is a maximal ideal.  The reverse implication is easy. The direct one seems much subtler. If $P = V(I)$ then, since there exist a maximal ideal $M$ containing $P$, it would follow that $\{P, M\} \subseteq V(I) = P$, whence $P=M$. In order to show the existence of $M$ I applied Zorn's lemma to the set of ideals containing $P$.  The question is the following: is there any other proof of the above implication that does not (indirectly) use the axiom of choice? My concern is that I may be using a cannon to shoot a fly. Also, it would be the first time that I see closedness of points to require the axiom of choice. If the axiom is indeed needed in general, are there "nice" classes of rings for which we could get away without it?


I understand topic of Hot Network Questions was brought up a few times, but the question remains: Will there be any possibility to somewhat profile what is shown up there? I am totally uninterested in couple of categories (for example gaming, role-playing) which always show up, yet I am interested in others which never show up. Some user selectable option would be nice.

Is there a way to filter the "hot questions" displayed in the Stack Exchange menu?    I have a profile on Stack Overflow and that's pretty much it. Therefore the list as it is now is pretty useless because it just adds noise - I'm not coming to Stack Overflow to discuss terrorists and the like ;-)


Consider $\Delta ABC$ has $AB=AC\text{ and } \angle BAC=90^o$. Let $O$ with radius $\dfrac{AB}2$. The secant $DE$ such that $CE$ always goes through $OB$.  $CO \cap BD=M;CO \cap BE= N$. Prove that $OM=ON$       To prove $OM=ON$ we need prove $MANB$ is parallelogram $(OA=OB)$  We need to prove $\angle MAB=\angle ABN\rightarrow \angle MAC=\angle BAE=\angle BDE=\angle CDM$  I dont know how to prove this. I tried to prove some similar triangles but failed.

Consider altitude $AH$ of $\Delta ABC$. $B_1$ and $B_2$ are points on side $AB$ such that $HB_1 \perp AB$ and $HB_2 \parallel AC$. $C_1$ and $C_2$ are points on side $AC$ such that $HC_1 \perp AC$ and $HC_2 \parallel AB$. Prove that $BC$, $B_1C_1$,  $B_2C_2$ are concurrent.     I tried letting $B_1C_1 \cap B_2C_2 = \{A'\}$ and tried to prove that $\widehat{AA'B} = \widehat{AA'C}$ but I don't see the light at the end of the tunnel.


I've got many java processes running with different jar files. I want to kill on explicit jar file process.  the following command doesn't work successfully:  sudo kill $(ps -ef | grep example.jar | awk '{print $2}')  It finds the correct PID, but can't kill it.

Sometimes when I try to start Firefox it says "a Firefox process is already running". So I have to do this:  jeremy@jeremy-desktop:~$ ps aux | grep firefox jeremy    7451 25.0 27.4 170536 65680 ?        Sl   22:39   1:18 /usr/lib/firefox-3.0.1/firefox jeremy    7578  0.0  0.3   3004   768 pts/0    S+   22:44   0:00 grep firefox jeremy@jeremy-desktop:~$ kill 7451   What I'd like is a command that would do all that for me. It would take an input string and grep for it (or whatever) in the list of processes, and would kill all the processes in the output:  jeremy@jeremy-desktop:~$ killbyname firefox   I tried doing it in PHP but exec('ps aux') seems to only show processes that have been executed with exec() in the PHP script itself (so the only process it shows is itself.)


I have this multibyte arabic text string:  فتكات اكبر تجمع عربي للنساء فقط صحبة وإسلاميات واستشارات وطبخ وزواج وميك اب وتخسيس   وفضفضة وازياء ومحجبات وهوايات ومول وكليسش مال يهم المرأةفتكات اكبر تجمع عربي للنساء فقط  صحبة وإسلاميات واستشارات وطبخ وزواج وميك اب وتخسيس وفضفضة وازياء ومحجبات وهوايات ومو   When running PHP mb_strlen function on the string, I get 255 characters which is correct.  Then I tried to insert the string into a column with VARCHAR(255) using PHP Then I selected it again from the database using PHP and the following is the output:  تكات اكبر تجمع عربي للنساء فقط صحبة وإسلاميات واستشارات وطبخ وزواج وميك اب وتخسيس وفضفضة  وازياء ومحجبات وهوايات ومول وكليسش مال يهم المرأ�   So as you see, almost half of the string has been truncated. I don't know this has to do with MYSQL or PHP output.  Here is my database specs: MYSQL 5+, ENGINE=InnoDB, DEFAULT CHARSET=utf8, utf8_general_ci  And in PHP I'm using PDO statements to connect, insert, and select from the database.  Is there any extra query I need to use when inserting or selecting from database or any PHP function that I must use during insertion or selection?

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


For example, if I want to add this image from url     in my pdf, what do I have to do?  I have tried several solutions with href. For example this one  \begin{figure}%[2]     \centering     \href{http://www.qqxxzx.com/images/profile-pics/profile-pics-16.jpg}{\includegraphics{profile-pics-16.jpg}}  \end{figure}   but nothing is working. I always get this error   Package pdftex.def Error: File `profile-pics-16.jpg' not found. See the pdftex.def package documentation for explanation. Type H <return> for immediate help. ... l.57 ...pg}{\includegraphics{profile-pics-16.jpg}}

I have tried  \includegraphics{http://www.site.com/path/to/figure.png}   But this returns the error   ERROR: Package pdftex.def Error: File `http://www.website.com/path/to/figure.png' not found.    Are there other options?


It was discussed at  that you should answer the question with the solution, not edit that information into the question. But that discussion failed to cover what to do when you come across one.  I have come across questions that have no answer, but the OP put the answer in the question, such as . When I find those, I am tempted to edit that out and put it as an answer instead. But I would feel bad about taking any rep that came across my answer, and I would rather not put it as community wiki. Commenting didn't work in this situation, and it is easy to forget about it. So I'm stumped.  I have also come across questions such as , where the question was answered, the OP accepted an answer, and edited the solution into the question. I think it would be appropriate to edit this out, but I'm not sure.     is a similar question. But at that question, the OP edited into his question that both answers were good answers. Mine is what to do when the OP puts the actual answer to the question into the question   is about the answer being a comment. Mine has nothing to do with comments

I came across  question, which is fairly old, has 2 very good answers (with a good amount of up-votes), and the OP has stated in his question that both of the answers are acceptable. Yet they have not accepted either and simply left a note in their original question about the "correct" answer.  Is there anything that needs to be looked at here? Should I comment that the OP should accept an answer if they have one? Should I flag it?


I will have a couple of WSGI applications. They will communicate with nginx using sockets. For that purpose I've created the directory /run/wsgi in which I will place all the socket files that are needed.  My problem is that nginx is not able to access the socket file. I've given ownership of /run/wsgi to www-data to no avail. What would be the correct permissions for the directory?.  I chose the /run directory because the commonly used /tmp does not guarantee persistence of the files (according to the FHS). I'm open to discussion about this decision, though.  My applications will run under Ubuntu Server 3.0.0-30 with SElinux disabled. nginx was installed using apt-get.

I am new to this, so sorry if its obvious. I am running a Debian server and installing the likes of UWSGI, NGinx etc on there. The configurations keep talking about pointing to "sockets".  In the build options I seem to be able to specify where the sockets for each program go. By default it looks like most of them go in /tmp (not all of them).  Is this a good place for them to go? I'm trying to keep things as organized as possible but just bunging them in /tmp doesn't seem like the best option.


I am trying to achieve a  effect in a pose-by-pose animation. Similar, for example, to the effect achieved in  (I know this particular example was done with  rather than by hand).  My process is currently:   hand draw a pose trace second version of pose (with some deliberate tracing badness to achieve line boil) scan both poses repeat for new pose for each pose, display for desired period, looping through two versions   However, the effect is not as I intended. There is often an illusion of movement, rather than a mostly-still pose with vibrant lines, and my intuitions about which lines to boil, and how to boil them, is sometimes just plain wrong. How can I instead achieve an effective line boil? (For example, do I need more than two boiled versions per frame? If so, how many? What line variations generally work, and are there any in particular to avoid? Should I avoid any simulated movement, including gestures and mouth movement?)  (The software I am using happens to be GIMP + Inkscape, but this is mostly for aligning / tweaking images, not the actual drawing or animation. I believe the answer lies in what I'm drawing rather than software, but I'm tentatively open to software related advice.)

I'm wondering if there is a tool or simple method that will allow me to turn a simple pencil/pen sketch into something like the two images below.  I received these in a newsletter from a Kickstarter project and wondering how someone would go about making them.


How to calculate this determinant?     $$A=\begin{bmatrix}n-1&k&k&k&\ldots& k\\k&n-1&k&k&\ldots &k\\\ldots&\ldots&\ldots &&\ldots\\\\k&k&k&k&\ldots &n-1\\ \end{bmatrix}_{n\times n}$$   where $n,k\in \Bbb N$ are fixed.  I tried for $n=3$ and got the characteristic polynomial as $(x-2-k)^2(x-2+2k).$  How to find it for general $n\in \Bbb N$?

This question aims to create an ""  of numerous questions that ask about determinants of specific matrices (I may have missed a few):              The general question of this type is  Let $A$ be a square matrix of rank$~1$, let $I$ the identity matrix of the same size, and $\lambda$ a scalar. What is the determinant of $A+\lambda I$?  A clearly very closely related question is  What is the characteristic polynomial of a matrix $A$ of rank$~1$?


I recently found out that it is possible to formulate a Hamiltonian for a system with time-dependent coordinates such that the Hamiltonian is not the same as the energy  and that has me wondering if it is possible to formulate a Hamiltonian for a damped system under these conditions. I know that Hamilton's equations require that energy be conserved, but if the coordinates are time-dependent, would it still be possible to formulate and solve the problem?  I started trying to do it for a damped simple harmonic oscillator by starting with the Lagrangian for the system    $$L=e^{\gamma * t}*(\frac{mv^2}{2}-\frac{kx^2}{2}),$$   but I keep on coming up with a Hamiltonian that is just equal to the energy   $$H=e^{\gamma * t}*(\frac{mv^2}{2}+\frac{kx^2}{2}).$$

I am trying to write the Lagrangian and Hamiltonian for the forced Harmonic oscillator before quantizing it to get to the quantum picture. For EOM $$m\ddot{q}+\beta\dot{q}+kq=f(t),$$ I write the Lagrangian  $$ L=\frac{1}{2}m\dot{q}^{2}-\frac{1}{2}kq^{2}+f(t)q$$ with Rayleigh dissipation function as   $$ D=\frac{1}{2}\beta\dot{q}^{2}$$ to put in Lagrangian EOM $$0 = \frac{\mathrm{d}}{\mathrm{d}t} \left ( \frac {\partial L}{\partial \dot{q}_j} \right ) - \frac {\partial L}{\partial q_j} + \frac {\partial D}{\partial \dot{q}_j}. $$  On Legendre transform of $L$, I get $$H=\frac{1}{2m}{p}^{2}+\frac{1}{2}kq^{2}-f(t)q.$$  How do I include the dissipative term to get the correct EOM from the Hamiltonian's EOM?


Because I , just World of Warcraft, WoW: Warlords of Draenor and WoW: Mists of Pandaria. The expansions aren't listed in the  either.  Is it reasonable to assume that the "World of Warcraft" listed on  includes the unlisted expansions?

If I want to begin to play World of Warcraft, do I need to buy every update released from the beginning?


In chat rooms, questions from the 3DPrinting SE site aren't parsed correctly and just sit there as ugly URLs.  To illustrate here is a screenshot        It can be seen that the "Steering problem" question is displayed as expected, whereas the 3DPrinting URL (two lines below) is not parsed at all.  Apparently, it is because the errant URL starts with a number, i.e. "3".  Could this issue be fixed please?

Posting a link to a post on 3D Printing site, for example  https://3dprinting.stackexchange.com/q/5736, does not produce a onebox in chat.   I suppose it's because the chat does not expect there could be digits in site names.


I recently installed Windows 10 Education, Version 1709, Build 16299.192. Coming from a Linux background, I like everything about the Desktop.  So my HP has four-finger touchpad support. A tap brings up the Action Center. A four-finger swipe kinda works but with issues.  A swipe to the right, for people used to Natural Scrolling, is supposed to push the current desktop away to the swipe direction. And I guess that's how it works on certain devices. But on my HP it just goes to the next desktop in the swipe direction.   Also, note that my Natural Scrolling works just fine. Thank you!

I recently got a Windows 10 laptop. Opposite to my Macbook, I must swipe right-to-left to go to the right virtual desktop. Is there a way to reverse this, so I swipe left-to-right to go to the right virtual desktop?


This is the explanation of the book, but for me I did not catch the idea of the set $v$, and I need a numerical example for it and the set $u_{k}$, could anyone help me please?  Is there a systematic way by which I can write $u_{k}$ so that $u_{k}$ give me all subsets of $\mathbb{N}$?

I'm having trouble understanding Cantor's diagonal argument.  Specifically, I do not understand how it proves that something is "uncountable".  My understanding of the argument is that it takes the following form (modified slightly from the  article, assuming base 2, where the numbers must be from the set $ \lbrace 0,1 \rbrace $):  \begin{align} s_1 &= (\mathbf{0},1,0,\dots)\\ s_2 &= (1,\mathbf{1},0,\dots)\\ s_3 &= (0,0,\mathbf{1},\dots)\\ \vdots &= (s_n \text{ continues}) \end{align}  In this case, the diagonal number is the bold diagonal numbers $(0, 1, 1)$, which when "flipped" is $(1,0,0)$, neither of which is $s_1$, $s_2$, or $s_3$.  My question, or misunderstanding, is: When there exists the possibility that more $s_n$ exist, as is the case in the example above, how does this "prove" anything?  For example:  \begin{align} s_0 &= (1,0,0,\mathbf{0},\dots)\ \ \textrm{ (...the wikipedia flipped diagonal)}\\ s_1 &= (\mathbf{0},1,0,\dots)\\ s_2 &= (1,\mathbf{1},0,\dots)\\ s_3 &= (0,0,\mathbf{1},\dots)\\ s_4 &= (0,1,1,\mathbf{1},\dots)\\ s_4 &= (1,0,0,\mathbf{1},\dots)\ \ \textrm{ (...alternate, flipped } s_4\textrm{)}\\ s_5 &= (1,0,0,0,\dots)\\ s_6 &= (1,0,0,1,\dots)\\ \vdots &= (s_n \text{ continues}) \end{align}  In other words, as long as there is a $\dots \text{ continues}$ at the end, the very next number could be the "impossible diagonal number", with the caveat that it's not strictly identical to the "impossible diagonal number" as the wikipedia article defines it:     For each $m$ and $n$ let $s_{n,m}$ be the $m^{th}$ element of the $n^{th}$ sequence on the list; so for each $n$,      $$s_n = (s_{n,1}, s_{n,2}, s_{n,3}, s_{n,4}, \dots).$$      ...snip...      Otherwise, it would be possible by the above process to construct a sequence $s_0$ which would both be in $T$ (because it is a sequence of 0s and 1s which is by the definition of $T$ in $T$) and at the same time not in $T$ (because we can deliberately construct it not to be in the list). $T$, containing all such sequences, must contain $s_0$, which is just such a sequence. But since $s_0$ does not appear anywhere on the list, $T$ cannot contain $s_0$.      Therefore $T$ cannot be placed in one-to-one correspondence with the natural numbers. In other words, it is uncountable.   I'm not sure this definition is correct, because if we assume that $m = (1, \dots)$, then this definition says that "$s_n$ is equal to itself"&mdadsh;there is no "diagonalization" in this particular description of the argument, nor does it incorporate the "flipping" part of the argument, never mind the fact that we have very clearly constructed just such an impossible $T$ list above.  An attempt to correct the "diagonalization" and "flipping" problem:  $$s_n = (\lnot s_{m,m}, \lnot s_{m,m}, \dots) \quad \text{where $m$ is the element index and} \quad\begin{equation}\lnot s_{m,m} = \begin{cases}0 & \mathrm{if\ } s_{m,m} = 1\\1 & \mathrm{if\ } s_{m,m} = 0\end{cases}\end{equation}$$  This definition doesn't quite work either, as we immediately run in to problems with just $s_1 = (0),$ which is impossible because by definition $s_1$ must be $ = (1)$ if $s_1 = (0)$, which would also be impossible because...   Or more generally, with the revised definition there is a contradiction whenever $n = m$, which would seem to invalidate the revised formulation of the argument / proof.  Nothing about this argument / proof makes any sense to me, nor why it only applies to real numbers and makes them "uncountable". As near as I can tell it would seem to apply equal well to natural numbers, which are "countable".  What am I missing?


I have already been able to show that if the irreducible polynomial $ f $ has degree n, then its roots are $ a, a^q \ldots, a^{q^{n-1}}$, where $ a $ is a roots of $ f $ to some extent.  How can I show that they are all different?

Every irreducible polynomial $f$ over a perfect field $F$ is separable.   Can you check my proof? Assume that $f$ is irreducible but inseparable. So we have $f=\sum_i h_ix^i$ and $f^p=\sum_i h_i^px^{ip}$. Now I use Frobenius mapping $\phi (f)=f^p=(\sum_i h_ix^i)^p=\sum_i h_i^px^{ip}$ so it is reducible. Contradiction. Should I also show for char(F)=0?


$$x_1 + x_2 + x_3 + x_4 = 28$$ I tried to solve it with generating functions. Is it correct to get to the form of   $${(1 + x + {x^2} + {x^3} + ....)^4}$$  and this equals to:  $${(1 - x)^{ - 4}}$$  and then solve it with binomial expansion ? Is this correct ?  every question similar to "how many solutions are axsist to this equation?" can be solved this method?  I know there're a lot of methods and manipulations for this kind of problem. Can you confirm it's the right path for this kind of problems?  It's like distribute 28 things into 4 objects.  This is why I used generating functions.

How many triples $x,y,z$ satisfy  $x+y+z=12$, where  $x,y,z\ge 0$ are integers? Note that these are not ordered: $ (12,0,0)$ and $(0,12,0)$ are treated as same. Progress I have tried the formula ${13\choose 2}$ to select values of $x$ and $y$ from $0$ to $12$ as  $z$ would keep changing according to $x$ and $y$. (That is, $z=12-x-y$.) The problem is that that certain combinations of $x$ and $y$ would give value of $x+y$ greater than $12$. I can't seem to get around this.


I am working on a textbook problem of a grounded conductor inside a uniform electric field. The textbook states that "grounded" means potential = 0. In my opinion, "grounded" should mean  "same potential as infinity". But in this case we can't set potential at infinity equal zero. So my question is, what is actually the meaning of "grounded". Am I right that it means "equal potential with infinity"? What does it mean by "grounded" in this question when the potential at infinity can't be set to zero?

Suppose, for sake of argument, we have a spherical grounded conductor at the origin. Additionally, let our reference voltage be at infinity. Now, I view the potential of a point in space as being the work that I personally would have to do to move a unit charge from the reference to the point in question. Thus, I interpret this grounded conductor as points in space at which I could bring in a unit charge from infinity and end up doing no work. However, that interpretation certainly cannot be true in this case. Suppose the charge that I am bringing in is unit positive. The entire time I bring that charge towards the conductor there will be a larger and larger negative charge build-up, so I will have to exert a larger and larger force in the opposite direction the entire time I bring it in. The net work that I do in moving this charge towards the conductor will clearly be negative, not zero as the potential value would seem to suggest.   Can someone resolve these conflicting interpretations? Much appreciated.


I want to put a quick "are you sure?" prompt for confirmation at the top of a potentially dangerous bash script, what's the easiest/best way to do this?

I want to pause input in a shell script, and prompt the user for choices. The standard Yes, No, or Cancel type question. How do I accomplish this in a typical bash prompt?


I saw this one video by  in which he shows that through scripting he was able to make it so that when switching weapons by scrolling the wheel,(as an engineer) the PDAs do not open(build and destroy), it directly goes to the melee or the primary weapon. How is this done?

With most other classes I can quickly switch between weapons easily with the scroll-wheel (with the option to Auto-switch instead of menu-switch turned on), and this is quite helpful.  However, when I'm bringing up the Spy's Disguise menu (or the engineer's build/demolish menus) I'll press the keybind to bring up the menu, as I then need to press another key to select the disguise/building.  However, I can also scroll on the wheel into these menus, which is never what I intended to do. I always just want to switch from the wrench to, say the pistol or the shotgun, or the sapper to the knife.  So, is there any way to disable those menus from appearing when scrolling?


So I have String array that looks like this:  arraySubs:  math math math web web web prog prog prog   Now I want to remove the duplicates to look like this:  arraySubs:  math web prog   I wouldn't mind if there is null on places that should be removed, so I tried this:  for(int j = 0; j < arraySubs.length; j++) {     if(j<arraySubs.length-1) {         if(arraySubs[j+1]==arraySubs[j]) {//equalsIgnoreCase doesn't work.             arraySubs[j]=null;         }        }     if(arraySubs[j]!=null) {         System.out.println(arraySubs[j]);     } }   But it doesn't work it's still printing all of them, any ideas? I don't wanna use Set, HashSet etc. Or any other tools such as iterators. equals() doesn't work...

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


Given four positive integers $x$, $y$, $z$, $t$ such that $$x+y+z+t=100$$    Find the number of compositions of $100$ having four positive summands $x$, $y$, $z$, $t$. Note that $x$, $y$, $z$, $t$ do not have to be different.

How many 4 digit numbers have a sum of 9?  I converted that into: How many ways can you rearrange 3 stars and 9 bars?  But the first one has to be a number so it's actually: How many ways can you rearrange 3 stars and 8 bars?  I can convert it but I forgot how to solve the stars and bars problem? Can someone explain how to solve a converted stars and bars problem without giving me the answer to this question? Thanks.


Often in anime which features a character who wears glasses, when they take off their glasses, their eyes turn into a sort of puckered lip emoticon that looks like the number 3.    The meaning is fairly obvious, that the character looks drastically different or worse without their glasses on. But why is this icon used, specifically?

After Gankyou in Joshiraku removes her glasses, her eyes change to '3' characters.    Marii then exclaims:    I understand Nobita is a character in Doraemon, but I haven't found any information online either of pictures where Nobita has his glasses off, or any references to a "Nobita face".  Can someone explain this joke further?


How can i do cumulative sum?  My query is :  select dateb,ricetype,bajet1 from bajet where ricetype='grand total'   How do i archieve 'New Value'?

I have this MySQL query:  SELECT DAYOFYEAR(`date`)  AS d, COUNT(*)  FROM  `orders`  WHERE  `hasPaid` > 0 GROUP  BY d ORDER  BY d   Which returns something like this:  d  | COUNT(*) | 20 |  5       | 21 |  7       | 22 | 12       | 23 |  4       |   What I'd really like is another column on the end to show the running total:  d  | COUNT(*) | ??? | 20 |  5       |   5 | 21 |  7       |  12 | 22 | 12       |  24 | 23 |  4       |  28 |   Is this possible?


What term in literary analysis describes the process in which we replace the full description of an object with a reference to just one aspect of it, e.g. 'It is a Rembrandt' instead of 'It is a painting by Rembrandt'.  Thank you!

mentions synecdoche and metonym as terms used when an organization is referred to by its location.  Do these terms also apply when an event, rather than an organization, is referred to by its location? For example, Chernobyl, Fukushima, or Hiroshima.  What about when a date is used to refer to an event, such as 3/11 being used for the Japanese earthquake and tsunami?


If I don't err, in the literature a stream cipher is one in which each plaintext bit is processed individually, commonly via xor-ing with one bit of a random or pseudo-random bit stream, while a block cipher (in ECB mode, i.e. ignoring the add-on processing operations like CBC etc.) operates on n bits at a time with operations that are the same for a given key, i.e. each successive groups of n bits are processed in exactly the same manner.  If one looks at the corresponding literatures, one finds in the first case mostly works on linear or non-linear feedback shift registers and in the second case ideas of design of a rather different genre. That could justify the differentiation in terminolgy however IMHO only on the assumption that no cipher designs could lie inbetween the two categories. But that assumption seems to me to be an invalid one. Anyway, let's consider the classical ciphers. Is a Vigenere cipher or a (additive) cipher with a running key a stream cipher or a block cipher? That question seems not to be very satisfactorily to be answered, I am afraid.

I read that     A typical stream cipher encrypts plaintext one byte at a time, although a stream cipher may be designed to operate on one bit at a time or on units larger than a byte at a time.   (Source: , William Stallings.)  A block cipher encrypts one block at a time. The block may be of size one byte or more or less. That means we can also encrypt a block of one byte by help of a stream cipher as a stream.  So, what exactly is the difference between a stream cipher and a block cipher?


We have a MAC machine running on BootCamp for Windows 8.1 as well as the MAC. It's been runing for almost 1 year.  We found that on the Windows side (C:\ - BOOTCAMP) that this machine is only 4GB free space out of 371 GB. So we are starting to troubleshoot to find out what causing this.   We checked on C:\ drive (including Hidden file/folders) and select all the files and right click PROPERTIES to see the size and we found is 306 GB. So we are missing 66 GB !!!  Any ideas what causing this?  BTW ... we are running Windows 8.1 and we backing up via File History to external network device. But we now the fact that if the machine is not connected to the network, it backup to local disk. Now, we did setup to cache offline 5% of the disk BUT could be this is  the issue?  Thanks

Here's my problem  I'm trying to do a cleanup of my hard drive, and I'm constantly seeing this scenario:  (1) Aggregate folder size: I check the folder size viewing properties right clicking the folder  (2) Individual folder/file sizes: I check the individual file/folder sizes belonging to that folder viewing properties on the individual file/folder sizes, and then adding them up (with hidden and system files shown).   These two figures are always different, sometimes by a large margin.   For instance, my C drive now, by method (1), shows a consumed space of 42.4 GB.   However, by method (2), by inspecting the respective files/folders, the total consumed space adds up only to 33.1 GB. This is a 28% discrepancy (over the smaller file size) and I have no idea where the rest of the space is going.   My hard drive is constantly in danger of being full (it's bootcamp on a mac with 50 GB of partitioned space), and there's not much I've got installed in terms of software, nor do I have large media files like movies, downloads, temp files, application temp files, torrents, etc.   Most of it's just consumed by the files in C:/Windows, but last I checked, I don't know enough to know which files to delete, and I've heard that you really can't do anything about the space boggling winsxs and system32.   Can you guys recommend a starting point to free up disk space?  Thanks!!  Baggio.


Let $A$ be a discrete subgroup of $\Bbb R^n$ and let $V$ be a $m<n$ dimensional $\Bbb R$-subspace of $\Bbb R^n$. Is the projection of $A$ onto $V$ a discrete subgroup? I am most interested in the case of $m=1$.  Edit: I want the subspace to contain a non trivial element of $A$, you can assume this element has minimal norm if necessary(any of the norms that generate the usual topology will do).  Note that the result is not true for arbitrary discrete subsets of $\Bbb R^n$. $S = \{(2^{1/n},n)\subset \Bbb R^2\}$ projected onto $V = \{(x,0)|x \in \Bbb R\}$ is a counter example in this case.  This has been answered at :

I am trying to prove that every closed discrete subgroup of $\Bbb{R}^n$ under addition is a free abelian group of finite rank. I have tried to do this by induction on the dimension $n$.           Base case: We claim that a subgroup $H \subset \Bbb{R}$ has a least positive element $\alpha$. The completeness axiom tells us that there is a least positive real number $\alpha$ among all positive reals in $H$, and being closed implies that $\alpha \in H$.       Now assume the inductive hypothesis and consider a closed, discrete subgroup $H$ of $\Bbb{R}^n$. Choose some element $x \in H$ of least positive distance to the origin. This can be done because otherwise we get a contradiction like the above. Now let $L$ be the subspace spanned by $x$ and write $\Bbb{R}^n = L \oplus W$ for some complement $W$. Consider the projection (as a linear map) $p : \Bbb{R}^n \to W$.  Now this is also a group homomorphism and so we have  $$\textrm{Im} (H) \subset W$$  being a subgroup and so by the induction hypothesis is isomorphic to $\Bbb{Z}^l$ for some $1 \leq l \leq n-1$. However from here I am having some trouble concluding that $H$ itself must be isomorphic to $\Bbb{Z}^l \oplus \Bbb{Z}x$. If I know the existence of a map $l : \textrm{Im}(H) \to H$ such that   $$p \circ l = \textrm{id}_{\textrm{Im}(H)}$$  then by the splitting lemma I can conclude my problem. However, I don't have such a map so how do I conclude the problem? Please do not post complete solutions.  Thanks.  Edit: Perhaps I should add some context. I am trying to conclude that the kernel of the exponential map $\exp : \mathfrak{g} \to G$ where $G$ is a connected abelian matrix Lie group is a free abelian group of finite rank. We know that the assumptions on our matrix Lie group mean that $\exp$ is a group homomorphism, so that $\ker \exp$ is a subgroup of the Lie algebra $\mathfrak{g}$.  Edit: The problem is reduced to showing that the image of $H$ under the projection is indeed discrete, because otherwise we cannot apply the inductive hypothesis.


When I'm the camera view mode, the environment texture shows up correctly, see:   However, when I'm controlling the viewport freely, the environment texture doesn't work at all but gets replaced by a random color:   I remember it used to not work this way, but I don't remember what I'm doing differently from before. The background settings I'm using are visible on the right of the picture. I'm also using Filmic blender.  Thanks in advance.

I'm having a problem rendering the environment map. I downloaded a sample project that has the same settings as my project but it renders without a problem. I tried using both a .hdr and .png image. Attached are screenshots with node settings. First is the incorrect render and 2nd image is the project the renders correctly. How do I go about fixing this?


I keep hearing "I say 1 for the money and 2 for the show" (or variants of it) in various songs (rap specifically though I have heard it in other songs) . Can anyone tell me why it is used so much and where did it come from? Thanks. (If this helps, I hear it mainly in K-rap and I think it has something to do with "Show Me The Money")

What does the expression     [x] for the money   mean?  I remember hearing the topic title in a rap song (can’t remember which, might be Eminem), and there seem to be movies named after this pattern:  with Al Pacino and , an upcoming comedy.   does not seem to know this expression, neither does  give a proper translation.  What does it mean and where does it come from?


Before you read this question let it be known that this question has been asked before on this site; however, I find that my situation is slightly different then the others.  I recently was searching for places to stay in Germany and I found an apartment that I wanted to book. It looked nice and it was available for the time I wanted, so I booked it.  On the site it said that payments could only be made in cash for booking this apartment and ultimately the reason I decided to go ahead and book this place was that it stated on booking.com that the host will contact you after booking to handle everything from payments to questions.   Before booking I searched the entire site for the hosts contact information so I could ask further questions about the apartment that I did not see on the booking.com website.  I even google searched for this apartment to see if it was listed anywhere else so I could possibly contact the host before booking. On booking.com it did state that there could be cancelation fees if I do decide to cancel at any point. I am new to booking.com and did not have an account it allowed me to book the property without providing any credit card information and as soon as the booking went through shortly after they provided me with the host's contact info. I asked my question and sure enough I wanted to cancel so I went to hit cancel on booking.com. It told me to ask the host for the process of canceling since there could be cancelation fees, I asked the host if I could cancel.  He sent me a picture of a piece of paper stating a cancelation fee is required.  The host only accepts cash payments.  Am I legally bound to travel to Germany and pay this person now?  I had the apartment booked for under an hour.

I booked a room from booking.com just for the visa. The room that I booked didn't require a credit card information and I did the booking without reading the conditions.  Now I noticed that 320 CAD is required for cancellations. I sent several emails to booking.com but no one replied so far.  Did anyone face such a situation before? How could they take the money without credit card info?


I'm doing an experiment on people's ability to read facial expressions on faces with and without covid-19 face masks. It's a between-subject design with repeated measures. One participant either saw 36 images with masks or 36 images without masks and their task was to tell which facial expression the face was showing. The 36 images were of 6 different people showing 6 different emotions. Condition 1 was with masks, 2 was without masks I have a dataframe like this: id = participant id baseFace = id for image person faceSex = gender of image person faceEmotion = the facial expression of the image person response = the participants response of which facial expression they think they saw accuracy = well, accuracy condition = if they saw condition 1 stimuli or condition 2 stimuli id | baseFace | faceAgeGroup | faceSex | faceEmotion | response | accuracy | condition 1    001        young          male       angry        sad        0          1 1    002        medium         female     happy        happy      1          1 1    003        old            female     sad          sad        1          1 1    004        young          male       neutral      sad        0          1 2    001        medium         female     happy        happy      1          2 2    002        old            female     sad          sad        1          2 2    003        young          male       angry        sad        0          2 2    004        medium         female     happy        happy      1          2 3    001        old            female     sad          sad        1          2 3    002        young          male       neutral      sad        0          2 3    003        medium         female     happy        happy      1          2 3    004        old            female     sad          sad        1          2 4    001        young          male       angry        sad        0          1 4    002        medium         female     happy        happy      1          1 4    003        old            female     sad          sad        1          1 4    004        young          male       angry        sad        0          1 5    001        medium         female     happy        happy      1          2 5    002        old            female     sad          sad        1          2 5    003        medium         female     happy        happy      1          2 5    004        old            female     sad          sad        1          2    My hypothesis is 1 People are better at reading facial expressions in faces without face masks 2 People will report higher levels of confidence in decisions when evaluating faces without masks AND NOW TO MY QUESTION Since my outcome is binary (accuracy), I use a logistic regression model: lme4::glmer(accuracy ~ condition + (1|id), df, family = binomial)  This is to me the most logical way to build the model since I'm using condition as predictor for accuracy. The question is: Would I violate any rules or my own hypothesis if I included more predictors or random intercepts? Thank you for any help.

I'm doing an experiment on people's ability to read facial expressions on faces with and without covid-19 face masks. It's a between-subject design with repeated measures. One participant either saw 36 images with masks or 36 images without masks and their task was to tell which facial expression the face was showing. The 36 images were of 6 different people showing 6 different emotions. Condition 1 was with masks, 2 was without masks I have a dataframe like this: id = participant id baseFace = id for image person faceSex = gender of image person faceEmotion = the facial expression of the image person response = the participants response of which facial expression they think they saw accuracy = well, accuracy condition = if they saw condition 1 stimuli or condition 2 stimuli id | baseFace | faceAgeGroup | faceSex | faceEmotion | response | accuracy | condition 1    001        young          male       angry        sad        0          1 1    002        medium         female     happy        happy      1          1 1    003        old            female     sad          sad        1          1 1    004        young          male       neutral      sad        0          1 2    001        medium         female     happy        happy      1          2 2    002        old            female     sad          sad        1          2 2    003        young          male       angry        sad        0          2 2    004        medium         female     happy        happy      1          2 3    001        old            female     sad          sad        1          2 3    002        young          male       neutral      sad        0          2 3    003        medium         female     happy        happy      1          2 3    004        old            female     sad          sad        1          2 4    001        young          male       angry        sad        0          1 4    002        medium         female     happy        happy      1          1 4    003        old            female     sad          sad        1          1 4    004        young          male       angry        sad        0          1 5    001        medium         female     happy        happy      1          2 5    002        old            female     sad          sad        1          2 5    003        medium         female     happy        happy      1          2 5    004        old            female     sad          sad        1          2  My hypothesis is 1 People are better at reading facial expressions in faces without face masks 2 People will report higher levels of confidence in decisions when evaluating faces without masks AND NOW TO MY QUESTION Since my outcome is binary (accuracy), I use a logistic regression model: lme4::glmer(accuracy ~ condition + (1|id), df, family = binomial)   This is to me the most logical way to build the model since I'm using condition as predictor for accuracy. The question is: Would I violate any rules or my own hypothesis if I included more predictors or random intercepts? Here is my whole dataframe (in .csv) if it is useful:  Thank you for any help. I also  on StackOverflow but I was told to try here instead.


I think a possibility of highlighting sections of the text, equations, or code in the posts by the community members might add to the quick-readability of the questions and answers. I mean a mechanism similar to what is currently possible in :    More succinctly, community members would read a post and highlight some parts. Such highlightings will be visible to any viewer of the post. A highlight has an owner (its creator), and can be removed by its owner or the moderators. Moderating highlights will not be a burdensome task, since highlighting does not entail a modification of contents (as for editing), and no mistake or offence is possible -- only there could be inept highlighting by some user.  This could be a feature that can be turned on and off by a viewer. Generally, it would help a viewer to get an idea of the major points of a post (question or answer) from the highlighted sections provided by the community members.

I have asked a question which has yielded a massive list-type answer.  There are several points within this answer that I would like more information about, but placing them all into a comment (which might not even fit) would be really messy / illegible and if someone did this to my answer I probably wouldn't even respond.  Could there be a feature where I as the OP can highlight parts of the answer which will notify the answerer, giving them the option to provide more information about what I've highlighted? The highlights could be yellow but only visible to the answerer (so that while browsing the website there isn't yellow everywhere).  This would be particularly useful for this style of answer, especially because I'd like information on 5 or more of those points.


Okay, so I'm 13/14, a dnd nerd, a beginner, in a dnd club and has seen enough of the Internet to be pretty f---ed up. I live in Cambridge, England and I really wanna find a good dnd group. I've never played before but I am starting a bi weekly campaign in an all boys (except me and a best friend of mine) warhammer and dnd club. It's warhammer one week and dnd the next and so on. I have a backstory, drawing and stats for my elven character but I want to find a safe place that I could maybe join. Packed schedule but room can be made. I am open to dirty jokes, swear words and all of that but I live with my parents so yeah. Sorry if this sounds like an ad but I am genuinely looking for some nerds to chill with and play some trpg!

I'd really like to learn how to play pen-and-paper RPGs.  I know that it takes a few players to actually sit down and play, but I'm not at all sure where to find more gamers.  How do I find existing groups to join? Or, are there any resources online that may help me find existing RPG groups or players?


I have a feature of a device that I can enable or disable. When this state changes (from enabled to disabled, or disabled to enabled), an alert is sent to me. However, if a change is attempted that does not end up changing the state (from enabled to enabled, or disabled to disabled), an alert is not sent to me.     I am alerted if and only if the ________ of the feature changes.   Is there a single word that will fit in this blank? It should be specific to the "enabled/disabled" state, and not, for instance, the "togglable", "loading", etc. states.  Note that this is not indicative of whether or not it can be enabled, but rather whether the specific state of being enabled has changed. For instance, "state" is too general, since everything in this product and its features either is or has a state of some sort. I want this to specifically refer to the state of being enabled or disabled.

I just ran across the phrase "button enabledness" in a technical design, but that doesn't look right. Is it a valid word? Is there a better way to express "the state of whether or not something is enabled" (even if it doesn't derive from enabled)?


Many questions get closed on Stack Overflow for having a broad scope or being subjective in nature - often with the motivation that these questions are not fit for the Q&A format. Examples:        I respectfully disagree that these questions are not fit for the Q&A format - that is saying they have no place on Stack Overflow or any other Stack Exchange site regardless of their focus.  I'm fine with broad questions being closed on the basis of not being topical - Stack Overflow is for programming questions with a narrow scope.  For example, lets say I'm new to programming and the question I ask is: "What programming language is best for beginners?". It's a broad question that will promote endless discussion and subjective answers and according to the rules is definitely NOT suited for the Q&A format.. I disagree. I'd say it's a perfectly fine question that has its place on a Q&A site, the answers can still be clear and objective such as:     "Before deciding which language to pick you need to find out if you want X, Y or Z. Here are suggestions what to look into: E, F or G - are the most popular choices right now. G is deemed easy for beginners because of F and might be a good place to start. When you know the answer to X, Y and Z, we might be able to give you more specific suggestions."   I can see how the question may generate debate, but that is the fault of the people debating not the person asking the question. Is the problem that these questions are too difficult to administrate if they encourage heated debates? IMO, the discussions/debates should be removed not the questions themselves.

I'm on SO pretty much every day researching something to do with programming, and over the last month or two, I find I'm growing frustrated and a little disgusted at how many interesting questions have been closed as "not a good fit" or "too subjective".  I think there is a confusion between "subjective" and "calls for judgement". To me one of the most valuable things about SO is the tremendous breadth and depth of experience of the members, and experience translates into smart decisions and advice, and that advice cannot always be asked for, or expressed in terms of, bald facts and data.  It's going to be 'subjective'.  I don't think SO should be Wikipedia. I think that if I could ask a question to a group of skilled programmers sitting around a table at lunch, and get interesting, valuable answers, then I don't care whether the question or the answers are 'subjective', I think that question should equally well be fair game for Stack Overflow.  I would like to see a mechanism whereby people who vote to close a question lose reputation when somebody expresses interest in that question or its responses.  How can I, or can I, influence this aspect of SO?


I want to create a "running" bibliography. That means that each entry do not start at a new line after a carriage return, but is simply separated from the previous one with a symbol I want to chose (e.g. | or ♦) and runs on the same line (see example below). I am using BibLaTeX (and thus biber) with style=authoryear.    Question: Is there already a bibstyle that could create this output?  N.B.: I know this is far from optimal in terms of readability/usefulness and shall break several rules of how to build a good bibliography. But, you know, I might have a rebel instinct sometimes (-;    If needed here is a MWEB  \documentclass{scrartcl}     \PassOptionsToPackage{backend=biber, citestyle=authoryear, natbib=true}{biblatex}     \usepackage{biblatex}     \usepackage{filecontents}      \begin{filecontents}{jobname.bib}         @BOOK{Dummy1,             author    = "John Doe",             title     = "The Book without Title",             publisher = "Dummy Publisher",             year      = "2016"         },         @ARTICLE {Dummy2,             author  = "Erika Musterman",             title   = "How to be everywhere?",             journal = "Even in newspaper",             year    = "1984"         }     \end{filecontents}      \addbibresource{jobname.bib}  \begin{document}     Some text \citet{Dummy1}. And even more content \citep{Dummy2}.      \printbibliography \end{document}

I have a strict page limit on a paper I'm writing, and the page limit includes citations, so to save space I would like to remove the line breaks between entries in my bibliography:  [1] Dr. Seuss. *Horton Hears a Who!* Random House, 1954. [2] J. Lennon. *In His Own Write*.  Macmillan & Scribner, 1964. [3] L. Carroll. *Alice's Adventures in Wonderland*. Macmillan, 1864.   instead of   [1] Dr. Seuss. *Horton Hears a Who!* Random House, 1954. [2] J. Lennon. *In His Own Write*.  Macmillan & Scribner, 1964. [3] L. Carroll. *Alice's Adventures in Wonderland*. Macmillan, 1864.   At the moment, the biblatex commands I'm using are  \usepackage[firstinits=true,backend=bibtex,doi=false,isbn=false,url=false]{biblatex} \AtEveryBibitem{%   \clearfield{pages}% } \renewcommand{\bibfont}{\normalfont\footnotesize} \addbibresource{bib.bib} \begin{document} \end{document}  \nocite{*} \begingroup \setlength\bibitemsep{0pt} \setlength\bibnamesep{0pt} \printbibliography[heading=none] \endgroup   which I think explains why I want to use Biblatex instead of the paralist solution I've seen (and that I could not get to work with Biblatex).  EDIT I: Here are two screen shots showing the spacing differences.  No line break:  With line break:   Edit II:  Solved with   \usepackage{setspace} ... \begin{spacing}{.5} \printbibliography \end{spacing}


Fairly simple question: does there exist an area-preserving map from the hyperbolic plane to the Euclidean plane?  If not, does there exist an area-preserving map from an arbitrarily large subset of the hyperbolic plane, to an arbitrarily large subset of the Euclidean plane?  If so, what does the map look like? It would basically be similar to the "Mollweide projection."

Suppose that we have open sets $A, B\subset \mathbb{R}^2$ such that $A$ and $B$ are simply connected and have smooth boundaries. Furthermore, let us assume that $m(A) = m(B) > 0$, where $m$ is the Lebesgue measure on $\mathbb{R}^2$. My question is as follows: when does there exist an area-preserving diffeomorphism between $A$ and $B$? In this context, an area-preserving diffeomorphism between $A$ and $B$ is a is a $C^{\infty}$-diffeomorphism $\phi : A\to B$ such that $m(S) = m(\phi(S))$ for all measurable $S\subseteq A$. If an area-preserving diffeomorphism doesn't always exist between sets $A$ and $B$ as above, are there any extra conditions we can impose on $A$ and $B$ such that there does exist an area-preserving diffeomorphism?  My thoughts thus far are that we always have a $C^{\infty}$-diffeomorphism between $A$ and $B$: this is a consequence of the . It's also obvious to me that if we can deform $A$ linearly to get $B$, then that deformation will be area-preserving. Furthermore, it seems that aside from this case, there's no reason why an area-preserving diffeomorphism should exist. However, I'm having a hard time proving that there necessarily isn't an area-preserving diffeomorphism between $A$ and $B$ if $B$ is not a linear deformation of $A$. Does anybody have any ideas?


There's a program called file in my laptop's post BSD OS. How to run a similar utility, in Microsoft PowerShell? This is a bit hard to search, so I guess some experts exchange is required here.

I sometimes get files from my clients that have the wrong file extension. For example, the name is image.jpg but the file is actually a TIFF image. In many cases I can clarify it by opening the file in a text editor, looking at the first few bytes, then deducing which file type it is.  This works for me with JPEG, TIFF, GIF and PDF files. However there are many more file types out there.  Is it possible to automate identification of the correct file type by analyzing the containing data?


I want to practice using head, uniq and cut, for this data . I know this  but it focuses too much on cat and external programs.   I would like a simpler answer.  I want to take interval from the data file, e.g. lines 800-1600.  I am not sure if cut is intended for this task with the flags -n and -m. At least, I could not extract lines, just patterns in some byte locations.  Running mikeserv's answer  Code 1.sh:  for i in 2 5 do    head -n"$i" >&"$((i&2|1))" done <test.tex     3>/dev/null   and data  1 2 3 4 5 6 7 8 9 10 11   Running the code as sh 1.sh gives empty line as an output, although it should give 3 4 5 6 8. What do I understand wrong in Mike's answer?  How would you select line intervals in data by sed, tail, head and cut?

What's a good way of extracting say, lines 20 -45 out of a huge text file. Non-interactively of course!


In Star Wars, Luke flies an X-Wing in the attack on the Death Star.  My question is, why was he allowed to fly?  He had no X-Wing piloting experience. Even in WWII pilots needed at least a dozen hours flying experience before they were thrown into the battle of Brittain.  The question becomes even more perplexing given the following (movie mentioned) facts:  1) Only 30 fighters were sent against the Death Star; and 2) There were hundreds of other rebels on the base.  For that matter, why did the rebels only send 30 ships against the Death Star?

When a whiny farm boy (Luke) shows up at the secret base of the Rebel Alliance, a group of high profile exiles and crack veteran warriors, he is instantly included in their fighting force, even taking a . In movies 4-6, no one (apart from Obi-Wan) on the Rebel side ever comments about Luke's last name or makes any connection to Anakin Skywalker, who presumably was a famous heroic figure among the former Republic Illuminati running the Alliance (remembering that it  that Anakin became Vader, he was presumed killed along with the rest of the Jedi). Did they realise Luke was Anakin's kid? Maybe that helped in getting Luke involved in the fight and promoted so quickly. Or did they not know, or simply not think to connect the names? Maybe 'Skywalker' is like 'Smith' on Tatooine (although it seems pretty grandiose, Anakin's slave mother bore the name)? Maybe there's lots of teenage 'Skywalkers' running around having been named in honour of the famous celebrity from the Clone Wars, so the Alliance honchos just assume Luke's parents were just another couple of hillbillies giving their kid a stupid fashionable name?


I am designing an RSVP, in which I give my guests the option of choosing their meal preference. I have a column for ticking the option of a kid's meal, then at the bottom I have a key for all of the meals.  My question is: If my key is talking about meals in general should it be written "kids' meal"? Then should the tick box be labelled "kid's meal", as it is one person indicating the meal for their one child?  If this is correct, is it strange to have it written differently on the same invitation? Is there a way I can write both of them the same way that would be correct?  I don't want to get this wrong as I am a teacher and I am inviting a whole load of teachers to my wedding! :)  Many thanks  (Hope I've explained this correctly - I've attached a picture for reference)

What is the possessive of a noun ending in ‑s?  Are these both right, or is the second one wrong?   the boys' books the boss' car


I have seen in a few books a style for theorems of the form    So what I want ideally is a the theorem title at the top and then the whole theorem enclosed in a box. The shadow is not needed but would also be nice to have. Would anyone know how to produce this?

Is there an easy way to put a box around a theorem in LaTeX? For example to state an important theorem. I tried using page 20 of the ntheorem , but I do not know how to use the package.