When I ask a person a question such as, "When did you last go to church?" I am not asking them to give me an answer ("Last August"); but I am expecting them to answer the question within themselves, to stimulate their thinking about whether they are doing something we both agree they should be doing. Is this a rhetorical question, or is there a better definition for this type of question?  A better example would be posting this type of question on social media, such as Facebook.  UPDATE: It has been suggested that the answer is a rhetorical question. But my understanding of a rhetorical question is that it has no answer. There is an emotional context to the question: "What, are you stupid?" The person you are addressing is made to understand they are DOING something stupid, an actual answer is not necessary or even wanted. I THINK that my type of question is different, but I am not sure. My question is intended to make the person ask themselves. If the answer is "last week", it isn't necessary to tell me "next week". My purpose of reminding them that they should be attending church regularly is achieved, and an actual answer is not required. If that is still a rhetorical question, so be it, but the definitions I found didn't suggest that it was. I would prefer to be precise, so if there is a better term for that type of question, that is what I want to know.

I am familiar with the idea of a , but are there any criteria to mark or identify one? Can a rhetorical question be recognized alone or does it need surrounding context?   It doesn't seem like there is a single syntactic method to distinguish them (the wiki article mentions a 'rhetorical question mark' that really didn't catch on, but that's not really syntax, just punctuation in writing).  If there are no syntactic markers, what semantic criteria are there that could say that a sentence is a rhetorical question?


Is there a way to check the selected object(s) vertex/edge/polygon count?

Is there a way to get Statistic info in Blender? Or heads up display? Like when I select a group of vertices, I need a way to know how many vertices are selected and How many polygons "or triangles my scene has.


I have just installed Ubuntu 16.4 to one of the computer in my working place, and done all the required settings configurations which is required to run the particular take in my working place. I am working as an instructor in the department of computer science engineering. I have nearly 50 computers in a lab. So my question: is it possible to take the backup of the entire OS with the setting I had made and put it in to the rest of the computers instead of installing one by one, so that it makes me too easy to setup a lab with minimum time. Can you help me it this regard.

I had promissed my 120 students that I will install ubuntu 10.10 on their laptops but failed to do it.The laptops were dell vostro 4014. All have same hardware. I took one laptop and installed ubuntu and  all the necessary packages, and also wine to run some windows software. I selected the default ext4 file system.   Then I tried to use clonezilla server to clone the installation. Clonezilla server shows boot menu splash screen, but later on it says that I might be having a latest NIC unsupported by the kernel. But the NIC of the laptop on which I had installed ubuntu works fine.  Later I tried to use the clonezilla live cd to boot the laptop which has ubuntu. But when I press 'Y' to start cloning, it says 'something went wrong'. Again I tried the 'dd' command to save as disk image. But it copies empty space. So it is not feasible for me as it takes really long time.   I have made my students to wait for many days, daily they are coming and asking whether my setup is ready. Today I realized I can't do it. I have in a way convinced them not to go for windows. So they are waiting for me to have ubuntu installed on their laptops. Today evening some of them will come to collect the laptops I took from them to install ubuntu. Don't know how and what to tell them.


Can anyone please guide me whether I can perform a wildcard suffix matching in a SharePoint 2013 Search. For eg. *card which should return search results ending with the word "card".   The KQL(Keyword Query Language) in SharePoint Search gives successful results for the wildcard prefix matching viz. card* returning results starting with the word "card". So is there any solution where I can perform wildcard suffix matching to get the desired results?

I'm new to SharePoint 2013 and I'm quite puzzled, that it seems to be impossible to search for the middle part of a string.  Simple example:  I've added a lot of documents (PDFs, ...) from our Windows Server to the SharePoint Library and I want to add metadata. I try to filter the view of the document library, to only get those documents which I currently want to edit.  The names of the documents are very systematic, composed of naming conventions with abbreviations like:  Superthing2000-b_Suppl_REF_13580_note_1108_04en which means e. g.: Document about Product "Superthing2000", variant "b", Supplement to the manual, ID "13580", from 08/2011 in english language.  Now, I'd like for example to filter out all documents containing ID 13580 or "en" for english, but no chance, as suffix matching is not possible, even if I explicitly search for e. g. *en*.  Is there a way to define a search with kind of a "contains" operator which also finds files when the search string is only a part in the middle of the file name? Even the Windows Explorer search feature is able to do that!!


Is there a non-trivial distribution for a positive r.v. $X$ such that $\mathbb{E}(X) = \mathbb{E}\left(\frac{1}{X}\right) = 1$? If possible, I'd like the distribution to support (have positive probability for) the range (0, $\infty$).  If I could ask a follow-up, is there a family of distributions such that taking the reciprocal keeps you in that family?

How to construct an example of a probability distribution for which $\mathbb{E}\left(\frac{1}{X}\right)=\frac{1}{\mathbb{E}(X)}$ holds, assuming $\mathbb{P}(X\ne0)=1$?    The inequality which follows from Jensen's inequality for a positive-valued RV $X$ is like $\mathbb{E}\left(\frac{1}{X}\right)\ge\frac{1}{\mathbb{E}(X)}$ (the reverse inequality if $X<0$). This is because the mapping $x\mapsto\frac{1}{x}$ is convex for $x>0$ and concave for $x<0$. Following the equality condition in Jensen's inequality, I guess the distribution has to be degenerate for the required equality to hold. A trivial case where the equality holds is of course if $X=1$ a.e. Here is an example I found in a problem book: Consider a discrete random variable $X$ such that $\mathbb{P}(X=-1)=\frac{1}{9}, \mathbb{P}(X=\frac{1}{2})=\mathbb{P}(X=2)=\frac{4}{9}$. It is then easily verified that $\mathbb{E}\left(\frac{1}{X}\right)=\frac{1}{\mathbb{E}(X)}=1$.   This example shows that $X$ need not be positive (or negative) a.e. for the equality in the title to hold. The distribution here is not degenerate either.  How do I construct an example, possibly like the one I found in the book? Is there any motivation?


In the sentence, "He is one of the only doctors who does the procedure," is "does" or "do" correct? I have not yet found a definitive answer in other sources.

In the sentence      It's one of the best films that has/have ever been made   What should the verb agreement be?


I have been asked this question in an interview. Please share your opinion.  The interviewer asked me "what's difference between system test and system integration test". I gave the below answer:  System Test – The process of testing an integrated system to verify that it meets specified requirements.  System Integration Test – Testing the integration of systems and packages; testing interfaces to external organizations (e.g. Electronic Data Interchange, Internet).  Then he asked me "what's the difference between automated system test and automated system integration test?"

I was asked this question during an interview. My thoughts are SIT is performed on a complete systems and System Testing can be done on a single module as well.


Currently working over at Windows 8.1 64 bit, I have protected one of my drives with BitLocker encryption lets say it as "D? and the OS resides at "C",  Now I decide to upgrade OS to Windows 10 64 bit. Will my BitLocker work after OS upgrade. I understand that both OS were at same, but I believe and doubt that OS encryption methodology present at OS part, So my questions were few :   Will  my BitLocker work after my os upgrade? If yes how it will get worked after upgrade since the main key verification part would be done at os part   I don't have any citation that key verification was done at OS drive but requesting clarification to the community.

I am currently running Windows 8.1 Pro, with BitLocker enabled (the hardware has no TPM, though).  I am curious as to whether I will be able to upgrade to Windows 10 when it is rolled out without having to disable BitLocker/decrypt the hard drive.  Windows Updates obviously work fine with BitLocker, but as I have not beta tested Windows 10 I have no idea whether I will need to decrypt the drive before upgrading the system to Windows 10 or not.  Any and all information is appreciated!


I am dual national of country X and Y. When I will be traveling from country X to Y, I want to use country Y's passport. When I will be coming back to country X from Y, I want to use country X's passport. Would there be any issues what so ever not just on airports but in future ?

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


I accidentally killed Deoxys when he fought me because he ran out of PP and killed himself.   Does he respawn?

During the Delta missions, you run into Deoxys but don't have a chance to save beforehand. I accidentally fainted Deoxys and failed to catch him.  Soon afterwards I went to the Mossdeep Space Center where the scientists told me Deoxys had been tracked somewhere around route 131.   I searched route 131, and even sky pillar, but I couldn't find him. My question is, where is he now?


During cricket matches I always hear commentators to say England need 8 runs to win. Is it grammatical?

I'd say Microsoft have a way of bending the rules and I know that McLaren have won the championship. While this sounds strange, I believe it is correct English (sorry, I'm not native).   But when it's a small company, would you still use it this way? Is a company always plural, or are small companies singular? I.e., would you say Bakery Johnson makes fine bread or Bakery Johnson make fine bread? Is it My book seller, Woody's, have moved or is it has moved?


So i'm trying to make something that waits for a user to press a key, and it stores whatever key they pressed in a variable without pressing enter. I heard of mscvrt but that only works on Windows, but i'm trying to make this on linux. Any ideas?

Is there a way of reading one single character from the user input? For instance, they press one key at the terminal and it is returned (sort of like getch()). I know there's a function in Windows for it, but I'd like something that is cross-platform.


I have a list like this: ["*****", "*****"]  I want to insert the elements of another list to the middle of this list like this: ["*****", "abc", "ded", "*****"]  However, my attempt produces a list nested inside another list: ["*****", ["abc", "ded"], "*****"]  This is my code: def addBorder(picture):      length_of_element = len(picture[0])     number_of_asterisks = length_of_element + 2     new_list = ['*' * number_of_asterisks for i in range(0, 2)]     new_list.insert(len(new_list)//2, [value for value in picture])          return new_list  I know that my code is good. I just want to know what tweaks I need to make.

I need a good explanation (references are a plus) on Python's slice notation.   To me, this notation needs a bit of picking up.   It looks extremely powerful, but I haven't quite got my head around it.


Let's forget 3D for a while and imagine it all happens in 2D.  I have two edges that are crossing each other, they are on exactly the same plane when it comes to Z axis (z-dimension is thus not important). How do I add a common vertex to those two edges precisely in the spot where they cross each other?  For example:

I need to put a point at the intersection of two edges. Below is a picture with red circles around where I need points to be placed.


I'm trying to install unity-lens-applications because my dash doesn't show application when I search something and It returned these errors:  The following packages have unmet dependencies: unity-lens-applications:i386 : Depends: libxapian22:i386 but it is not going to be installed Depends: unity-common-7.0:i386 or unity-common:i386 (>= 7.0.0) E: Unable to correct problems, you have held broken packages.   but when I search for broken packages in my package manager it shows that there is no broken package !  Any Idea to solve this problem ?

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


I have a php variable which reads data from CSV file using str_getcsv() function as below:   $test = array_map('str_getcsv', file($path))   Now $test contains array as below:   Array (   [0] => Array     (         [0] => Array             (                 [0] => abc             )          [1] => Array             (                 [0] => def             )          [2] => Array             (                 [0] => ghi             )          [3] => Array             (                 [0] => jkl             )          )     )   I would like to convert it in simple array as follows:   Array  (     [0] => abc     [1] => def     [2] => ghi     [3] => jkl  )   Can somebody help?

It's probably beginner question but I'm going through documentation for longer time already and I can't find any solution. I thought I could use implode for each dimension and then put those strings back together with str_split to make new simple array. However I never know if the join pattern isn't also in values and so after doing str_split my original values could break.  Is there something like combine($array1, $array2) for arrays inside of multi-dimensional array?


So as I see it, if I find $|GL_2|$ I can simply divide it by $|\Bbb Z_p^*|=p-1$ to find $|SL_2|$, because $GL_2/SL_2\cong\Bbb Z_p^*$, so the problem comes down to finding $|GL_2|$. To find it, I was thinking in the following direction: the matrix can have at most $2$ zeros (otherwise it wouldn't be invertible), so if we denote by $N_i$ the number of nonsingular matrices with $i$ zeros in them, $|GL_2|=N_2+N_1+N_0$. If the matrix has $2$ zeros, then they are either on the main diagonal or the opposite one and in either of those cases the number of invertible matrices is $(p-1)^2$, so $N_2=2(p-1)^2$. By similar reasoning, $N_1=4(p-1)^3$. What I'm much less sure about is the value of $N_0$, i.e. the number of nonsingular matrices with nonzero entries. Would the following be correct?     There are $(p-1)^2$ possible choices for the first column (or row, however you view the determinant), and since the second column cannot be a multiple of the first, $(p-1)^2-p$ possible choices for the second one. Therefore, $N_0=(p-1)^2((p-1)^2-p)$   After some simplification, that would make $|GL_2|=(p-1)^2(p^2+p-1)$ and $|SL_2|=(p-1)(p^2+p-1)$.  Edit: The correct solution to this according to my book is $|GL_2|=p(p+1)(p-1)^2$, with $|SL_2|$ following from that, so what did I do wrong? As I see it, that's essentially my answer, without the constant term in the quadratic. Where exactly was I wrong?

The question at hand:  The group $\mathrm{GL}_2(\mathbb F_p)$ of all $2\times 2$ invertible matrices with coefficients in the finite field $\mathbb F_p$ has order $(p^2 − 1)(p^2 − p)$. Let $\mathrm{SL}_2(\mathbb F_p)$ be the subgroup consisting of all matrices of determinant $1$, i.e. $\mathrm{SL}_2(\mathbb F_p)$ is the kernel of the group homomorphism $\det : \mathrm{GL}_2(\mathbb F_p) → \mathbb F_p$. Compute the order of $\mathrm{SL}_2(\mathbb F_p)$. Hint: $\mathrm{GL}_2(\mathbb F_p)$ is a disjoint union of fibers of $\det$.  I am feeling a little lost on this problem. I understand via my professor that $\mathrm{GL}_2(F_p)$ is the union of the fibres of det, that each fibre is a coset of $\mathrm{SL}_2(F_p)$, and that $\mathrm{GL}_2(F_p)$ is the order of $\mathrm{SL}_2(F_p)$ times the number of fibres. However, I am not sure how to show that the order is $(p^2-1)(p^2-p)$. Does anyone have any insight into this problem?


The viewport shading is just grey, with no light even though there are a few lamps in the viewport. Can anyone explain why? As you can see, the black vertical line down the middle is the sun lamp  EDIT: I couldn't find out the problem, but I just exported the model into another blender file and it was fine there.

I don't know why but now, when i go in material preview or rendered (in solid mode it works fine), my object is entirely gray, or invisible idk, because it has the same color of the background. I've been working for days on this project without having this issue, it suddenly showed up. I tried opening other old projects and suddenly they all do the same so i guess it is some blender program setting that applies for all the projects, but idk how it happened cuz i didn't change anything :/, anyone got any tips?


Related questions: ,     While raging, an  (Xanathar's Guide to Everything, p. 9-10) can activate Ancestral Protectors on a creature he/she has just attacked.  The ability states that:     Until the start of your next turn, that target has disadvantage on any attack roll that isn’t against you, and when the target hits a creature other than you with an attack, that creature has resistance to the damage dealt by the attack.   If said creature deals multiple types of damage in one attack - if a creature is resistant to all of those forms of damage,  states that each damage type is halved before damage is totaled.  However, Ancestral Protectors does not give resistance to each type of damage dealt by the attack - it gives resistance to the attack itself.  When calculating the damage dealt, would you still calculate it per the linked answer, or would you add it all, and then apply resistance?  To use the example from the Uncanny Dodge question: If the attack dealt 5 bludgeoning damage and 3 piercing damage, would Ancestral Protectors reduce it to (5+3)/2 = 4 damage, or would it reduce each packet individually for 3 damage total?  In short: Does gaining resistance to the damage of an attack mean gaining resistance to all types of damage contained in that attack, or does it mean halving the total damage of that attack?

Similar questions to this have been asked, but I wasn't able to find one that answers this specifically.  Say that you have resistance to slashing damage as well as resistance to fire damage (no caveats to nonmagical damage or not).  You are fighting someone who has a flaming greataxe (just an enchanted item) that deals 1d12+STR slashing damage, plus 1d6 fire damage on hit and they hit you.    How do you calculate the damage?   (1d12+1d6+STR)/2 (1d12/2) + (1d6/2) + STR (1d12+STR/2) + (1d6/2) something else?


I upgraded Windows 8.1 to Win 10 Preview build 9926, the start menu wont even pop up when I click on it.  I installed classicshell then, it works but after I removed classicshell, the windows start menu still does not work when I click on it.  Does anyone know where the settings are in registry for start menu in Window 10?  Also when I trying to refresh windows in repair mode, it says "drive is locked"...?

The Start Menu in Windows 10 is not working anymore.  I click, and simply nothing happens.  I could use Cortana, build 9926, but when I click on the Cortana search bar, nothing happens again.  Do you know a trick to restore the menu?  Is it something to uninstall or to install to have again the menu working?  It's not fun to navigate into Explorer every time I need to launch software!


I know in the movie that he was stabbed then he fell off of his tower onto a water wheel. But my friend says that didn't happen in the books.

Saruman was one of Maiar, like Gandalf. Meaning that he had a mortal body but presumably, when that body was killed, would simply return back to his ("spirit?") being.  Is there any confirmation from Tolkien that this is indeed what happened after he was knifed by Grima? Or was he somehow completely destroyed since he was de-powered by Gandalf?


I have two groups a G1 and control.  For both groups we measured their cell counts every 10 minutes:  0 to 650 min.    We are trying to find:    Difference (in cell counts) between G1 and controls - significant Effect of time (on the cell count) the same for both G1 and controls   What statistic analysis do we need to use?  One of my friends told me to use the generalized estimating equation (GEE), but I am not sure.  What is GEE used for?

I am wondering what the differences are between mixed and unmixed GLMs. For instance, in SPSS the drop down menu allows users to fit either:   analyze-> generalized linear models-> generalized linear models & analyze-> mixed models-> generalized linear     Do they deal with missing values differently?    My dependent variable is binary and I have several categorical and continuous independent variables.


I do not know why Ubuntu Software Center does not download VLC for me. when i click on VLC player it displays a pop-up and says   **Package Dependencies can not be resolved** "This error could be caused by required additional software packages which are  missing or not installable. Furthermore there could be a conflict between   software packages which are not allowed to be installed at the same time."

After upgrading from 10.04 to 12.04 I am trying to install different packages.  For instance ia32-libs and skype (4.0).  When trying to install these, I am getting the 'Unable to correct problems, you have held broken packages' error message.   Output of commands:  sudo apt-get install -f Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   After running this:  sudo dpkg --configure -a foo@foo:~$ sudo apt-get install -f Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


System.DmlException: Insert failed. First exception on row 0; first   error: CANNOT_EXECUTE_FLOW_TRIGGER, The record couldn’t be saved   because it failed to trigger a flow. A flow trigger failed to   execute the flow with version ID 301a00000004WPm.  Contact your   administrator for help.: [] Stack Trace:   Class.UCaseTests.testMethod1_UCase: line 53, column 1

I have a Process Builder flow set up and I am running some tests around the InvocableMethod Apex code. The tests pass fine in my staging and production environments. Yet, when I try to deploy to production, I get a strange error.  CANNOT_EXECUTE_FLOW_TRIGGER, The record couldn’t be saved because it failed to trigger a flow.  Thankfully I received a somewhat more informative error email.  UPSERT FAILED ---  ERRORS :  (CANNOT_EXECUTE_FLOW_TRIGGER) The record couldn’t be saved because it failed to trigger a flow. common.exception.AssertionException: ORA-20070: Cannot read from apex_class and apex_trigger while running tests ---  for SFDC record with ID : null,  Unfortunately, the deployment has nothing to do with the flow and it is unclear why it is failing. What is the root cause of this error and how can I fix it? EDIT: I found out this is a . The other claimed workaround is to deploy via the Metadata API. UPDATE: Because I was subscribed to the Known Issue, I received the following confirmation this issue is resolved.  We are pleased to notify you that the following Known Issue has been resolved: Executing an InvocableMethod during an apex test run from a change set can cause Errors. Thank you for being patient while we worked to address this issue. Please feel free to reach out to Customer Support if you have further questions. Sincerely, Salesforce Success Team


what value have I to specify for umask that the group users get read, write and execute?

If I change the umask to 0000, I'd expect a text file to be created with rwxrwxrwx permissions (based on my understanding of the umask, ) However, when I try this, I get the following  $ umask 0000 $ touch /tmp/new.txt $ ls -ld /tmp/new.txt  -rw-rw-rw-  1 alanstorm  wheel  0 Jun  2 10:52 /tmp/new.txt   That is, execute permission is omitted, and I end up with rw-rw-rw- for files (directories are rwxrwxrwx).  I tried this on my local OS X machine, an old BSD machine I have at a shared host, and a linux server running on linode.   Why is this?  Its my understanding that umask is the final arbiter of permissions -- is my understanding of this incorrect?  If so, what else influences the default permissions of files on a unix system?


Trying to reverse swap all the characters in a string array, however, it's not outputting right. Does anyone know if I'm heading the right direction?  My code:   #include <string> #include <string.h> #include <iostream> #include <stdio.h> #include <cstring> // for strlen() using namespace std;  void doSwap (char &string1, char &string2) {     char temp;     temp = string1;     string1 = string2;     string2 = temp; }  int main() {     string testingWord = "hello";     int i;      cout << testingWord << "\n";      cout << "\tBelow is testing the swap feature:\n";      for (i = 0; i < testingWord.size() - 1; i++) {         doSwap(testingWord[i], testingWord[i+1]);     }      cout << testingWord << "\n"; }   Here is my output:  elloh   Edit: Not trying to do XOR swapping?

How do you reverse a string in C or C++ without requiring a separate buffer to hold the reversed string?


I followed the instructions on this  Ran the following commands sequentially   sudo sh -c 'echo "deb http://cran.rstudio.com/bin/linux/ubuntu trusty/" >> /etc/apt/sources.list' gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9 gpg -a --export E084DAB9 | sudo apt-key add - sudo apt-get update sudo apt-get -y install r-base   I am getting the following message upon execution of the last command       Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  r-base : Depends: r-base-core (>= 3.3.2-1trusty0) but it is not going to be installed           Depends: r-recommended (= 3.3.2-1trusty0) but it is not going to be installed           Recommends: r-base-html but it is not going to be installed E: Unable to correct problems, you have held broken packages.


Problem: Show that if R is a finite ring, then every prime ideal of R is maximal.  My attempt: Let I be a prime ideal of R. Then, by definition of a prime ideal, ab ∈ I implies a ∈ I or b ∈ I for every a, b ∈ R. Since R is a finite ring, there exists an ideal J such that I ⊆ J ⊆ R.   Question: Please help me on this. The definition of a maximal ideal is as follows: "The ideal I is said to be a maximal ideal of R if for all ideals J of R such that I ⊆ J ⊆ R, either J=I or J=R."  I have to apply the fact that R is a finite ring. But I don't know how I can satisfy I ⊆ J ⊆ R...

Let $R$ be a finite commutative unitary ring. How to prove that each prime ideal of $R$ is maximal?


When I copy 2-3 paragraphs from a E-textbook PDF file and paste it to MS word,the new line(line breaks) in PDF also appears in MS word even though .It means a new line in PDF also becomes a new line the word.But this is causing inconvinience to me .Im preparing notes for my students and deleting the spaces and tabs to remove the empty spaces is too time-consuming.I want the content to come in a single line when I paste it or at least it should match the margins of the MS word.What should I do?

I need to get thousands of snippets of text from PDFs to a spreadsheet. They are short, seldom more than 2-3 rows, but each line break creates a new cell, and I have to repair that manually, which costs lots of time.   Because I have so many of them, using the "paste into Word and do a find-and-replace" workaround is just too time-wasting for me. Is there a way to have the line break disappear on copy? Maybe there is a viewer which offers a special copy mode for this, or has a plugin?   The documents are scientific articles. The text arrangement is quite linear. You can assume that the text I'm copying is not inside a table or a float, and not rotated or anything. (If such a thing happens, I think I'll deal with it manually). The text is frequently set in two columns, but I have no trouble marking just the text I need from its column. I don't need to preserve any special formatting. I'm willing to try a solution which removes all unprintable characters, for example. The texts are in English, it is OK if the solution only works in ASCII/strips all non-alphanumeric ASCII of the copied text.   I have a very strong preference for a solution which will work on Linux, possibly some kind of Okular plugin. But if there happens to be a Windows-only solution, I want to hear about it too. I have a license for a somewhat recent Acrobat Pro on the Windows machine.


I'm working on Shor's algorithm. In Wiki, there says that if N is the product of two coprime integers greater than 2. Then, exist at least four distinct square root of 1 (mod N). And, I know I could reduce this congruence relation into two congruence relations. Then, we could apply Chinese Remainder theorem. But, I don't know how to apply this theorem to this statement. May someone give me some hints? Thank you!!

I split this into $x^2\equiv 1\pmod {7}$ and $x^2\equiv 1\pmod {13}$.  For $x^2\equiv 1\pmod {7}$, i did: $$ (\pm1 )^2\equiv 1\pmod{7}$$ $$(\pm2 )^2\equiv 4\pmod{7}$$ $$(\pm3 )^2\equiv 2\pmod{7}$$ Which shows that the solutions to $x^2\equiv 1\pmod {7}$ are $\pm1$.  For $x^2\equiv 1\pmod {13}$, i did: $$ (\pm1 )^2\equiv 1\pmod{13}$$ $$(\pm2 )^2\equiv 4\pmod{13}$$ $$(\pm3 )^2\equiv 9\pmod{13}$$ $$ (\pm4 )^2\equiv 3\pmod{13}$$ $$(\pm5 )^2\equiv {-1}\pmod{13}$$ $$(\pm6 )^2\equiv 10\pmod{13}$$Which shows that the solutions to $x^2\equiv 1\pmod {13}$ are $\pm1$.  Thus, I concluded that the solutions to $x^2\equiv 1\pmod {91}$ must be $\pm1$. I thought that $\pm1$ were the only solutions, but apparently I am incorrect! How do I go about finding the other solutions to this congruence?


Prove using contour integration that $$\displaystyle\int_0^\infty \frac{\ln x}{x^2+a^2}dx=\frac{\pi}{2a}\ln a$$   I used the substitution $x=e^t$ to transform the integral to $$\int_{-\infty}^\infty \frac{te^t}{e^{2t}+a^2}dt$$ Now it is easier for integrands involving exponential terms using rectangular contour in upper half plane, and I have successfully evaluated the integral by this method. But without transforming, if I require to evaluate the integral directly, the $\ln$ term gives a branch point around $x=0$ and a branch cut along positive $x$-axis. So I chose $\displaystyle f(z)=\frac{(\ln z)^2}{z^2+a^2}$ and a contour accordingly as below :   Now integral around smaller contour and outer contour is $0$ and the poles are $ia$ and $-ia$. So the integral becomes $$\int_0^\infty \frac{(\ln x)^2}{x^2+a^2}dx+\int_\infty^0 \frac{(\ln x+2i\pi)^2}{x^2+a^2}dx=2\pi i\bigg(\frac{\ln^2(ia)}{2ia}+\frac{\ln^2(-ia)}{-2ia}\bigg)=\frac{2i\pi^2\ln a}{a} \\ \implies -4i\pi\int_0^\infty \frac{\ln x}{x^2+a^2}dx+4\pi^2\int_0^\infty \frac{dx}{x^2+a^2}=\frac{2i\pi^2\ln a}{a} \\ \implies \int_0^\infty \frac{\ln x}{x^2+a^2}dx=-\frac{\pi}{2a}\ln a \ \ \ \ \text{and} \ \ \ \ \ \int_0^\infty \frac{dx}{x^2+a^2}=0$$ which is absurd. Where am I going wrong? Any help is appreciated.

This question is Exercise 10 of Chapter 3 of Stein and Shakarchi's Complex Analysis.  Show that if $a>0$, then $$\int_0^{\infty}  \frac{\log(x)dx}{x^2+a^2}=\frac{\pi \log(a)}{2a}.$$  The hint is to integrate over the boundary of the domain $\{z: \epsilon<|z|<R, \Im(z)>0\}.$ I'm not sure what to do with the integral over the outer arc.


how to make a box over my title? Just a box (like that one on the picture) on my titlepage?  kind regards

I have seen such a beautiful preamble (got the PDF from on of my studentfriends and need help to create such a beautiful titlepage. The black bands are to make the picture anonymous, to hide the identity of my friend.  But I just need such a beautiful titlepage for my instructors. No one of us has the preamble anymore :(  Kind regards  and thank you very much in advance.  Is it allowed to ask such a question in this forum?


After upgrading from 16.04 to 18.04 (keeping home directories, formating root) I cannot log in. After the password is accepted, gdm silently goes back to the login screen.  I can change run levels and log in there. In /var/log/syslog I find:  Fatal server error:   Cannot open log file "/home/myuser/.local/share/xort/Xorg.pid-1768.log"   ...   Unable to run X server   How is that even possible?  Checking the home folder, I note that there's a readme and some Access-Your-Private-Data.desktop; I can access neither. What happened here?

Disappointed to see that the 18.04 installer no longer offers the option to encrypt the home directory. According to  bug report referenced in the installer, the recommended method for encryption these days is full-disk with LUKS, or fscrypt for directories. Full-disk encryption seems a bit overkill for my needs, and all the bugs and caveats mentioned on the  don't make it a very attractive option. All I really want is to protect my home directory from someone accessing my documents, photos, etc. if my laptop were to get stolen, making fscrypt the option for me.  The  has some examples on how to set it up, but I can't find any documentation aimed at encrypting the home directory on Ubuntu. The old ecryptfs tool is still available, but after setting it up Ubuntu would sometimes freeze at the login screen.  So my question is: How do I setup fscrypt to encrypt my /home directory and decrypt when I log in? I also liked how ecryptfs allowed decrypting the folder manually (eg. from disk images).  (A similar question was posted  and was unfortunately closed for being an "off-topic" bug report. To clarify, this is not a bug report. The fact that the encrypt home directory option was removed from the installer was intentional. All I'm asking here is how to setup fscrypt.)


I have a website with .com top level domain. I mainly target audience from my country, but the service it offers is not limited to my country. I am thinking of buying the country specific domain name too, and redirecting it to my existing .com domain to improve SEO for searches including my country name. But I am not sure whether this will help or not. Does anyone know whether this will have a positive impact on SEO or not?

Lets say I have a domain already, for example www.automobile4u.com (not mine), with a website fully running and all.  The title of my "Website" says:    <title>Used cars - buy and sell your used cars here</title>   Also, lets say I have fully SEO the website so when people searching for the term buy used cars, I end up on the second or first page.  Now, I want to end up higher, so I go to the google adwords page where you can check how many searches are made on specific terms.  Lets say the term "used cars" has 20 million searches each month.  Here comes the question, could I just go and buy that domain with the search terms adress, in this case www.usedcars.com and make a redirect to my original page, and this way when people search for "used cars", my newly bought domain name comes up redirecting people to my original website (www.automobile4u.com)?  The reason I believe this benefits me is because it seems search engines first of all check website adresses matching the search, so the query "used cars" would automatically bring www.usedcars.com to the first result right?  What are the downsides for this?  I already know about google spiders not liking redirects, but there are many methods of redirecting...  Is this a good idea generally?


I am trying to add multiple footnotes in the chapter title but only one of them appears on the bottom of the page. \documentclass[12pt]{report}  \usepackage{tamuconfig} \usepackage{dcolumn}% Align table columns on decimal point     \usepackage{amssymb}% Package to draw a square in the formulas     \usepackage{wasysym}% Package to draw a square in the figures \usepackage{amsmath} % or simply amstext \usepackage{color} \usepackage{mhchem} \usepackage{chemformula} \usepackage{tabularx} % in the preamble \usepackage{longtable} \usepackage{siunitx} \usepackage[numbers]{natbib} \usepackage{booktabs} \usepackage{filecontents} \usepackage[multiple]{footmisc} \usepackage{caption} \usepackage{subcaption} \usepackage[hidelinks]{hyperref} \usepackage[multiple,symbol]{footmisc} \renewcommand{\thefootnote}{\fnsymbol{footnote}} \textheight=80pt% only for the example  \begin{document}  \chapter[nine]{SUMMARY AND CONCLUSIONS\footnote{one}\footnote{two}}  \end{document}  In my tamuconfig.sty file I have a line of code as     \usepackage[rm, tiny, center, compact]{titlesec}  I think that is what messes up with footnote. I appreciate it if anybody knows how can I fix this problem.

I'm adding two footnotes to a section heading:  \documentclass{article} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lipsum}  \usepackage[stable]{footmisc}  \usepackage{titlesec}  \begin{document} \section{test \footnote{This is footnote no1.} \footnote{This is footnote no2.} } \lipsum[4] \end{document}   The heading will have both of the footnotes, but at the end of the page only the second is displayed. The problem appears to be \usepackage{titlesec}, because it works fine without it.    Stuff I specified in \usepackage{titlesec}:  \renewcommand\thesection{\arabic{section}}  \renewcommand\thesubsection{\arabic{subsection}}  \renewcommand\thesubsubsection{\arabic{subsubsection}}  \titleformat{\section}[block]{\Large\scshape\centering}{\thesection}{1em}{}  \titleformat{\subsection}[block]{\large\scshape}{\thesection.\thesubsection}{1em}{}  \titleformat{\subsubsection}[block]{\large\scshape}{\thesection.\thesubsection.\thesubsubsection}{1em}{}   Thanks in advance!


I know most scientists, if not all scientists, believe Dark Matter cannot be accounted for by baryonic matter. And I don't mean baryonic matter that is unseen because it is not emitting light, I mean the baryonic matter we can see. Maybe regular matter only expresses 1/6th of its gravitational mass locally by the 1/R2 law but 6/6th starting a thousand light years away by the 1/R or similar law. How would scientists  go about testing or eliminating such a hypothesis?

There's more gravitational force in our galaxy (and others) than can be explained by counting stars made of ordinary matter. So why not lots of dark planetary systems (i.e., without stars) made of ordinary matter? Why must we assume some undiscovered and unexplained form of matter?


\renewcommand{\thesubsection}{\thesection.\alph{subsection}}  The above line set subsections to alpha listing, so if I had subsection A, then using \subsubsection{} would result in A.1, A.2, ... and so forth. However, how can I modify the command so that I can have subsubsections that are A.1.1, A.1.2, A.1.3, ...?

I'm trying to cross-reference 2 subsubsections from my document.  My structure is like:  \chapter{something} \section{1.1} \subsection{1.1.2} \subsubsection{Number 1} \label{sssec:num1} \subsubsection{Number 2} \label{sssec:num2}   I'm trying to reference both the subsubsections from my section 1.1 above. But when I use \ref{sssec:num1} and \ref{sssec:num2}, the reference is always pointing to the \subsection{1.1.2} for some reason.  My ToC depth is 2, so it's only showing as far as the subsection. Does anyone know a fix to this?  Thanks


Every time I ran an app a windows security alert pops up.  It doesn't matter which button to press, it will appear next time anyway.  I tried to disable all messages and even turn off windows firewall, but it doesn't help.

When I boot up my PC, I get these windows security alert message telling me to allow the programs and I have configured to open on startup through the firewall, then if I open an application E.G Steam, it gives me the same message, so I press allow, but the next time I boot the application or PC, they show up again, I've done a virus scan with Malwarebytes to no avail. I am using windows 10    Thanks in advance


Let suppose  $(-1)(-1)=(-1)²$  if i take square root on both sides then   $\sqrt{(-1)(-1)}=\sqrt{(-1)²}$  after multiplication and cancelation   $\sqrt{1}=(-1)$  which is wrong although i suppose a correct equation  $1=-1$  where i am wrong and if i am correct then I just want to know why it is so

Possible Duplicate:          I was thinking on the following line of thoughts: $1 =  \sqrt{1} = \sqrt{-1 \cdot -1} = \sqrt{-1} \cdot \sqrt{-1} = i^2 = -1$  Of course this is not true, but I was wondering which step in this 'line of thoughts' is forbidden to make?   Thanks for the explanation.


I'am getting a  java.lang.NullPointerException   when trying to use regex in the following code:  public static void scanSTAFFELNR() {      String STAFFELNR = CsvScanner.values.get(1);  // My values are stored in a ArrayList ( values). Here i want to get the second one.      if (STAFFELNR.matches("[0-9]+")) { // Here i want to check, if the String is a number.          System.out.println("erfolg");     } else {         STAFFELNRMessage = "Fehler bei STAFFELNR, STAFFELNR muss zwischen 0-3 sein";         Gui.fehlerCounter++;     } }   When i remove the STAFFELNR.matches and replace it with a STAFFELNR == "Hello" , i get no error.  I dont know how to fix this error on my code.

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 have a really confusing error, in the following script. reservations is just a file with 100 lines, let's say something like this:  apple pear fruit ...   cat reservations | while read LINE; do   echo $LINE   for i in {0..2}; do     ssh -o ConnectTimeout=10 admin@render rm -rf /tmp/lock$i     echo $i   done done   (This is already a simplified version of a production script.)  Now, what I would have expected, is to see an output like this:  apple 0 1 2 pear 0 1 2 ...   BUT, I only get the first line, i.e., the output is  apple 0 1 2   If I remove the ssh, everything works! For some reason, the ssh messes up the whole thing, and exits the while loop. I have absolutely no idea why that is!!

I am trying to read user and server details from file tempo.txt and then check the disk space usage of the file system on that unix account using another script server_disk_space.sh.But I am not able to figure out why while loop is only working for first line and for loop is working fine.Please help me understand this.  Using while loop  #!/usr/bin/ksh while read line do r1=`echo $line | cut -d"#" -f1`; r2=`echo $line | cut -d"#" -f2`; apx_server_disk_space.sh $r2 $r1 done<tempo.txt   Output  8     Using for loop  #!/usr/bin/ksh for line in $(cat tempo.txt) do r1=`echo $line | cut -d"#" -f1`; r2=`echo $line | cut -d"#" -f2`; apx_server_disk_space.sh $r2 $r1 done   Output  8 23 54 89 12     Contents of server_disk_space.sh  #!/usr/bin/ksh user=$1 server=$2 count=`ssh ${user}@${server} "df -h ."` echo ${count} | awk '{print $12}' | tr -d %   Above script outputs the value of Use percentage of Disk Usage on any server .    Contents of tempo.txt  abclin542#abcwrk47# abclin540#abcwrk1# abclin541#abcwrk2# abclin543#abcwrk3# abclin544#abcwrk33#


I made a big mistake by running:  sudo chmod -R 777 /   After that, a problem appeared, which is that sudo won't work anymore. When I run sudo in any command this error appears:   sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set   And when I searched for the problem I figured out that some permissions are messed up in the /usr/bin/sudo file but I can no longer become root so I can change the permissions!

I accidently ran  sudo chmod 755 -R /   instead of  sudo chmod 755 -R ./   I stopped it after few seconds, but now there is some problems such as  sudo: must be setuid root   How can I revert permissions back?


I'm having a slight problem with regards to the \thanks command.   My preamble is the following:  \documentclass[a4paper, 11pt, oneside]{Thesis}  % Use the "Thesis" style, based on the     ECS Thesis style by Steve Gunn \graphicspath{{Figures/}}  % Location of the graphics files (set up for graphics to be in PDF format)  % Include any extra LaTeX packages required \usepackage[square, numbers, comma, sort&compress]{natbib}  % Use the "Natbib" style for the references in the Bibliography \usepackage{verbatim}  % Needed for the "comment" environment to make LaTeX comments  \usepackage{vector}  % Allows "\bvec{}" and "\buvec{}" for "blackboard" style bold vectors in maths \usepackage{graphicx} \hypersetup{urlcolor=blue, colorlinks=true}  % Colours hyperlinks in blue, but this can be distracting if there are many links   In the author section I have the following:  \begin{minipage}{0.4\textwidth} \begin{flushleft} \large \emph{Author:}\\  John \textsc{Smith}  \thanks{Student at the University of Cape Town}  \end{flushleft}  \end{minipage}   ~  \begin{minipage}{0.4\textwidth}  \begin{flushright} \large   \emph{Supervisor:} \\   Dr. John \textsc{Doe\thanks{Lecturer at the University of Cape Town}} % Supervisor's Name \end{flushright} \end{minipage}\\[2cm]   I then get the following output    But I don't want the number, I want the symbols, like in the example here:

How can I make LaTeX use symbols (*, †, ‡, and so on) instead of numbers to mark footnotes?  (The numbers are confusing because I use superscripted numbers for citations.)


i have a 802.11n WiFi Dongle  in the cd there is a driver for linux that i put link bellow  i want install this driver with ./configure & make & make install BUT I CAN'T  please please please Help me...

I bought an AZTECH WL562USB wireless adapter and am stuck trying to install the driver.   The driver file I downloaded is a BZ2, called   2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO.bz2  How can I install the driver from this bz2 file?


Ubuntu 15.04  Nvidia GTX 650  YES, I have tried modprobe. Nothing works. I'm using the proprietary drivers (352.63). Still, when I look at the menu, all that shows up is "CPU". It really sucks to have to wait forever to render something that my graphics card could be handling. Any tips?  EDIT: I have tried running blender as superuser. I still get this:    EDIT AGAIN: After combining everything the community has said, I was able to get it to work! Thanks a lot!  Sorry if this is a duplicate, I just couldn't find anyone else with the same problem.

I want to enable GPU rendering, but there is no option in User Preferences > System:    Why is this? How can I get cycles to render using my GPU?


I learned about yet another meaning for the word mode (and modal) today, and wondered, not for the first time, if there is any word in the English dictionary with more completely distinct meanings than mode, and with just one spelling. So this is my question:  Excluding heterograph homophones (only including exactly one spelling of a word), and including only distinct derivations (see the comments about beam below), what word has the greatest number of  distinct meanings?

I am not a native speaker and it sometimes surprise me how many different meanings some words have. An example is the word call - when I was learning English I thought it was only "shout" or "to ring someone" but the list of meanings is almost endless:  .  What are some other such words so that I can be careful when interpreting their meaning? As if I could execute the query "give me a top ten list of words with most definition lines on TheFreeDictionary".


I was given this problem to solve by a professor who promised an A if anyone could solve it. I'm nearly certain it is impossible, because at some point you have too many vertices and inevitably box yourself in, but I would like to know how to prove it.  How can you prove that it is impossible to connect every * with every 0 without overlapping lines?  *    *    *     0    0    0   EDIT: Professor said you get an A if you solve it, not prove it's impossible. I'm not even in the class, it was my friend's question, I am just curious.

There's a puzzle where you have 3 houses and 3 utilities. You must draw lines so that each house is connected to all three utilities, but the lines cannot overlap. However, I'm fairly sure that the puzzle is impossible. How is this proved?


Can 25mm tubeless tires fit on a wheel that previously had 22mm tubeless tires? I have a set of wheels that previously had 22mm tires on it. There is no description of tire compatibility listed on the wheels.

We often get questions on bicycles.stackexchange about fitting wider or narrower tires to bicycles. We have a large number of these with answers suiting the specific bike or style of bicycle in question, but I have been unable to find one that provides a generic answer covering off all things that need to be considered. For most bicycles, the answer is the same regardless of the specific style and sizes of tires in question.   This is intended as a canonical question that we can point closed questions to.


Does anyone know the details of the ordinance system? If I have one ordinance going, and cancel it to put a different one into effect, does the change happen immediately? The next day?

In Animal Crossing: New Leaf, how many town ordinances can I enact concurrently? (I figure the early/late ordinances would conflict, but what about the others?)


I'm familiar with a simple method of demonstrating that $e^\pi$ is greater:  $f(x) = \ln|x|/x$ $f'(x) = (1 - (\ln|x|))/(x^2)$ so f's max is at $(e, 1/e)$ so $1/e > \ln(\pi)/\pi$ and $e^{\pi} > \pi^e$  My question is simply, how does one come up with this "$\ln|x|/x$" function?  I've tried working backwards, but there doesn't seem any real clear way of coming up with this magic function that gives such an elegant solution to this problem.

How can I  compare (without calculator or similar device) the values of $\pi^e$ and $e^\pi$ ?


I have been trying to figure out what these 3 fonts are named for quite a while now and I have been having no success. I did get some help from one of my friends that said the first one was ccr and the last one was cmss. But when I tried searching for them online and trying to use them myself I couldn't do that either. I am a beginner at LaTeX.  \usepackage{concmath} \usepackage[T1]{fontenc}   On a guide online it told me to use these, but that made the default text a different font, how would I change the font of a specific block of text?

Is it possible to identify the font used in a specific document/picture?  Answers to this question should identify:   Possible methods to do this (perhaps one answer per method) and adequately describe how to use it (as opposed to merely stating it); Ways of finding the identified fonts, if possible (free or not); and Any prerequisites associated with the method used, if required (for example, "In order to use method X, your document has to be in format Y").   This question is meant as an FAQ, based on an . Its aim is to facilitate the community with the general procedures involved in font identification. Similar cases are solved on a per-usage basis on 's  tag.


Like her teammates Batman and Superman, does Wonder Woman also have a no-kill rule?   As she certainly did kill a lot of German soldiers in the WW 2017 movie, my question is primarily towards her comic book and/or animated universe version.  PS: Not counting the Flashpoint version as in it, she was basically an evil version.

Regularly in ,  appears to lose her temper and comes very close to killing someoine in anger. AFAIK she never follows through in the show.   But anywhere in canon, does she ever kill a mortal?  She decapitates  in a baseball court, but she's not really a mortal anymore:     The fight takes place in a baseball court and is by Ares transmitted to the world. The fight is brutal, as Diana fights blind, first by a piece of cloth, then by snake venom she pours into her own eyes. But Diana is victorious in the end as once again, Medusa is .   Some examples of WW almost killing mortals:     Once when she believes Superman has been killed:                                      And once when some bank robbers interrupt her day off:


I am trying to embedd this website into my own website I have tried so using Iframe but the page is just blank.   The link I want to embedd is -   Or -   My Iframe :   <iframe src="https://www.zillow.com/homedetails/1-Anchorage-Way-APT-1505-Freeport-NY-11520/2094629656_zpid/" width="420" height="315" frameborder="0" allowfullscreen="allowfullscreen"><iframe>   Thanks in advance.

I'm trying to embed an iFrame, and because I set up some CSS using responsive design, I wish to NOT have width="" and height="" attributes whatsoever.   When I type this into the HTML editor field..     And then I switch to visual mode and come back, it immediately removes the class="scale-with-grid" and changes it to width="320" height="240"     How do I avoid this? I used this "Raw HTML" plugin but it didn't apply to this iframe situation whatsoever.


I came across a result today stating that if the coefficient of the highest order of independent variable in the regression equation comes out to be necessary (via hypothesis testing), then the lower order terms of the independent variable are also necessary.  Can anyone explain to me why this should happen?  To put it more simply, if the regression equation is:  $Y= A +B*X +C*X^2$  Then, I should first test for C=0 and if this is not the case, then need not check for B=0. I wanted to know why should this always be the case? I am a newbie to this and sorry if this is a silly question, but I simply could not take it for granted.

Is it ever valid to include a two-way interaction in a model without including the main effects?  What if your hypothesis is only about the interaction, do you still need to include the main effects?


Is $\frak c = \aleph_1$?  My textbook requires me to find out the cardinality of $I(\Bbb N)$, which is a set of all infinite subset of $\Bbb N$  What I found is cardinality of $I(\Bbb N)$ equals to $2^{\aleph_0} = \frak c$ then is it also okay to denote that $\frak c =\aleph_1$?

The above definition was given to me by a friend of mine who introduced me to $\aleph$, and infinite sets. The argument he gave me was (paraphrased how I understand it).        While the set of natural numbers is infinite, each number has only a finite number of digits.   Each real number as an infinite number of digits. (The rest is filled up with 0s).   We can represent each real number using binary numbers.   Map each bit of the real numbers to an element of $\mathbb N$.   The cardinality of $\mathbb N$ is $\aleph_0$.   There are $2^{\aleph_0}$ possible combinations of the bits.   There are $2^{\aleph_0}$ real numbers.        He then sort of defined $2^{\aleph_0}$ as $\aleph_1$. I'm guessing the cardinality of the real numbers is taken to be $\aleph_1$?  Said friend also said he has a proof that $\aleph_0^k = \aleph_0$. I haven't yet read his proof as at the time of writing, and may update this question with it when I do. I've been told here that        you can't claim $2^{\aleph_0} = \aleph_1$         which surprised me, but I can't be so sure of the definition myself, so.   My question is:        Is $\aleph_1 = 2^{\aleph_0}$?


I have data in my table as following:   Author ID  Book Name  A1    Book1  A1    Book2  A2    Book4  A2    Book5    I want to represent the data as   A1  Book1,Book2  A2  Book3,Book5    How I can do that without using a temporary table?

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


I created this object but i want to make it round at the top like the screenshot. How can i make it? I know that bevel is one option but i am not sure how to use it in this object since it's flat.   Update: I created those cuts, how can i make them into a round shape now?

how to create half circular-window hole, I think it called arched window? I only know using knife project, but it will make ngon, and I must cut it one by one into tris/quad.  so, do you know another way to window hole for arched window without resulting ngon?


I am using a custom file upload button in my web app. I want the user to see that they have chosen a file so I change the html of a div to show the file name.   Here is my jquery:  $("input[type=file]").change(function() {     var filename = $("input[type=file]").val();     $("#share-file-name p").html(filename); });   Now, this works great, except for the fact that the value of the input is:  C:\fakepath\photo.jpg   So that's what the user sees. I just want them to see the "photo.jpg" part. How can I use my jquery to strip everything except for the file name?  Thanks!

Is there a way that I can get the last value (based on the '\' symbol) from a full path?  Example:  C:\Documents and Settings\img\recycled log.jpg  With this case, I just want to get recycled log.jpg from the full path in JavaScript.


I'm egyptian holder shengen visa single type valid from 13 August till 7th sep  I would like to travel to greece from 13 August to 18 after that wants to apply for turkish e-Visa can I apply and enter Turkey as my shengen is used and single entry but will be valid but someone told me single entry means that once u went out of shengen area means expired even if its valid for one month I need yr help  Please confirm

I got a UK visa for one month (restricted validity). It expires on November 4. Pakistani citizens are eligible to apply for a Turkish e visa if they have a valid UK visa. I want to visit Istanbul for a couple of days - from October 31 to November 2. Would I be eligible to still apply for an e visa?   My visa is for single entry. It's valid from October 4 to November 4.


Currently i am on dual boot system.After repair Window7,windows boot manager can not show Ubuntu option on startup.when computer start,system directly opens Window7.my Window7 on C: and Ubuntu on D:.

I installed Windows 7, which ate Ubuntu's boot file. When starting up the computer, it now goes straight to Windows, without giving me the option of booting Ubuntu.   How can I get Ubuntu back?


Proving that $\limsup {x_{n}} = \lim_{n \rightarrow \infty} ( \sup _ {m \geq n}  x_{m} )$.  I want to prove it using only the definition of the $\limsup {x_{n}}$: that $\limsup   {x_{n}}$ is the largest accumulation point of $\{x_{n}\}$.  I have seen many links for the proof here but as far as I understand not directly from this definition and after reading them all I got confused, could any one help me in proving this?

In Rudin, $\limsup$ is defined as follows:     Let $S$ be the set of subsequential limits of $\{s_n\}$. Then   $$\limsup s_n = \sup S. \tag{1}$$   However, our real analysis instructor defined $\limsup$ in a different manner:     $$\limsup s_n = \lim_{n \to \infty} \sup_{m \ge n} s_m. \tag{2}$$   I am having trouble understanding how these two definitions are equivalent. It would be very helpful to me if somebody could provide a proof with some explanation.  My thoughts on the problem:  I have noticed that the usual trend with these sort of proofs is to prove the upper bound $(1) \le (2)$ and then the lower bound $(1) \ge (2)$ to get the desired conclusion. However, I am unsure how to even begin.


As the title goes,   Does Stackoverflow (the website) use any Bootstrap?

What tools and technologies are used to build the Stack Exchange Network?  See also:


More specifically, what is in the nature of these particles that they carry a charge, and thus repel objects of similar charge and attract those of opposite charge?  Also, why would the charge of an electron and proton have the same magnitude???  Could it be that there are infinite universes, and yet only those where these particles have the same charge could atoms form, and allow enough order for an observer to ask these questions?  This question is different from others about the origin of charge in that it is directly querying about the multiverse theory, and whether this is a possible consequence.

This is something that has long bothered me, and I have asked a few physicists and chemists and never gotten a very satisfying answer. Why are particles charged? And I'm not asking (and this is the answer you often get) why some molecule might be negatively charged because the answer to that is simply is that there was one more negatively charged particle than positively charged particle. That doesn't answer my question, however, of why there are charged particles at all?  So, on a fundamental level, what makes one particle charged and another one neutral.  For instance, protons and neutrons have almost exactly the same mass, which I'm assuming that means they have very similar internal compositions, yet one is positively charged and the other neutral. What is going on that makes these particles different?  On a similar note, and I'd really like to know this, how is it that a proton and an electron have exactly equal and opposite charge, yet an electron is about 1000 times less massive than a proton?  I have particular trouble with this question because if the answer were something along the lines of "particle X which composes protons all have partial positive charges of n amount..." I would just ask why particle X has any charge and we'd be in the same predicament.  I'm sure there is a satisfactory answer to my question, I just can't find it and don't know what resources are reliable or detailed enough to be satisfactory.


I plan to display my Python script run result to share with others. thus, I plan to do a android apps and also a websites. I have use Pythonanywhere to run my python script and send my result to MYSQL. Unfortunately free account has its limitation. I plan to host in free web hosting in long term. I found heliohost but I am unsure if it is suitable for my requirements. I need a python script taht can run everyday at a certain time and save the output to MySQL so that people can access from android apps or webs. Besides, hekiohost, any web hosting that I can run python script fro free and allow higher bandwidth and storage? There are some free web hosting with large storage but does not disclosed if I can run my Python script.  Thanks in advance

This is a "catch-all" question designed to serve as an answer for all questions about choosing web hosting.  Pro Webmasters no longer accepts new questions about how to choose hosting.  All future questions pertaining to finding web hosting should be closed as a duplicate of this question. For more information about this policy please see .    How to find web hosting that meets my requirements?  What we're looking for in answers to this question are the basics about web hosting:   What is web hosting? What is the difference between shared, VPS, and dedicated hosting? How does a content delivery network relate to web hosting? Anything else you feel is helpful in finding a web host.   What we do not want is:   Endorsements or recommendations for specific web hosts We do not want your experience or other subjective information (just the facts please)


Could you please advise me on good resources regarding the common learning of git system and branches. I am fresh with VCS, so I need to understand how branches and merging stuff work.  Thank you very much!

Ok, after seeing , I have decided to skip to the end and go with .  So what I need is a beginner's practical guide to Git.  "Beginner" being defined as someone who knows how to handle their compiler, understands to some level what a  is, and has touched source control without understanding it very well.  "Practical" being defined as this person doesn't want to get into great detail regarding what Git is doing in the background, and doesn't even care (or know) that it's distributed.  Your answers might hint at the possibilities, but try to aim for the beginner that wants to keep a 'main' repository on a 'server' which is backed up and secure, and treat their local repository as merely a 'client' resource.  So:  Installation/Setup    How do you set up Git?  Try to cover Linux, Windows, Mac, think 'client/server' mindset.         Working with the code          How do you handle binary files (visio docs, for instance, or compiler environments)? How do you merge files changed at the "same time"?    Tagging, branching, releases, baselines    How do you pull a particular 'release'?   How do you resolve conflicts and complete the merge? How do you merge parts of one branch into another branch?        Other   Describe and link to a good GUI, IDE plugin, etc. that makes Git a non-command line resource, but please list its limitations as well as its good.    - Cross platform, included with Git  - Cross platform history viewer, included with Git  - Mac OS X  - Mac OS X history viewer  - Cross platform, commercial, beta  - console GUI for Linux  - GUI for Windows, Linux  - package for Windows, includes friendly GUI  Any other common tasks a beginner should know?     How do I work effectively with a subversion repository set as my source control source?   Other Git beginner's references                 Delving into Git     (and )    I will go through the entries from time to time and 'tidy' them up so they have a consistent look/feel and it's easy to scan the list - feel free to follow a simple "header - brief explanation - list of instructions - gotchas and extra info" template.  I'll also link to the entries from the bullet list above so it's easy to find them later.


The following is an interview question.  Show that any matrix of the form  $$\begin{pmatrix} 1 & 1/2 \\ 1/2 & 1/3\end{pmatrix}$$  $$\begin{pmatrix} 1 & 1/2 & 1/3 \\ 1/2 & 1/3 & 1/4 \\ 1/3 & 1/4 & 1/5 \end{pmatrix}$$  etc. is positive definite.  By induction, it suffices to show that they have positive determinant. But how?  Things I've considered:   Use multilinearity/row operations Factor into $A^t A$ Do the Cholesky decomposition and notice a pattern Guess the minimimal polynomial and observe that all the roots are positive   I can't seem to figure it out though. I'm looking for a solution that you could plausibly come up with in an interview  Note: I have verified for sizes up to $13\times13$ that the determinant is positive using Python, but the matrix starts getting pretty close to singular as it increases in size. (Of course, you wouldn't know that in an interview)

I want to prove that the matrix $$\begin{pmatrix} 1   &\cfrac{1}{2} &\cfrac{1}{3} &\cdots &\cfrac{1}{n} \\ \cfrac{1}{2} &\cfrac{1}{3} &\cfrac{1}{4} &\cdots &\cfrac{1}{n+1} \\ &\vdots &&\ddots &\vdots \\ \cfrac{1}{n} &\cfrac{1}{n+1} &\cfrac{1}{n+2} &\cdots &\cfrac{1}{2n-1} \end{pmatrix}$$ is positive definite. Using mathematical induction, I only need to show that its determinant is positive. But I can't find the way out.


If, for example, someone casts Fog Cloud, next to the target A and target B when they're fighting each other. If target B would run away from the fight he would cause an Opportunity Attack but when the area is Heavily obstructed (by the Fog Cloud spell) all the targets are counted as Blinded.     Blinded Condition         A blinded creature can’t see and automatically fails any ability check   that requires sight.   Attack rolls against the creature have advantage,   and the creature’s Attack rolls have disadvantage      -     Opportunity Attack:      In a fight, everyone is constantly watching for a chance to strike an   enemy who is fleeing or passing by. Such a strike is called an   opportunity attack. You can make an opportunity attack when a hostile   creature that you can see moves out of your reach. To make the   opportunity attack, you use your reaction to make one melee attack   against the provoking creature. The attack occurs right before the   creature leaves your reach.   If target B tries to leave target A's reach can target A use his Perception to beat target B's stealth? Or is target B is not detected, since target B cannot be seen? Or is target B forced to use Disengage even though he can't be seen?

Our party was forced to brawl against a group of orcs in order to gain their respect to speak with their chieftain (long story, we had very good reason for doing this). It then became a battle royale.  Our wizard was at low health and next to our paladin, and had the idea to cast fog cloud to capture himself and the paladin within it so he could leave combat. He cast the spell, and then came down to the debate of whether the paladin would get an opportunity attack even though she was blinded.   The wizard was in threat range, but does an effect that causes an area to become heavily obscured cause the Paladin to lose threat range and the wizard be able to successfully flee to another area of the ring?  Or does the paladin still have threat range and attack the wizard, even with fog cloud covering both of them?  I looked over the rules for 15 minutes after this situation, but nothing came up.  It was ruled in-game that it was fine to make an opportunity attack with disadvantage, but that just doesn't feel right. She might have heard the wizard stepping away, but the fog cloud was already in place. By the D&D rules, would the paladin have been able to make the opportunity attack or not?


When something is going to happen, it spins/rotate really fast. It's kind of a sci-fi/magic story. I don't remember much because I was maybe 7-10 years old when I watched it. It could be an Australian show.

I remember a series that I liked in the 80's. It was about a group of children that may have lived on a farm.  They found pieces of machinery in the local countryside which they found fitted together.  It definitely had a sci-fi type feel to it and was a live action show.  I think the series was probably on after Newsround for 20-30mins. It may have been an import.  I never saw all the episodes, sorry for being vague.  Also I never saw an ending if there was one.  EDIT  There was maybe a swamp where they found a ring of the device Also there was a girl and boy and possibly another character other than family members (mum, dad etc)


Given a consumer which uses a service, how can this consumer select a specific provider dynamically using declarative service ?  Example  Service.java  public interface Service {     public void do(); }   Provider1.java  public class Provider1 implements Service {         @Override     public void do(){         //a way      }    }   Provider2.java  public class Provider2 implements Service {         @Override     public void do(){         //another way      }    }   Consumer.java  public class Consumer {     private Service myService;      protected void bindService(Service s){ // Actually it's Provider1         myService = s;     }      protected void unbindService(Service s){         myService = null;     }      public void useThisKindOfService(String s){         // Do something crazy     } }   So, what I would like it's instead of "Do something crazy", to find a way to reconfigure the consumer in order to release Provider1 and ask for Provider2.  Is it possible ?   Update related to "Duplicate Question"    In my context I cannot use the declarative target because the value of the target has to be know at build time, in my case the target could be defined by a user at runtime.

I am using Apache Felix and its Declarative Services (SCR) to wire the service dependencies between bundles.  For example, if I need access to a java.util.Dictionary I can say the following to have SCR provide one:  /** * @scr.reference name=properties interface=java.util.Dictionary */  protected void bindProperties(Dictionary d) { }  protected void unbindProperties(Dictionary d) { }   Now, I have more than one Dictionary service available, and I want to filter them using the "name" service property (I only want "name=myDictionary"). I can do that with code (using a ServiceTracker), but I'd rather specify the filter in the @scr annotation instead.


Recently I have a paper acceptance from a tier-1 conference in our field of telecommunication. I have also submitted the extended version in IEEE Transactions as well.  Is it ok (and acceptable) for me to write the patent out these papers? (I understand that paper acceptance does not guarantee patent acceptance)  What will be the academic/career benefits for me to write the patent at this stage when I am writing my thesis?

After working on a project some times, some results are obtained and we decide to publish it. I know publishing a paper and applying a patent can actually happen in the same time, but is there any difference for their priority?   For example, if I obtain a patent first for my results, will it make it more difficult to publish the same results in academic paper, or vice versa?   If I do it together, will there be any conflict between them?


Does there exist such Borel measurable function $f: \mathbb R \to [0,\infty )$ such that $\int _a ^b f \, dx = \infty$ for all $a< b $?  My feeling is that such function should not exist, but I can't see why. Any help is appreciated.

Could give some examples of nonnegative measurable function $f:\mathbb{R}\to[0,\infty)$, such that its integral over any bounded interval is infinite?


Unity 14.04 is failing to load after an upgrade from 12.04. I think it is because it was an incomplete upgrade and there was some errors. I finally got it to recognize me and let me login into Unity with my user name and password but then it crashes. When I went into the terminal I searched for errors but have no clue what the below code describes:  X Error of failed request: Bad Request (invalid request code or no such operation) major opcode of failed request: 155 (glx) minor opcode of failed request: 19 (X_GLXqueryserverstring) serial number of failed request: 22 Current serial number in output stream: 22 openConnection: connect: no such file or directory cannot connect to brltty at: 0 script for ibus started at run_im. script for auto started at run_im. script for default started at run_im. init: update-notifier-crash (/var/crash/_usr_lib_i386-linux-gnu_libgtk-3-0_gtk-update-icon-cache-3.0.0.crash) main process (2007) terminated with status 1 init: update-notifier-crash (/var/crash/_usr_sbin_unity-greety.114.crash) main process (2008) terminated with status 1

I tested out Unity 5, and of course, it broke things, so I tried downgrading by    sudo apt-get install ppa-purge sudo ppa-purge ppa:unity-team/staging   It removed Unity completely.    apt-get install unity   seemed to work, but the login screen now offers only Gnome.  How do I get back to Unity 4?


I am trying to implement a process which can help me in refreshing the dashboard after one hour.   I have tried using salesforce process builder but that too depends on having an activity.Please do suggest if there is any way within salesforce through which we can implement the same.

Is there a way I can initiate a dashboard refresh from a VF page remotely?  Is there an action or a URL I can use to refresh a specified dashboard?  I want to recreate the refresh dashboard button on my VF page. I have seen the schedule refresh option but I am looking for more control for the user to refresh the dashboard on demand.


Regardless if i enter "Y" or "N" into the console it always jumps into the else statement, is the scanner set up wrong or what is the problem with this script ?   import java.util.*; import java.lang.*; import java.io.*;  class StartingClass { public static void main(String arg[] ){      System.out.println("The Best Encryption Bot 2016");       StringBuffer passWord = new StringBuffer();      Scanner input = new Scanner(System.in);      System.out.println("Please enter the phrase you want to encrypt: ");     passWord.append(input.nextLine());     System.out.println("Original: " + passWord);      for(int i = 0; i < passWord.length(); i++) {         int temp = 0;         temp = (int)passWord.charAt(i);         temp = (int) (temp * 4);         passWord.setCharAt(i, (char)temp);     }        System.out.println("Encrypted: " + passWord);       System.out.println("Do you want to unencrypt a phrase ? Y/N");     Scanner Encrypt = new Scanner(System.in);      String unencrypt = Encrypt.nextLine();       if (unencrypt == "Y" ) {          StringBuffer deCrypt = new StringBuffer();              Scanner deinput = new Scanner(System.in);              System.out.println("Please enter the phrase you want to Decrypt: ");             deCrypt.append(deinput.nextLine());             System.out.println("Original: " + deCrypt);              for(int i = 0; i < passWord.length(); i++) {                 int temp = 0;                 temp = (int)deCrypt.charAt(i);                 temp = (int) (temp / 4);                 deCrypt.setCharAt(i, (char)temp);                }             System.out.println("UnEncrypted: " + passWord);              } else {                  System.out.println("Ok");              }      }  }   The problem is at the if statement where unencrypt == "Y"

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?


Edit: Appearently the question has been marked a duplicate of  even though my question is about how to safely work with a list on one thread while another thread is modifying it, and the linked question is about how to remove during iterating.  Problem: I have a List<Object> objects in a class. This class also contains a getObjects() method which returns the object list.  I have two threads working with this list. One thread is adding objects every now and then, and the other thread is doing stuff with them and removing it from the list once it's done. The problem occurs when I'm iterating over the list in thread two, while thread one adds an object to the list at the same time.  I have attempted to counter this, by having thread two only work with a copy of the list, and not the actual one. Using List<Object> newList = getObjects();. Here I presumed that since newList is a different list(with the same objects though), that I could safely iterate over it and work with the objects. However it appears that this still causes the exception, because (I assume) the = operator just makes newList a reference to the objects list. And that I'm still iterating over the objects list.  Question: So my question is: How do I safely work with the objects from the list in thread two?   Code: Even though I doubt it'll be of use for answering the question, here's the code(I removed all unneccesary clutter thats irrelevant to this question).  public class One {     List<Object> objects;      public One()     {         objects = new ArrayList<Object>();     }     public void addObject(Object object)     {         objects.add(object);     }     public List<Object> getObjects()     {         return objects;     } }  public class Two {     private One one;     public Two(One one)     {         this.one = one;     }     public void processObjects()     {         List<Object> newList = one.getObjects();         for(Object object : newList) //Causes error because during iteration thread 1 adds an object to the objects list.         {           //dostuff with the object.         }         one.getObjects().removeAll(newList);     } }

We all know you can't do the following because of ConcurrentModificationException:  for (Object i : l) {     if (condition(i)) {         l.remove(i);     } }   But this apparently works sometimes, but not always. Here's some specific code:  public static void main(String[] args) {     Collection<Integer> l = new ArrayList<>();      for (int i = 0; i < 10; ++i) {         l.add(4);         l.add(5);         l.add(6);     }      for (int i : l) {         if (i == 5) {             l.remove(i);         }     }      System.out.println(l); }   This, of course, results in:  Exception in thread "main" java.util.ConcurrentModificationException   Even though multiple threads aren't doing it. Anyway.  What's the best solution to this problem? How can I remove an item from the collection in a loop without throwing this exception?  I'm also using an arbitrary Collection here, not necessarily an ArrayList, so you can't rely on get.


Let us assume that every vector in S_2 is a linear combination of vectors in S_1.  Question: Does that mean that S_1 and S_2 are bases for the same subspace of V?  I know that the answer to this question is yes, the subspace spanned by both S_1 and S_2 are the same, but how do i show that?

Let us assume that every vector in $S_2$ is a linear combination of vectors in $S_1$.  Question: Does that mean that $S_1$ and $S_2$ are bases for the same subspace of $V$?  I know that the answer to this question is yes, subspaces spanned by both $S_1$ and $S_2$ are the same. Let's call them $W_1$ and $W_2$ respectively. How do we prove $W_1=W_2$? Equal subspaces when regarded as sets, must have the same elemnts. How can we show that EVERY vector in one subspace is also in the other subspace?


I am trying to achieve autosuggestion functionality using jquery for SharePoint but my code does not go fire the operation: getlistitem it directly jumps from there and goes to the input code  <script language ="javascript"  type = "text/javascript"> $(document).ready(function(){  readyCall();  });  function readyCall() {    var externalParties = [];    debugger;    $().SPServices({    operation:"GetListItems",    listName:"FruitsList",    CAMLViewFields:"<ViewFields><FieldRef Name='FruitNames'/></ViewFields>",     async:false,    completrefunc:function(xData,Status){            $(xData.responseXML).SPFilterNode("z:row").each(function(){     externaParties.push($(this).attr("ows_FruitNames")); }); }  });     $("input[id$='Name_x0020_Of_x0020_the_x0020_Fr_5df8c07d-1dd7-4e65-a9fe-695dbe65f187_$TextField']").autocomplete({      source:externalParties});  } </script>

I am working on Sharepoint 2013 Autocomplete functionality  I created 2 lists  1) FruitsList --> List 1 |  FruitName --> column   2) FruitFetching --> List 2 |  Name of the fruit --> column   I gave the list of items to the FruitsList and what I want to achieve is I want to fetch the list of items from Fruitfetching list through Autocomplete.  I added the code in SharePoint webpart. Sharing the code below.  <link href= https://alshayacom.sharepoint.com/sites/TimesheetDEV/MasterDetailSite/SiteAssets/autocomplete-0.3.0.css rel="stylesheet" /> <script src= https://alshayacom.sharepoint.com/sites/TimesheetDEV/MasterDetailSite/SiteAssets/jquery-3.1.1.js type="text/javascript" ></script> <script src= https://alshayacom.sharepoint.com/sites/TimesheetDEV/MasterDetailSite/SiteAssets/jquery-ui.js type="text/javascript" ></script>     <script src= https://alshayacom.sharepoint.com/sites/TimesheetDEV/MasterDetailSite/SiteAssets/jquery.SPServices-0.7.2.js type="text/javascript" ></script>    <script type = "text/javascript"> $(document).ready(function(){         readyCall();     });  function readyCall() {    var externalParties = [];    $().SPServices({    operation:"GetListItems",    listName:"FruitsList",    CAMLViewFields:"<ViewFields><FieldRef Name='FruitName'/></ViewFields>",     async:false,    completrefunc:function(xData,Status){      $(xData.responseXML).SPFilterNode("z:row").each(function(){     externaParties.push($(this).attr("FruitName")); }); }  });     $("input[id$='Name_x0020_Of_x0020_the_x0020_Fr_5df8c07d-1dd7-4e65-a9fe-695dbe65f187_$TextField']").autocomplete({      source:externalParties});  } </script>   This is my code. I added debugger  inside the function. but it is not going inside SPservices it is directly going to the input text box.   As I am new to SharePoint can anyone plz help on resolving this issue.  If I add an alert in the complete function I am geeting like this below screen shot   Thanks in Advance


I am using  C++ lib, and created two vectors using  std::vector in a function. But how can I return back the two vectors in one function? Is it possible to merge the two vectors into an array or a matrix in order to return them,

Is there a preferred way to return multiple values from a C++ function?  For example, imagine a function that divides two integers and returns both the quotient and the remainder.  One way I commonly see is to use reference parameters:  void divide(int dividend, int divisor, int& quotient, int& remainder);   A variation is to return one value and pass the other through a reference parameter:  int divide(int dividend, int divisor, int& remainder);   Another way would be to declare a struct to contain all of the results and return that:  struct divide_result {     int quotient;     int remainder; };  divide_result divide(int dividend, int divisor);   Is one of these ways generally preferred, or are there other suggestions?  Edit: In the real-world code, there may be more than two results.  They may also be of different types.


I need to uninstall ubuntu but i cant find how to for my situation. I have ubuntu and windows xp both installed on my computer. However, the windows xp came preinstalled so i dont have the cd. I do not have a dvd/cd drive on my computer (I installed ubuntu via usb). Is there any way i could uninstall ubuntu while keeping xp installed.

I have absolutely no experience with Linux, and I desperately need to get my computer back up and running again with Windows.  How do I remove Ubuntu and reinstall Windows?    Editor's note: many of the answers are about removing Ubuntu from dual-boot but keeping Windows (which is a bit complicated), while other answers are about removing Ubuntu from single-boot (which is easy: basically just format the disk while installing Windows). The question as written is ambiguous between dual-boot or single-boot.


The ReadJson class parses a JSON file with a single string called Name and it sets that string to the variable Name1.  public class ReadJson {     public static String Name1;      public static void main(String[] args) {        Name1 = (String) obbj.get("Name");        System.out.println(Name1);    }     public static String getName1() {        return Name1;    } }   When running the Game class it returns null:  public class Game {     private static ReadJson name2;      public static void main(String[] args) {         name2.getName1();         System.out.println(name2);     } }

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?


What is the word, a noun or an adjective that describes majority of comments, on an article for example, as “useless” compared to just one brilliant comment. “Useless” comments are dull, idiotic, stupid, ignorant, nonsense,  etc. The word Garbage would be accurate, but it is insulting. The word should not insult anyone. The point of that word is to emphasize the opposing brilliance of one comment compared to 100 of others.   Example sentence:  "Most of these comments are ________, but a few are brilliant."

I am looking for a word that would describe a concept or activity, such as playing a game X, that is1 neither boring nor interesting. In other words, it should mean ‘neutral’ wrt intrestingness (~ boringness) but still comparable on the scale of intrestingness to both ‘boring’ and ‘interesting’.  An example sentence would be  As far as I'm concerned, long-distance running is [insert word]; it is not boring but it's also not interesting.  Criteria2   Has to be unambiguous3, and may consist of two words at most. Has to be a single word. Should be formal in the sense that it is included in Cambridge Dictionary, or Merriam Webster, or both. Should not contain negating prefixes, such as ‘un-’.   Does such a word exist in the English language?  For readers' convenience, please state which criteria you believe your word suggestion has met. You may do so, e.g., by adding a disclaimer at the top or bottom of your answer. Simply writing (1., 2.) is sufficient.        1 Assume a ternary system of intrestingness.   2 If not all criteria can be met, you may relax  the requirements from bottom to top, in the following order: 4. -> 3.  -> 2. -> 1. Answers with the smallest number of relaxed criteria in this order will be preferred in accepting. For example, fulfilling  (1., 2., 3.) is better than achieving (1., 3., 4.). Situations where a  higher priority ordering fulfills fewer criteria than a lower priority  vector, such as (1.) vs (3.,  4.), will be assessed on a case-by-case  basis.   3 Words such as ‘unappealing’ thus even fail  criterium 1 because in a three-valued system ‘unappealing’ ~ ‘not  appealing’ ~ ‘not interesting’ can be taken to mean either ‘boring’ or  ‘neutral wrt intrestingness’.


Let $G$ be a group with order $14$. Proof that:   a) $G$ contains normal proper subgroup   b) $G$ is isomorphic with $\mathbb{Z}_{14}$ or $G$ is isomorphic with $D_7$.   Solution:  $H \le G$ is normal $ \Leftrightarrow \forall_{g\in G} g H g^{-1} = \{ ghg^{-1} : h \in H \} = H$  From Lagrange theorem: $|G| < \infty, H \le G \implies |G| = |H| \cdot [G:H]$  From Cauchy theorem: $|G| < \infty$, p is prime, $p\mid |  G| \implies $ in $G$ exists an element with order $p$, so also subgroup with order $p$  Prime divisions of $14:2,7$ so in $G$ exists $|H_1| = 2, |H_2| = 7$. In each of these subgroups exists neutral element and some different elements so at total we have $1+1+6=8$. So we don't have still considered $6$ element what give us $2$ possibilities for $2$ subgroups with order $7$, one with order $2$ or four with order $2$, one with order $7$.  But how can I proceed with that?

Let $G$ be a group of order $pq$, $p>q$  and $p$, $q$ are primes. Then prove that  If $q\mid p-1$ then there exists a non abelian group of order $pq$. Any two non-abelian groups of order $pq$ are isomorphic.   I have proved that if $q\not\mid p-1$ then $G$ is cylic . But how to prove this one I have no idea. Any kind of hint is very much welcome. This problem is in Herstein book, page 75.


When wizards are dueling, if they both know how to cast the Killing Curse, then what is the meaning of one being more powerful than the other?  Specifically, we are repeatedly told how powerful Voldemort is. What exactly does this mean? Except for his Horcruxes, he should be no more advantaged in a duel.  PS: This question is not a duplicate. Its essence is that being able to cast a killing curse is the epitome of magical power in duels, and so Voldemort should not have become anybody special.

It is obvious that different wizards can cast spells with different power and/or effect (same for potions). But why?   Just some observations from my side - perhaps I'm wrong for some of them:  Spell casting seems to be like playing music or painting. More or less everyone can do it and the quality depends on some factors like:   knowledge - gained by studying experience - gained by practicing intelligence - innate and cannot be gained easily concentration at the moment (or ability to concentrate in general)   and last but not least   innate ability (talent) - you either have it or not   To me it looks like that the last one is determining everything. Some wizards like Dumbledore or Voldemort just "have it" and others will never be able to reach their power no matter how hard they try. Another example - Hermione is very intelligent and has read all the books but Harry beats her in defense against the dark arts nevertheless (and no - it's not Quidditch that helps him :) ).


I installed Kubuntu 14.04 (64bit) on a laptop with ATI Radeon Mobility 5470 graphic card. Trying to install latest proprietary driver () installer says your card is not supported by this driver:   ATI says this driver . However supported operating systems are:   Red Hat Enterprise Linux Suite 6.4 and 6.5 SUSE® Linux Enterprise 11 SP3 openSUSE 13.1 Ubuntu 12.04.3, 12.04.4 and 13.10   So the last line this means that catalyst 14.4 is not supposed to work with Ubuntu 14.04? If so, what should I do now? (fglrx or xorg-xserver-ati is not an option)

I am planning on doing a fresh install of Ubuntu and want to know what is the correct way to install ATI Catalyst Video Driver?      There are multiple valid answers for this question spanning over several versions of Ubuntu. For your convenience an index of each below:


Does anyone know how I can populate a table that uses a different geometry from another table of a different geometry? (example geometry(points) -> geometry(Linestring) or geometry(polygon) I'm new to SQL. This is what the source table would look like: (note that this table has type, because in column type it it is either road or district) CREATE TABLE points( name text,  type text,  geom geometry(POINT));  This is what I'm putting data from that table into a table that looks like this: CREATE table road( id serial PRIMARY KEY,  name text,  geom geometry(LINESTRING));  I'm having trouble with this as I am required to input from points into road or district and then union then afterwards in another query. so far I've tried several things, but since I'm very new to SQL I'm not entirely sure what I am actually doing This is my code: INSERT INTO district(name, geom) SELECT (name, geom) FROM points WHERE type =  'district'; INSERT INTO district SELECT * FROM points WHERE type = 'district'; INSERT INTO district SELECT name, points.geom FROM points where points.type = 'road';  so far I've gotten an assortment of errors, mainly saying: ERROR: column "geom" does not exist  or ERROR duplicate key value violates unique constraint "road_pkey" DETAIL: key(id) - (Snowflake Lane) already exists. SQL state: 23505  currently, the only way I've gotten it to work is if I manually put in all the roads and districts but I'm not supposed to do it that way since I need to UNION combine: List the name and geometry for place and etc. I've been stuck on this part for days and still, haven't figured it out yet...

I have a table with three points in it and I want to create a line from them using PostGIS.    when I try to create a line from this geometry using:  select id,         st_makeline(geom order by id desc) as geom  from public."point_table" group by id;   I get null geometery    What am I doing incorrectly?  PostGIS version 2.2.1 PostgreSQL version 9.5.1


For all n ≥ 3, construct an example of a probability space $(Ω_n, P_n)$ and events $A_1, A_2, . . . , A_n$ such that $P(A_i) = 1/2$ for each i, any n − 1 of the events are independent, but the n events are not independent. Can anyone help me construct a concrete example for me? I've been keeping constructing mutually independent events for an hour....  (I tried to use the example of dividing n people into 2 groups...but this does not work well)  Thank you!

I'm trying to find an example for $n$ events such that each $k$ ($k < n$) are independent, but the $n$ events together are dependent.  Two events are independent if the probability for both of them to happen equals to the product of the probability of each one separately.


I am trying to produce a vertical box with the word "Section" including its current section number on the outer margin of each page. This is to mimic the original IBM Technical Manuals. An example can be found below. It should stay at the exact position on each page and be visible on each page accordingly. I am using the memoir class in my document.

I am using the book document class. I would like to have Chapter name (Interduction, Results, Discussion, ...conclusion...) to appear in every page, in the right side small vertical (color filled) box (box size, let say 3cm). So, instead of chapter name in the header or footer, I want it to keep it in right side color filled box ..... sometime we see the style in Dairy, and also in many books as well.  For the first chapter, this right side box will appear at the upper top right margin....then in next chapter the box will be little lower and will have different color.  Is there anyone who can help me on this?