The code below:  function lookForMatches() {     for (var a=1;a<=2000;a++)     {         for (var b=1;b<=a;b++)         {             c=a*a*a+b*b*b;             d=5*c*c;             e=d-4;             f=d+4;             g=Math.floor(Math.sqrt(e))*Math.floor(Math.sqrt(e))             h=Math.floor(Math.sqrt(f))*Math.floor(Math.sqrt(f))             if (g==e||h==f)                 document.getElementById("matches").innerHTML+=c+" ";         }     }     document.getElementById("matches").innerHTML+="Done." }   is supposed to check for Fibonacci numbers in the sequence of the sums of positive cubes, but the output is:     2 5075441272 2976917960 7114243176 Done.   I ran the Fibonacci test manually in Windows Calculator, and although the square root of (5*50754412722±4) is extremely close to an integer value, it's definitely not an integer! I'm not even certain if the number 5075441272 is actually a valid sum of cubes. How large can integer values be in Javascript without introducing roundoff error?

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


I have a source code file that I want to include in my LaTeX document with \lstinputlisting. However, this source file contains logic symbols like ∃ (it's encoded in UTF-8), which produce errors. I tried using , but it requires that the input file be encodable in an 8-bit fixed-width encoding, and as far as I know, no such encoding in existence supports logic symbols.  I've seen some similar questions on this site but they all seemed to deal exclusively with characters representable in Latin-1/ISO-8859-1.  LaTeX file:  \documentclass[12pt]{report} \usepackage[latin1]{inputenc}  \usepackage{listings} \begin{document} \lstinputlisting{test.txt} \end{document}   test.txt:  ~∃x. S(x) = 0   Error message:  ! Package inputenc Error: Keyboard character used is undefined (inputenc)                in inputencoding `latin1'.   Is there any way around this?

I'm having some problems with listings and UTF-8 in my document. Maybe someone can help me? Some characters work, like é and ó, but á and others appear at the beginning of words...  \documentclass[12pt,a4paper]{scrbook} \KOMAoptions{twoside=false,open=any,chapterprefix=on,parskip=full,fontsize=14pt}  \usepackage[portuguese]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{listingsutf8}  \usepackage{inconsolata} \lstset{     language=bash, %% Troque para PHP, C, Java, etc... bash é o padrão     basicstyle=\ttfamily\small,     numberstyle=\footnotesize,     numbers=left,     backgroundcolor=\color{gray!10},     frame=single,     tabsize=2,     rulecolor=\color{black!30},     title=\lstname,     escapeinside={\%*}{*)},     breaklines=true,     breakatwhitespace=true,     framextopmargin=2pt,     framexbottommargin=2pt,     extendedchars=false,     inputencoding=utf8 }  \begin{document} \begin{lstlisting} <?php  echo 'Olá mundo!'; print 'Olá mundo!'; \end{lstlisting}  \end{document} \end{lstlisting}


In a normal distribution ,as far as I know distribution represents frequency of sth.But then how come normal distribution y-axis becomes    If distribution y-axis doesnt represent frequency, the what is central limit theorem.The central limit theorem y-axis represents the frequency of mean samples.Shouldnt it represent the above formula to satisfy a normal distribution

On the , there is this line:      $p(\mathrm{height}|\mathrm{male}) = 1.5789$ (A probability distribution over 1 is OK. It is the area under the bell curve that is equal to 1.)    How can a value $>1$ be OK? I thought all probability values were expressed in the range $0 \leq p \leq 1$. Furthermore, given that it is possible to have such a value, how is that value obtained in the example shown on the page?


So I tried to start using mysqli to improve security and this is what I have at the moment:  a conectar.php file  <?php $DBServer = 'X'; // ip o lo que sea $DBUser   = 'X'; $DBPass   = 'X'; $DBName   = 'X';  $conn = new mysqli($DBServer, $DBUser, $DBPass, $DBName);   if ($conn->connect_error) {  trigger_error('Database connection failed: '  . $conn->connect_error, E_USER_ERROR);   }    ?>   And then a php file which has the following code:  include("admin/conectar.php"); $categoria = $_GET['categoria']; if($categoria){  $query_p = $conn->query("SELECT * FROM `productos` WHERE `categoria` = '$categoria'     ORDER BY nombre ASC"); while($result_p = $query_p->fetch_object()){ $nombre = $result_p->nombre; $referencia = $result_p->referencia;; $descripcion = $result_p->descripcion;  $imagen = $result_p->imagen;   What should I do to prevent hacking or SQL injection?? Should I set up an array so only certain values of $categoria are accepted?  Thanks!

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


I am required to have, at the beginning of each chapter of my thesis and just after chapter number/name, something like this (e.g. for Chapter 1):     Table of contents: 1.1 chapter1section1name 1.2 chapter1section2name 1.3 chapter1section3name 1.4 chapter1section4name 1.5 chapter1section5name 1.6 chapter1section6name    That is, a minitoc but without going to a new line for each entry. What's the best way to achieve this result? I really have no clue...

I'm writing my thesis and I woud like to add a minitoc at the beginning of each chapter. However, I don't like the standard format where the titles of the sections are listed as in the main TOC and I would like to align the titles on the same row (a format I saw in several books), maybe sperated by a comma or a textbullet. I mean something like this:     Chapter 1      Contents      1.1 Sec 1, 1.2 Sec 2, 1.3 Sec3, 1.4 Sec 4   I can do this for the main TOC through the titletoc package, but I need it for minitoc. Is there a way to have this customization of the minitoc? Thank you in advance.


Knowledgeable and likeable and other other such words place an e before the a in able. However other words like writable and receivable don't.  Why is that? Is there a rule behind this?  Also the word writable just seems plain wrong because I keep reading it as rit-able not right-able; the e would definitely help in this situation. On the other hand, I am able read receivable as intended...

Possible Duplicate:          Both are correct for these words:        But these words are incorrect:            Are there rules for this?  The case for keeping the "e" seems to be that the "ga" in "acknowledgable" would be read as "gall" rather than "germ", but "minglable" shouldn't cause that problem.  I'm also not sure why we couldn't keep the "e" in words like "storable" or "makable".


Unlike C++ cout <<, Python print() function prints the passed arguments with an endline/newline and sometimes I found it annoying having multiple lines in terminal. I know I can use the print(var1, end='') or sys.stderr.write() from sys library but it's too long and quite hard to read. What I think is that may be I can make a cout<< operator in python and prints variables or values without new line at the end # Example in Python: for x in range(3):     print(x)  # Output: 0 1 2  # In C++:     for (int x = 0; x < 3; x++){     cout << x << ' '; }  # output: 0 1 2  Also, '<<' is much easier to type because the key is in the lower portion of the keyboard unlike parenthesis.

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


After I open an additional view of a window, how do I get rid of it?  Example below:    Dragging to the right/left does not help.  I am using 2.72 on Windows 7.

I can't find a way to close a view panel, in particular the horizontal at the bottom, is pretty useless to me at this moment.


What is the procedure to pass from the description of a phenomenon made by the : $$ \frac{dv}{dt}=-\frac{v}{\tau}+\sqrt{2c}\,\eta $$ to the corresponding description with the ?

What is corresponding fokker planck equation for,  $\frac{df(t)}{dt}=-kf(t)+\zeta(t)$  where, $\zeta(t)$ is random noise.  In particular, how will the fokker planck equation will look like if $\zeta(t)$ is exponentially correlated instead of delta correlated?  Nitin


I am using Ubuntu 12.04 dual booting with Windows 8.1. Recently I am noticing  that whenever I boot alternative OS the time is not the same i.e. When I switch from Ubuntu to Windows, system time in Windows gets delayed by some hours. But if I correct it and boot again to Windows, the time displayed is right one. Similarly, when I boot into Ubuntu, the time is delayed once its corrected its alright the next time. I am using Grub bootloader.

Dual boot system Windows XP Pro and Ubuntu 12.04.  I have the bios set for the correct time and Ubuntu set for US Eastern time.  Ubuntu will boot up and the time will be off by -4 hours.  If I correct the time in Ubuntu then when I boot up in Windows XP the time will be off by + 4 hours.  This is a fresh install of 12.04. I did not have this problem before reinstalling Ubuntu.


I need to match the line before a particular string. I am using ^.+(?<=abc) regex to match, this works for greedy pattern. i am looking for non-greedy pattern.   e.g /123/345/abc/v2/xyz/abc/dgdes/aegweg  expected result: /123/345/abc  What i get is /123/345/abc/v2/xyz/abc/  Appreciate any help.

I have this gigantic ugly string: J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000020: Document 1 - Completed successfully  I'm trying to extract pieces from it using regex. In this case, I want to grab everything after Project Name up to the part where it says J0000011: (the 11 is going to be a different number every time). Here's the regex I've been playing with: Project name:\s+(.*)\s+J[0-9]{7}:  The problem is that it doesn't stop until it hits the J0000020: at the end. How do I make the regex stop at the first occurrence of J[0-9]{7}?


Prove The following inequality $(ax+by)^2 \le ax^2+by^2$ for $a+b=1, 0 \le a,b \le 1$ I tried expanding the equation and substituting $b=1-a$ \begin{equation} (ax+by)^2=a^2x^2+2abxy+b^2y^2=a^2x^2+2axy-2a^2xy+b^2y^2 \end{equation} The middle member $2axy-2a^2xy$ is negative only for $a>1$, so I'm not sure how to proceed from here. In the hints I was given it was also said that it can be done by proving that the quadratic form $q(x,y)=ax^2+bx^2-(ax+by)^2$ is always positive. I tried finding the eigenvalues but ended up with huge equation I couldn't make sense of.

Let $a,b \in [0,1], a+b=1$ and let $\{u,v\}\subset\mathbb{R}$.   How can we prove that $$(au+bv)^2\leq au^2+bv^2?$$   Opening the brackets give me in the left side $(au+v-av)^2$, but I'm not think that's the right way to do that.  I don't find the triangle inequality very helpfull, too.  Thanks.


i've been trying to install wine on 18.04 for 7 hours, and i've gotten absolutely no results  every tutorial i find doesn't work  the only thing resembling a hint as to what was wrong i could find was this:  root@valeri-same-pc:~# apt-get update Get:1 file:/var/opt/amdgpu-pro-local ./ InRelease Ign:1 file:/var/opt/amdgpu-pro-local ./ InRelease Get:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B] Get:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]                    Get:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg                             Ign:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg                             Hit:4 http://repo.steampowered.com/steam precise InRelease                      Hit:5 http://us.archive.ubuntu.com/ubuntu bionic InRelease                      Hit:6 http://dl.winehq.org/wine-builds/ubuntu xenial InRelease                  Get:7 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]    Hit:8 http://ppa.launchpad.net/gezakovacs/ppa/ubuntu bionic InRelease           Get:9 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]     Hit:10 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease                Ign:11 https://dl.winehq.org/wine-builds/ubu... bionic InRelease                Ign:12 https://dl.winehq.org/wine-builds/ubuntu/dists/artful bionic InRelease   Err:13 https://dl.winehq.org/wine-builds/ubu... bionic Release                    404  Not Found [IP: 151.101.4.69 443] Get:14 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] Err:15 https://dl.winehq.org/wine-builds/ubuntu/dists/artful bionic Release       404  Not Found [IP: 151.101.4.69 443] Reading package lists... Done                                                   E: The repository 'https://dl.winehq.org/wine-builds/ubu... bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'https://dl.winehq.org/wine-builds/ubuntu/dists/artful bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.

When updating, I get the following error message:   W: The repository 'http://ppa.launchpad.net/mc3man/trusty-media/ubuntu xenial Release' does not have a Release file.   Here, I find another statement on this error:   This recommends removing certain PPAs; and, I'm not sure if I should do that since it might mean not getting the updates that I need.    Is this what I should do?


The question is actually pretty simply, just look at the code:  In [1]: collection = [[]] * 4  In [2]: collection Out[2]: [[], [], [], []]  In [3]: collection[0].append(1)  In [4]: collection Out[4]: [[1], [1], [1], [1]]   Why append 1 to collection[0] also append it to all the other dimensions? If that's not the correct way to add element into a specific dimension, then what's the right way?

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


I looked at various questions all over the internet. Infact i did the same almost 6 months back on my HP Desktop but i did so much hit and trial that i have forgotten what to do this time? Do i need to do any or all of them or what specifically? Disable Secure Boot in BIOS? Disable quick start within Windows 8.1? Disable UEFI Boot and enable legacy boot?  What all i need to do? On top of it, i have no idea what needs to be done exactly? There are so many blogs and stuff on internet forums with a very confusing answers.

I'm absolutely new to Linux. I would like to know how to install Ubuntu alongside the pre-installed Windows 8+ OS.  Should I do it with Wubi, or through the Live USB/DVD?  What steps do I need to take to correctly install Ubuntu?


nohup tensorflow_model_server \   --rest_api_port=8501 \   --model_name=fashion_model \   --model_base_path="${MODEL_DIR}" >server.log 2>&1   I saw this in tensorflow serving guide . I want to know the meaning of > server.log 2>&1. I kind of know that it's about saving stdout to a file, and saving stderr to another file which I don't know what it is.

I understand that this command attempts to write to nowhere or a null device but what does 2>&1 mean here?  wget -q -O - http://yourwebsite.com/wp-cron.php?doing_wp_cron > /dev/null 2>&1


Reduplication - noun - A word formed by or containing a reduplicated element. An act or instance of reduplicating as a grammatical pattern.     Is there a term for the kind of reduplication where the two words are exactly the same but the first one narrows a category that could otherwise be interpreted more broadly?  e.g.    Do you mean Indian Indian or American Indian? It is common both in Irish English and English English. Do you mean cable television?  No, I mean television television.   To be clear, I'm not looking for a term to describe reduplication for the purpose of intensification, as in: "They have been together for a couple of weeks now".  "You mean "together together"?  That kind of reduplication has .

What is the term when a word is used consecutively twice, with intentional stress placed on the first word, as a means to alter the severity of the word's meaning?  I am not referring to a  (had had) or a  (that that), but to the slightly sarcastic use as demonstrated in shows like Seinfeld. Sample sentences, with emphasis:  I know we're going out to eat, but I am only going to pick at an appetizer because I'm not hungry hungry. Don't wear something so formal to the party; I don't think you need to be dressed dressed.  Of personal note, some of my relatives decided a few years ago to nick-name the term a "Celaine" (a combination of their names) due to their own frequent use of it. Note: This question explicitly requests the term of art used by linguists and English scholars when discussing this phenomenon. This question is different from a  which requests a historical explanation for the phenomenon described by this term. None of the answers to the suggested duplicate provide the term.  The author of the similar question requests the term for the pattern in a comment, but does not receive an acceptable answer. The only mention of an acceptable term is in a comment made by the author of this question, in response to the author of the similar question, directing back to this very question.


I have a piece of code in my Apex:  List<sObject> assessmentToQuestions = [             SELECT Id, (SELECT Id FROM zced__Assessment_Questions__r) questions             FROM zced__Assessment__c             WHERE zced__Interaction__c = :interactionId         ];          Set<String> questionsIds = new Set<String>();         for(sObject assessment: assessmentToQuestions) {             for(sObject question: assessment.questions) {                 questionsIds.add(question);             }         }   The code above does not work because it does not allow me to use alias for the list of Id over here:  (SELECT Id FROM zced__Assessment_Questions__r) questions   I saw the application of an alias over  and tried to do the same, but got an error. So, my question here is how can I use an alias in the case?  Oh (this question in case if it is an x-y problem) how can I approach the problem of iterating the list in another way? I need to be able to iterate over all the Id extracted over here:  (SELECT Id FROM zced__Assessment_Questions__r)

I'm having trouble understanding how to access each individual result returned from a subquery. The picture shows the code which:   takes fields and objects chosen by a user and assigns them to String variables, the string vars are used to query a dynamic query string, the query string is feed into a database.query and the result is stored in an array I can individually access each of the query results from this array (parent object results),  But I have not been able to individually access the subquery results.   If I feed the subquery results into an array...something like:  SObject[] c = p.get(i).getSObjects(childO);   I still can't get to each individual child record per parent. I can only see all child records per each parent. I need to get to each child record per adult, so that I can roll up results.  Can anyone help?  // These strings will be populated dynamically from a VF page String parentO  = 'Account'; String parentF  = 'Products_Purchased__c'; String childO   = 'Opportunity';     if(childO  == 'Opportunity'){ childO = 'Opportunities'; } String childF   = 'Product_Type__c';  // create dynamic SOQL query string String query = 'SELECT id, (select ' +childF+ ' from ' +childO+') FROM ' +parentO;  // query and store 33 results in variable p SObject[] p = Database.query(query);  for(Integer i = 0; i < p.size(); i++){     system.debug('Parent result from SOQL query: ' +p[i]);     if(p.get(i).getSObjects(childO) <> null){         system.debug('Child result(s) from SOQL query: ' +p.get(i).getSObjects(childO));         system.debug('Child field: ' +c.get(i).get(childF));     } }


In the following sentence, how should the clause of purpose be introduced?        In addition to normal maintenance, there are additional costs associated with interventions that may be required to meet/for   meeting minimum safety standards

As a native speaker of English, the gerund version of this sentence sounds better:  infinitive:     When used together in chains,   extension methods are an unprecedented   tool to produce extremely concise   code.   gerund:     When used together in chains,   extension methods are an unprecedented   tool for producing extremely concise   code.   But how can I explain to someone learning English how to decide in situations like these whether to use the infinitive or the gerund?


In logic, why do both "and" and "or" exist?  "and" is just a change in the argument of "or", and vice versa.  a ∨ b = ¬(¬a ∧ ¬b)   a ∧ b = ¬(¬a ∨ ¬b)  So why do we have both of them? Do they both exist simply for convenience in defining other more complicated logical structures?  I suppose another way of asking it is, why do we not have no "or's" or no "and's"? (I think)

Nearly every treatment of set theory, whether Paul Halmos' Naive Set Theory, Herbert Enderton's Elements of Set Theory, Patrick Suppes' Axiomatic Set Theory, etc. introduce a common set of logical connectives, namely "not" ¬, "inclusive or" ∨, "and" ∧, "implies ⇒, and "if and only if" ⇔ (as well as the existential and universal quantifiers ∃ and ∀). However, this set {¬,∨,∧,⇒,⇔} of connectives chosen:   Is not , i.e. is actually redundant (For example, P⇒Q could be written ¬P∨Q, and since we already have introduced ¬ and ∨ as part of our set, we could eliminate ⇒.) Is not exhaustive either, since there are actually  to choose from. (Since {¬,∨,∧,⇒,⇔} is already redundant, why not throw in the other 11 connectives, some of which are VERY helpful like "nand" ⊼ , "nor" ⊽ and "exclusive or" ⊻?)   Since it is neither minimal nor exhaustive, the set {¬,∨,∧,⇒,⇔} seems like an arbitrary choice. Is there another explanation? And since the set is already redundant (so there's no use in aiming to make it minimal), would it be acceptable to include the others that are missing,  so we are at least making use of all 16 connectives (and have more at our disposal to work with)?


In my php  page i append new buttons and information when press the button with JQuery Ajax,however when  i click the new button which came with ajax , its JQuery does not work but old button's JQuery works,i mean new button does not see the javascript file of my php page.  My JQuery Ajax Codes;  $("button[name='addnewelement']").click(function() {     $.ajax({           type: "POST",     url: "addelement.php",      cache: false,     success: function(html){       $("#new").append(html);// add new element into index.php   });   });   addelement.php;    echo "       .......      <button id="<?php echo $row['id']; ?>" name="addnewelement"  >Add</button>      .......     " ;   How can i solve this problem?  Thanks.

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


Let $L$ be a Lie-algebra. I have to show that the Lie-bracket $[\,,]$ is  associative if and only if $[x,y]\in C(L)$ for all $x,y\in L$, where $C(L)$ denotes the center of $L$.  I know that $[x,y]\in C(L)\Leftrightarrow [[x,y],z]=0\,\,\,\forall z\in L$. But from here I do not know how to continue.   Can anyone give me hint?

Lie algebras are known as non-associative structures.   My question is that do we have any example of Lie algebras which is associative?  Many thanks!


I've been trying to work out how to edit the bash profile for the login shell in Ubuntu 18.04. Being new to linux and the forum being my friend, i found that it is located in .profile as oppose to bash_profile previously. I'm not sure which profile i should be amending as i cannot find bash_profile.  I'm trying to add a line for virtualenvwrapper so that it can be sourced every time a new terminal session is launched but it isn't working.   nano .profile  Then adding...  source .local/bin/virtualenvwrapper.sh  to the end  Saved and exited but it doesn't work. Have i missed something or do i have to add anything in the script?  Thanks as always.

On a server when I login as root I see .bashrc (Ubuntu 10.10).  On my Mac I have a .bash_profile  Does Ubuntu always have only a .bashrc file and not .bash_profile? (I'm just confused, so asking, I realize they are different o/s's but maybe there is a relationship somehow?)  On my server, I want to create an alias, should I put it in .bashrc?  What if I want this alias to be applied so all users can use it?


I am using the following command on Terminal in MacBook.  printf "The number is %'d\n" 123456   I expect the output:     The number is 123,456.   But I am getting:     The number is 123456.    Please point out my mistake.

In python   re.sub(r"(?<=.)(?=(?:...)+$)", ",", stroke )    To split a number by triplets, e.g.:   echo 123456789 | python -c 'import sys;import re; print re.sub(r"(?<=.)(?=(?:...)+$)", ",",  sys.stdin.read());'  123,456,789   How to do the same with bash/awk?


There's this online beer company in Germany that is offering Belgian and other foreign beers and they are on Sky here all the time with their commercials.  Now, they are called Beer Deluxe and their tagline is: "Beer Deluxe! Drink different!" Just wondering if 'Drink Different' is grammatically correct? Should it not be 'Drink Differently!'? What is the correct grammatical explanation here?

Is it acceptable to say "We'll get back to you as quick as we can"? Is "quick" a flat adverb in this case?


I would like to assign a buffer polygon a value from another layer. I have cliped the two layers together. I then tried to dissolve the new layer by buffer ID, but I could not manage to get the largest area inside to be the value for the whole buffer.   I tried to do it by using calculate field, but im not very good at python.

First, I have a shapefile consisting of square grids and each grid has an ID. Second, I have a shapefile consisting of different zones (with IDs).  A grid ID in the first shapefile can contain many zone IDs from the second shapefile.  I want to know what is the dominant zone ID inside a grid and record that in a table. I only want to know the dominant zone (in terms of the area) and not the rest of the zones intersecting that grid. In the end, I would want a 2-column table with all the grid IDs in the first column and the corresponding dominant zone ID (or the largest zone in terms of area) in the second column.  Here is a sample figure.  By just looking at the figure, I could tell that in Grid ID 1, the dominant zone/area is Zone ID 1.  In Grid ID 2, the dominant zone/area is Zone ID 2.  And in Grid ID 3, the dominant zone/area is Zone ID 3.  I would like to have a table with two columns, with each grid showing only the ID of the dominant area.


Ok, I Don't know how to properly express what I'm looking for, but I'll try:  I have a BEZIER curve like this:    My problem is that in edit mode, the distance from the resolution points isn't constant:    I need to use this curve to animate a follow-path constraint, and the non uniform points lenght results in an unsmooth animation. I already looked at this question:   But it was asked and answered more than 1.5 years ago. Is there anyway in the new versions of blender to do it? It's alright to create new verts too but the important thing is that the curve doesn't lose its shape. Is this possible?

Is there a way I can separate the vertices on the the segments evenly without moving the end points? I would like for the vertices to maintain the current curve.


I'm new to using sourdough starter and some directions aren't very clear. I'm not sure if it needs to be stirred down before I measure for cooking and for feeding it. I've been stirring down the starter before measuring both when feeding and when cooking with it. Is that the right way? Also, I've only been keeping 1/2 cup of starter to feed, adding 1/2 cup water and 1 cup flour. If I keep more, do I need to increase the amount of flour and water I add?

A week ago I mixed 1 part AP flour 1 parts tap water, keeping it at room temperature (18-24c). I've been discarding a bit and feeding it 1:1 daily. The last few days, the next 4-6 hours after I feed it it double in size, and then it slowly goes down.  Now I want to use it to make some baguettes, the recipe calls for 20% starter. But how do I use the starter? Do I have to use it before or after feeding it? Or should I feed it and wait a few hours before using it?


I have a very vague recollection of a short story in which somehow the parts of a spaceship were aliens of different races, whose innate powers allowed them to perform a function (braking, steering...). The end revelation is about the nature of the ship's accelerator.  Any bell ringing?

I am looking for the title of a short story where a space craft is made up of various creatures from around the universe.  If I remember correctly the skin of the craft is made of creatures. the computer is just a giant brain. The engine creature suffers some form of malfunction and a nearby suitable replacement is located which happens to be a human. Although not as good as the original the human will suffice. At first he is reluctant but then discovers he loves it. I think they call propelling the craft as "pushing".   I hope somebody can help. I had this book many years ago and I don't know what I have done with it.


This question involves finding the exact values of $x$ such that $0 \leqslant x \leqslant 2\pi$.  So far I have subtracted everything to the left side of the equation and then used the pythagorean identities to change $2\cos^2x\ \ \text{to}\ \ 2-2\sin^2x$, leaving   $$2-2\sin^2x-\sin x-1=0\,.$$ However, I need to further factor this, and I am not sure about what to do next.  Could someone please help me?

$2\cos^2x=1+\sin x$.  Determine the exact values of $x$ such that $0 \leq x \leq 2\pi$.    I am experiencing problems with factoring this question.  First I started by getting everything on to the left side so: $2\cos^2x-\sin x-1=0$.  Then seeing as there are two trig variable here ($\cos$ and $\sin$), I used the pythagorean identity and replaced $2\cos^2x$ with $1-2\sin^2x$ to make it into a one variable question: $1-1-2\sin^2x-\sin x-1=0$.   By collecting like terms it then becomes $-\sin^2x-\sin x=0$.  Now you could factor these with $0$ and $-1$, but then it creates uneven brackets so this musn't work.  I don't think the quadratic formula is necessary, but I am wondering if this could be treated as a difference of squares question.    If you replace the $\sin x$ and make the question into $-x^2-x=0$ it is a little easier to look at, however I am not sure if this is the right approach.  If someone could please clarify my answer, that would be appreciated!


Can i automatically change font size to get desired (66) "Characters per line" value?  I do not want to change magins size or textwidth, only font size.  Alternatively i'm looking for a macro which display number of characters on margin. For debugging/hand tunin purposes.

I would like to have "something" (a package, a trick, a macro, ...?) that makes it possible for me to nicely play with the margins (or the layout) in order to set the average or typical number of characters per line.  Ideally, this "system" would help me keep this ratio (66, 2.5 alphabets, or any other number I choose/input) independent from changes in font families (such as with the use of the package pslatex or txfonts for example), in font sizes (with a 10pt or 12pt class option for example).  I've looked around a bit, and I kind of understood, that using KOMA-Script classes or the memoir class may be part of a solution, be I would prefer not (especially because I have never used any so far).  An important point for me is that the whole proportions or principles of the original layout must be kept. For example, if there was a set ratio between left and right margins, then, just playing around with one margin or with textwidth/linewidth would not satisfy me.  Why I'd like to do this? Because I like to use the pslatex package, but this put the average number of charaters per line from about 65 without to about 75+ with.  Note, I have already gone or skimmed through:        And, also there may be answers there, I couldn't (too easily) find them.


Just looking for a bit of advice here.   My girlfriend recently applied and was refused for a tourist (6 month) visitor visa for the UK. She is of Uzbek nationality but is currently living and studying in Lithuania on a temporary residence permit.  She is going to reapply as soon as possible as we were planning to spend summer here together before she was to return for her studies. I am a British citizen by the way.  I was wondering if anyone had any suggestions of supporting documents that should be added this time round when applying that would help strengthen her case.   It seems to me that they do not believe we are together, so would including previous travel tickets, photographs together and a flat contract demonstrating that we have actually lived together help (we lived together in Cyprus for 3 months)?  Last time I included a written and signed letter of declaration stating that she would be staying with me, a copy of a bank statement as proof of address and a photocopy of my drivers licence. Included was also a letter indicating she would be returning for her next study year from her university.  Any help on the situation would be greatly appreciated so that we can rebook the flights as soon as possible.   I've attached the letter she was sent back below as well.  Thanks!

Many of the UK visa refusals we see here share a common pattern and the prevailing reasons refer to V 4.2 (a) and (c).    I do understand that, while the applicants may describe very different individual circumstances, there's a consistent pattern and, broadly, fall into specific categories:    Credibility (lifestyle, lack of ties, visit history, lies & omissions) Funding (insufficient funds, provenance of funds, funds parking) Sponsorship (family, friends, employer)   Question: What most commonly triggers a UK visa refusal where V 4.2 (a) and (c) are given as the grounds?  Secondarily: Given that there is a clear pattern, to what extent are these refusals predictable? Does sponsorship make a difference? Is there a set of personal circumstances, however abstract, where a refusal is all but guaranteed? For example, why do those we see here on TSE who sought entry for the PLAB or British Army appear to be refused with a common theme? Is there a uniform shortcoming or is it just discrimination?   PLAB: What is about applications for a visa, for the purpose of sitting the Professional and Linguistic Assessments Board (PLAB) exam, that seem to invite refusals. After all, the test is given so that international medical graduates can show that they qualify to practise medicine in the UK. The first part, PLAB 1, can be taken in centres outside of the UK. However, PLAB 2 can be taken only in the UK. Why can't you can't get a visa just to sit the exam, promising that you'll leave immediately after?    British Army: Since Commonwealth citizens are eligible to apply online to join, even those who don't reside in the UK, why is it so difficult to get a visa just to attend an interview to see whether you are suitable? Even with an invitation from the Army, such visa applications seem to be unsuccessful. Isn't a career in the British Army a valid reason?     Lastly:  After such a refusal, what approaches would increase the chance of a successful application?


I'm using Ubuntu 14.04,Processor Intel® Core™2 Duo CPU P8700 @ 2.53GHz × 2 . Here I have a issue like keys are not working properly. To type a letter I need to press that key for some time. I tried after installing gnome also, still same issue. This is happening only after login. And I tried with external usb keyboard also still not working. I doubt after apt-get update something happened. Please help me.  Edited  I have tried 'onboard' also. When I press keys on it using mouse nothing happening. So I think issue is related to OS only.

This is one of the wackiest and weirdest problems I have ever encountered. My keyboard was working absolutely fine untill yesterday on Ubuntu 13.04. However, when I boot to Ubuntu today, I suddenly find that all the keys work, but I have to press and keep on holding them for about a second for them to work.   This behavior is true for all the keys except for Num Lock, Caps Lock and Scroll Lock keys, the indicator for them on my keyboard lights up as soon as I press those keys. The keyboard works fine at the login screen where I put my password.  The keyboard also works normally if I use the Guest session instead of my normal user account. I have not done any key-remappings and using the standard English (US) keyboard layout.  I have fiddled around with the settings for Keyboard in System Settings, but to no avail. I have Windows 7 as dual-boot and the keyboard works perfectly well on it.   Why am I facing such a behavior and how to normalize this?  PS: Using Logitech Classic Keyboard K100 (USB Model).


Santa Barbara contains some places from CA_Places. But when I use intersects, I get noting but all False. I have spent hours on this. Both shapefiles are  for reference. CA_Counties = geopandas.read_file("CA_Counties\\CA_Counties_TIGER2016.shp") CA_places = geopandas.read_file("CA_Places\\CA_Places_TIGER2016.shp") Santa_Barbara = CA_Counties[CA_Counties['NAME'] == 'Santa Barbara'] CA_places.intersects(Santa_Barbara)  All I'm getting is this warning: C:\Users\LENOVO\.conda\envs\gdal_home\lib\site-packages\geopandas\base.py:39: UserWarning: The indices of the two GeoSeries are different. warn("The indices of the two GeoSeries are different.")

I want to check if points layer that I have intersect with polygons layer that I have, as Boolean column in the points dataframe. I have two GeoPandas dataframes, the first one is many points and looks like this: >>>ID  geometry 0  12  POINT (5.0279 7.4547) 1  45  POINT (6.6539 12.139) ...  and the second dataframe is one layer of many different polygons  that looks something like this: >>>name     code   geometry 0  Desert   12     POLYGON ((5.52013 13.8902, 5.5265 13.892,...) 1  Water    24     POLYGON ((5.53756 13.88472, 5.5291 13.8791,...) ...  I'm trying to check if there is any intersection between the points layer and the regions layer. For that I have determined the crs and then used intersects : regions=regions.to_crs({'init': 'epsg:4326'}) points=points.set_crs({'init': 'epsg:4326'}) inter=points.geometry.intersects(regions.geometry)  A The script runs with the following warnings:  FutureWarning: '+init=:' syntax is deprecated. ':' is the preferred initialization method. When making the change, be mindful of axis order changes: https://pyproj4.github.io/pyproj/stable/gotchas.html#axis-order-changes-in-proj-6 return _prepare_from_string(" ".join(pjargs)) /opt/conda/lib/python3.8/site-packages/geopandas/base.py:39: UserWarning: The indices of the two GeoSeries are different. warn("The indices of the two GeoSeries are different.")  Then when I check the results the only value is False, like all th epoints do not intersect: inter.unique().tolist() >>>[False]  *I saw on QGIS that the there are points that intersect and there are points that do not so there is no way this result is true *I have checked the dtypes - each one of my geodataframes has one column that is geometry and called geometry. My end goal: to add new column in the points geodataframe that will tell if it intersects the regions or not.


In the chapter sound, my book states that the Frequency of damped vibrations is less than the natural frequency but I could not understand this because in damped vibrations the amplitude decreases and not the frequency. May someone please explain this statement to me. I have googled this out but nowhere found the answer to my question rather there were confusing terms like damping coefficients etc. . My book also does not answer the "why" of my question.  P.S. I am a tenth grader so please avoid complicated terminologies.

While studying about the Resonance and Forced Oscillations, I came across a graph in my textbook that is given below:-  Now, the author writes      As the amount of damping increases, the peak shifts to lower frequencies.   Why does this happen? And does this imply that at higher damping levels one cannot achieve a higher amplitude by setting the period of the forced oscillation to be equal to the natural frequency? This seems strange because, the highest amplitude is achieved when the natural frequency is equal to the driving frequency. But, I guess that the rules are somehow different for the damping case.


The code below is for context, but this concern is only regarding the HELP portion of the ïf conditional. The expected output is that the code within the if conditional will only run if the object "newButton" does not exist. I've tried typeof newButton === 'undefined', but it did not work. I've made sure that the type of newButton is in fact the string "undefined" before the if conditional, and I've included console.log() statements that show the type of the object newButton at two intervals. var alphabet = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]; var aI = 0;  //The "rank" input is given as a capital letter as a string (EX: "A"). function addNode(rank) {   var newNode = document.createElement("h1");   newNode.innerHTML = 0;   newNode.id = rank + alphabet[aI];   document.getElementById("nodeField").appendChild(newNode);    aI++;    console.log(typeof newButton); //Logs "undefined"    if (/*HELP*/ ) {     var newButton = document.createElement("button");     newButton.setAttribute("onclick", "addNode('" + alphabet[alphabet.indexOf(rank) + 1] + "')");     newButton.innerHTML = "Add Node to " + alphabet[alphabet.indexOf(rank) + 1] + " Rank";     document.getElementById("buttonField").appendChild(newButton);      console.log(typeof newButton); //Logs "object"   } }  Does anyone know how to fix this?

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


Yes, there are many posts on this site related to this problem especially  and  . But I'm still unable solve the problem.  I disable fast boot and secure boot in Windows 8.1 and installed Xubuntu Trusty from a Live disk but no GRUB menu whatsoever. The peculiar part is that in the BIOS the "Boot Device Priority" has only two options: "Windows Boot Manager" and "Disabled". I think it's the "Disabled" thing that should be enables but unfortunately I don't know what it is exactly!  I ran Boot Repair from live disk twice with no benefit. The machine is a Samsung ATIV 9. I understand that this question is more about a particular machine's BIOS and Win 8 but I need the answer to be able to use Ubuntu.  Here is the lower part of the output of Boot Repair:  /boot/efi detected in the fstab of sda8: UUID=1C3F-D310     (sda2)  *******lspci -nnk | grep -iA3 vga 00:02.0 VGA compatible controller [0300]: Intel Corporation Haswell-ULT Integrated Graphics Controller [8086:0a16] (rev 09) Subsystem: Samsung Electronics Co Ltd Device [144d:c109] Kernel driver in use: i915 00:03.0 Audio device [0403]: Intel Corporation Haswell-ULT HD Audio Controller [8086:0a0c] (rev 09) *******  grub-install: info: executing modprobe efivars 2>/dev/null. grub-install: info: Looking for /sys/firmware/efi ... grub-install: info: ... not found. Looking for /proc/device-tree ... grub-install: info: ... not found. grub-install: error: /usr/lib/grub/i386-pc/modinfo.sh doesn't exist. Please specify --target or --directory. ,. GRUB too old for SecureBoot. Please report this message to boot.repair@gmail.com  chroot /mnt/boot-sav/sda8 efibootmgr -v Fatal: Couldn't open either sysfs or procfs directories for accessing EFI variables. Try 'modprobe efivars' as root.  chroot /mnt/boot-sav/sda8 uname -r Kernel: 3.13.0-24-generic  Reinstall the grub-efi of sda8 grub-install: error: /usr/lib/grub/i386-pc/modinfo.sh doesn't exist. Please specify --target or --directory. grub-install : exit code of grub-install :1 Error: no grub*.efi generated. Please report this message to boot.repair@gmail.com  Add /mnt/boot-sav/sda8/boot/efi efi entries in /mnt/boot-sav/sda8/etc/grub.d/25_custom Adding custom /mnt/boot-sav/sda8/boot/efi/EFI/Microsoft/Boot/bootmgfw.efi Adding custom /mnt/boot-sav/sda8/boot/efi/EFI/Boot/bootx64.efi sda2/bootx64.efi already added sda2/bootmgfw.efi already added Add /mnt/boot-sav/sda6 efi entries in /mnt/boot-sav/sda8/etc/grub.d/25_custom Adding custom /mnt/boot-sav/sda6/EFI/Asclepius/bootx64.efi  ---- Grub-install verbose /usr/sbin/grub-install: 1: /usr/sbin/grub-install: cannot create nŵ?ŵ????T?T?@T?@DD?Påtd?ŒÒ?ŒÒLŒÒLl9l9?Qåtd??Råtd?ŵ=?ŵ=nŵ=n?????/lib64/ld-linux-x86-64.so.2???GNU??????GNUm: Directory nonexistent + ELF???? @????@@@@@ø?ø????8?8?@8?@?????@@d:?d:? ??ŵ=?ŵ=nŵ=nž{ ? ??? /usr/sbin/grub-install: 1: /usr/sbin/grub-install: ELF????: not found /usr/sbin/grub-install: 2: /usr/sbin/grub-install: Syntax error: ")" unexpected -------- /usr/sbin/grub-install : exit code of grub-install :2 ---- End of grub-install verbose   chroot /mnt/boot-sav/sda8 efibootmgr -v Fatal: Couldn't open either sysfs or procfs directories for accessing EFI variables. Try 'modprobe efivars' as root.  chroot /mnt/boot-sav/sda8 update-grub Generating grub configuration file ... Found linux image: /boot/vmlinuz-3.13.0-32-generic Found initrd image: /boot/initrd.img-3.13.0-32-generic Found linux image: /boot/vmlinuz-3.13.0-24-generic Found initrd image: /boot/initrd.img-3.13.0-24-generic Found Windows 8 (loader) on /dev/sda2 Unhide GRUB boot menu in sda8/boot/grub/grub.cfg  An error occurred during the repair.  You can now reboot your computer.   You may want to retry after deactivating the [Backup and rename Windows EFI files] option.  The boot of your PC is in Legacy mode. You may want to retry after changing it to EFI mode.

I'm absolutely new to Linux. I would like to know how to install Ubuntu alongside the pre-installed Windows 8+ OS.  Should I do it with Wubi, or through the Live USB/DVD?  What steps do I need to take to correctly install Ubuntu?


I'm writing a code and I display to the user a table with data from DB. The user can copy all the data manually, but I want to add a button that copy automatically the data to clipboard. How can I do this? Thanks!

What is the best way to copy text to the clipboard (multi-browser)? I have tried: function copyToClipboard(text) {     if (window.clipboardData) { // Internet Explorer         window.clipboardData.setData("Text", text);     } else {         unsafeWindow.netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");         const clipboardHelper = Components.classes["@mozilla.org/widget/clipboardhelper;1"].getService(Components.interfaces.nsIClipboardHelper);         clipboardHelper.copyString(text);     } }  But in Internet Explorer it gives a syntax error. In Firefox, it says unsafeWindow is not defined. A nice trick without using :


I'm starting to dabble with options and I bought the March 20 AAPL 330 call option for $5. AAPL is currently trading around $324 today. If I sell the call option today I will make a small profit on my option, but i'm curious what happens if I don't sell the option and it is in the money at the expiration date and I don't have enough money to actually exercise the option. Does it just expire worthless and I basically lost $500?  Is the idea to always plan to sell a call option if you don't plan to actually exercise it?

As a follow up to my other , I would like to know whether the following is possible:  I have $20,000 in my brokerage account The price of a call option with $300 strike price is $5.00 (1 contract = 100 shares) I buy 20 contracts of these $300 calls (cost is 20 * 5 * 100 = $10,000) The price of the underlying goes up, making my option in-the-money  I decide to exercise my options. Exercising my calls means that I buy 20 * 100 = 2,000 shares of the underlying at $300 per share. However, I only have $10,000 left in my brokerage account and am unable to pay for the shares (2,000 * 300 = $600,000). What now? How does this work? Do brokers recognize that my position is profitable, and buy and sell the underlying for me as soon as I exercise my calls? In other words, do I need to worry about being able to pay for the shares of the underlying if I decide to exercise my options? Can I just take my profit without bothering with the shares at all?


I was just reviewing suggested edits, and I rejected .  Does anyone have an explanation as to why this edit was rejected with only one vote? Usually it requires 3 votes unless the author rejects it. This wasn't the case, as I'm not the author.  There haven't been any other edits on the post .         for editors with a bad accept to reject ratio? Since that isn't very likely, I assume this is a bug.

I've completed 20 suggested edits reviews today. Then, I came across a  and I approved it.   Then, I had a doubt that whether the review count has incremented or not, oh! it's not incrementing. System works fine.  But, take a look at review page,     The edit was already reviewed by one reviewer and then I reviewed it. As I'm the Owner of the post it's enough to approve the edit. But, the review history doesn't show the detail that I had approved it. It's misleading that only one vote of a reviewer who is neither the community user nor the OP nor the moderator, is enough.  So, what should we do in this type of situation?  Is it correct to make OP to review the suggested edit after completing daily limit?  Should we need to display/hide the OP has approved the edit in the review history?


Prove $\prod_{n\in\mathbb{N}\backslash\left\{ 0\right\} }\left(1+\left(\frac{\alpha}{\pi n}\right)^{2}\right)=\frac{\sinh\left(\alpha\right)}{\alpha}$.  I saw this formula in a book and have no idea how to approach it.

I've been looking at proofs of Euler's sine expansion, that is  $$\frac{\sin x}{x}=\prod_{k=1}^\infty\left({1-\frac{x^2}{k^2\pi^2}}\right)$$  All the proofs seem to rely on complex analysis and Fourier series.   Is there any more elementary proof?


How to sort questions which are unanswered AND featured?  If you want to display unanswered you can type   http://stackoverflow.com/questions?sort=unanswered   and   http://stackoverflow.com/questions?sort=featured   for featured questions.  I've tried to mix them both but it doesn't work at all...

Is there a way to search only unanswered questions with an open bounty on StackOverflow ?


I am a new Ubuntu user. In the process of installing WhatsApp into Ubuntu 14.10, and while I have successfully installed Pidgin, I am facing problems when installing whatsapp-purple plugin for Pidgin.  When I ran:   sudo add-apt-repository ppa:whatsapp-purple/ppa sudo apt-get update   I got this error message:   Failed to fetch http://ppa.launchpad.net/whatsapp-purple/ppa/ubuntu/dists/utopic/main/binary-amd64/Packages  404  Not Found Failed to fetch http://ppa.launchpad.net/whatsapp-purple/ppa/ubuntu/dists/utopic/main/binary-i386/Packages  404  Not Found   And then after running sudo apt-get install pidgin-whatsapp I got this error message:   Building dependency tree        Reading state information... Done Unable to locate package pidgin-whatsapp   Do you have any suggestions for how to solve this?

I've been trying to get , but it's only available through Quantal, and I'm running Raring. Is there a way to force-install a PPA from a previous release? I tried manually downloading all the packages and running sudo dpkg -i but I get lots of errors about dependencies, some of which don't look like they can be resolved. Am I stuck with having to compile vim myself?


Recently I came across howsecureismypassword.net. The site evaluates how many year a computer would take to crack the given password  but they don't provide the criteria on which they evaluate no. of years  So the questions arises:   Is there any standard algorithm for such? Ain't the number of depends on computing power available at hand? Or is there any lower limit which is same for any computation power ?

Here is a cartoon about password entropy.   I dont quite understand how the entropy is calculated in the cartoon assuming they are calculate correctly. But in general, I dont have much idea about how password entropy is calculated.


I have Ubuntu 18 installed on my laptop's SSD and I would like to install Windows 10 in a partition that I've made on the HDD drive.   I haven't started because I have some doubts related with the GRUB. Is it completely safe to install Windows after Ubuntu is already installed? Will I have to do something (GRUB re-installation or mount related things) even when I'm installing Windows on a different hard drive?   I need to keep all my Ubuntu files and software as it is my main OS and I will only use Windows to play some games.  I know there are several similar threads but none of them solves this particular issue, in my opinion.  Thanks in advance!

I have Ubuntu on my laptop. Now I want install Windows 7 in a dual-boot. How can I do this? I can't lose my Ubuntu files, and I'm afraid that I might break . Go  for UEFI only!


I found a sentence in :     "Another example: You work in a kindergarten, and one day a child starts to walk in a strange way, and saying he broke his legs. You examine and find nothing wrong. Then you can reasonably infer that one of his parents broke their legs, since children then often actuate as described,"   I thought this should be corrected to be:     "Then you can reasonably infer that one of his parents broke his/her   legs,"   And logically "legs" should be leg(s) given that if one walks in a strange way it doesn't necessarily mean that his/her two legs are hurt.

I know that one can use "they" / "them" / "their" in place of "he" / "him" / "his" or "she" / "her" / "hers" when the subject's / direct object's gender is not known; for instance, just looking at the default user's about me section on Stack Exchange sites:     Apparently, this user prefers to keep an air of mystery about them   My question is what happens when someone wants to reference the subject using a pronoun instead.  Should the verb be conjugated accordingly to the pronoun? E.g.:     Apparently, they prefer to keep an air of mystery about them   Or should the conjugation be retained? E.g.:     Apparently, they prefers to keep an air of mystery about them   The former looks unclear because it wouldn't allow the reader / listener to understand if the writer / speaker is talking about a single person or about a group of people, however the latter sounds very weird, at least just to the non-native speaker which I am.


I have list as:  list = ['67.50', '70.00', '72.50', '75.00', '77.50', '80.00', '82.50']   I want to check if the string is a foat then it should be converted to float and if the string is a int then it should be converted to int.  Desired Output:  list = [67.50, 70, 72.50, 75, 77.50, 80, 82.5]

In Python, how can I parse a numeric string like "545.2222" to its corresponding float value, 545.2222? Or parse the string "31" to an integer, 31?  I just want to know how to parse a float str to a float, and (separately) an int str to an int.


#include"studio.h" void main() { int i , j= 0, k; k = i = 2 , j; // what's meaning of int , int ? printf ( "%d", k ); }   can anyone please explain what's up with that int , int ..?


I paid my credit card on due date. Then later I purchased something on the same day. I'm curious what will happen? Do I need to pay  that i purchased on the same day?

My credit card has a balance of $600 due on the 12th every month (I'm looking to get this date moved to later on in the month, how do I do that?). I'd like to make a $1000 purchase on my card in the coming days, but I don't know if I'll have to pay that $1000 off by the 12th too, or if I can put that off until the 12th of September.  I've been paying off my card in full every month and never had a balance past the due-date, but it seems a bit silly to me if you're not allowed to carry any debt for at least 30 days because you'd have to pay off charges made on the 10th or 11th by the 12th of the same month.  Update  I contacted my Credit Union and got an answer:   The Credit Card payment due date is the 12th of every month, and that applies to all of their customers. This date cannot be changed. The payment due date has a grace-period of 10 days. Using the grace period has no attached penalty nor does it affect one's credit-rating. I asked if there was any reason not to use the grace period and they told me "no". Charges made to the card between the 1st and 31st of Month 1 will require payment by the 12th of Month 2. Charges made to the card between the 1st and 31st of Month 2 will not require payment until the 12th of Month 3, not Month 2.   So that clears that up then :)


Although I had requested an extension before my visa expired I have not heard back from the government. I need to go to Italy in August, & wish to return to NYC in September.  Will I be allowed to return if my visa has not been renewed by then?

I'm an international student in the US, and my visa already expired, will I be able to travel out of US without a valid visa?


I'm having an issue with Ubuntu 20. If the user/(technician) connects a different VGA display (what he happens to have in his truck) than what was installed with, it switches to a unconnected computer display and blanks the VGA display even though that is the display the user logged in on.  I believe this is a programming fault that could be corrected, but have no idea how to report this

I found a problem with an application on Ubuntu.   Questions :   How do I best report the issue?  What sort of information should I provide?


I have a document using the elsarticle with \documentclass[5p]{ elsarticle}. Which is fine for the main document body. However, for an appendix I need a single column page, but have been unable to find out how to do this. Can someone tell me how to do this?

My article uses the twocolumn parameter of the article document class. However I want to list my images as a multipage appendix at the end of the document (in a new page) but I want a single column appendix so that I can center my figures properly.   I have tried to use the minipage environment inside \twocolumn [  ] but it does not seem to work. Take a look at the code:  %document body, packages etc. \newpage  \section*{Appendix} \begin{center} \begin{minipage}[c]{\textwidth}  \begin{figure}     \includegraphics[width=\columnwidth]{curve1}   \caption{An arbitrary initial poinset $\mathbb{S}^2$.}     \label{curve1} \end{figure} %figure curve 1    \end{minipage}   \end{center} \end{document}   For instance, the figure does not appear to be rendered and the error which is returned by the compiler is:  Not in outer par mode


As you may know, there are a number of websites (such as wenda.io) that scrape content from StackOverflow (and other StackExchange sites). I couldn’t care less that they do this, and indeed they are at perfect liberty to do so as long as they attribute where they got it from (I’ve also done my fair share of reporting those sites that don’t do this), except these sites are polluting my search results.  The problem is that there are dozens of these sites, with new ones seeming to appear every day. They often appear right beside the corresponding Stack Overflow page, but sometimes they don’t. The sites themselves are usually terribly formatted and difficult to use, and of course don't have all the “related” boxes that I find super useful on Stack Overflow (though they have their own poor imitations). Furthermore, I don’t want to support these sites by using them.  Is there a simple way to exclude these scraper sites from Google search results? (I'd be happy if you could find a solution for DuckDuckGo too.) Note that I don't want only SO search results, because then that would exclude all the other non-SO stuff that also helps me.   an example search on DuckDuckGo (as of 4 Sept 2015) where 11 of the 30 results on the first page are from Stack Overflow scrapers. Google has quite a few Stack Overflow scrapers too, though it also has lot of results that don’t show up on DuckDuckGo that are mixed in.  Edit: I was looking for solutions specifically for StackExchange sites, and more specifically, StackOverflow. The question that is marked as a duplicate is similar enough that it could be a duplicate, depending on if specificity is taken into account (but it certainly doesn't answer my question, but then, neither do any of the answers here).

Sometimes when I search for something, there are plenty of links to sites with no content (those who only have the premade templates which the search terms), spammers, and leechers (as in copying content from other sites, like B r o t h e r s o f t who leeches on SoftPedia.com).  How come they have such a high ranking without any original content (furthermore, why are they not simply banned from the results)?  And also, is there some way of filtering them out? Like for example completely exclude a domain from search results?


Let's say that I start a cat process to wait for some input. e.g.,  $ cat > out.log   In another terminal, I can identify its PID and feed data into its File Descriptor 0 (zero = STDIN), like this:  $  echo "hello" > /proc/2357/fd/0   And then the first terminal reacts:  $ cat > out.log hello   A couple of questions: 1)The "hello" string shows up in the actual terminal instead of being redirected to the file, is that due to the nature of the cat program (it just focuses on the tty/foreground)?  2) I can't tail the STDOUT of that same process:  tail -f /proc/2357/fd/1 ...   Nothing shows up. Any conjectures on what is going on here?

Suppose you have a terminal emulator (T1) open with a PID of 6350.  From another terminal, type this command (C1):  echo "ls\n" > /proc/6350/fd/0   This writes ls and the new line in T1 but does not execute it. Why?  I also tried using cat|bash with echo "ls\n" > /proc/catid/fd/0 but it is still not executed.  How can I echo the command into another terminal and have the command executed?  possible answer :  $ mkfifo toto; $ bash < toto; $ echo "ls" > toto;   In this case you cannot write anymore directly in the terminal (everything is displayed the same way the command (C1) displayed thing in this terminal.


I really want an answer for this since I don't know how to make an Stack Exchange site. I want to make one just for myself and my friends and my friends' friends. Is there any way I can do this? I saw something saying that you can make a Stack Exchange for free, but I don't know if that's true.

Is the Stack Exchange engine that powers Stack Overflow available to download or install internally for an enterprise or company?  I think Stack Exchange's engine is very great and could be very cool to use for internal enterprise patterns and practices, like the engine of Wikipedia.


Hit:1 https://repo.steampowered.com/steam stable InRelease                                                                                Ign:2 http://ppa.launchpad.net/gnome3-team/gnome3/ubuntu focal InRelease                                                                                Hit:3 https://repo.steampowered.com/steam beta InRelease                                                                                Hit:4 http://security.ubuntu.com/ubuntu focal-security InRelease                                                                                Hit:5 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                Ign:6 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 InRelease                                                                                Ign:7 http://ppa.launchpad.net/gnome3-team/gnome3-staging/ubuntu focal InRelease                                                                                Ign:8 http://ppa.launchpad.net/jfi/ppa/ubuntu focal InRelease                                                                                Hit:9 https://download.sublimetext.com apt/stable/ InRelease                                                                                Hit:10 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 Release                                                              Hit:13 http://ppa.launchpad.net/kritalime/ppa/ubuntu focal InRelease                                                                  Hit:14 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu focal InRelease                                  Err:15 http://ppa.launchpad.net/gnome3-team/gnome3/ubuntu focal Release                                           404  Not Found [IP: 91.189.95.85 80] Err:16 http://ppa.launchpad.net/gnome3-team/gnome3-staging/ubuntu focal Release                                   404  Not Found [IP: 91.189.95.85 80] Err:17 http://ppa.launchpad.net/jfi/ppa/ubuntu focal Release     404  Not Found [IP: 91.189.95.85 80] Hit:11 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease Err:18 http://in.archive.ubuntu.com/ubuntu focal InRelease       Temporary failure resolving 'in.archive.ubuntu.com' Err:19 http://in.archive.ubuntu.com/ubuntu focal-updates InRelease   Temporary failure resolving 'in.archive.ubuntu.com' Err:20 http://in.archive.ubuntu.com/ubuntu focal-backports InRelease   Temporary failure resolving 'in.archive.ubuntu.com' Reading package lists... Done            E: The repository 'http://ppa.launchpad.net/gnome3-team/gnome3/ubuntu focal Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://ppa.launchpad.net/gnome3-team/gnome3-staging/ubuntu focal Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://ppa.launchpad.net/jfi/ppa/ubuntu focal Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. (base)  ✘ sriharsha@B550-AORUS  ~ 

When updating, I get the following error message:   W: The repository 'http://ppa.launchpad.net/mc3man/trusty-media/ubuntu xenial Release' does not have a Release file.   Here, I find another statement on this error:   This recommends removing certain PPAs; and, I'm not sure if I should do that since it might mean not getting the updates that I need.    Is this what I should do?


I have a list of .tif files which have the wrong projection system (NAD_1983_UTM_Zone_13N). However, I want to have those files in (WGS_1984). I want to do this by a script that can transform tif files from one projection system to another. I have found many scripts online, but none seem to work for me. anyone a script or idea?

Trying to load and plot a raster (it's a DEM) in R, but having problems.    Using R I read in a raster file:  library(raster)  dem <- raster("DEM_Victoria.tif")  # >70 MB print(dem)  class       : RasterLayer  band        : 1  (of  3  bands) dimensions  : 5444, 6007, 32702108  (nrow, ncol, ncell) resolution  : 100, 100  (x, y) extent      : 176615.6, 777315.6, 5650397, 6194797  (xmin, xmax, ymin, ymax) coord. ref. : +proj=longlat +ellps=WGS84 +no_defs  data source : DEM_Victoria.tif names       : DEM_Victoria values      : 0, 255  (min, max)   My confusion here is the extent vs the CRS. The extent shows coordinates from a UTM Zone 55S system, while the CRS reports it as longlat.   Similarly, gdalinfo reports:  Driver: GTiff/GeoTIFF Files:  DEM_Victoria.tif Size is 6007, 5444 Coordinate System is: GEOGCS["GDA94",     DATUM["unknown",         SPHEROID["unretrievable - using WGS84",6378137,298.257223563]],     PRIMEM["Greenwich",0],     UNIT["degree",0.0174532925199433]] Origin = (176615.587999997427687,6194797.138000000268221) Pixel Size = (100.000000000000000,-100.000000000000000) Metadata:   AREA_OR_POINT=Area Image Structure Metadata:   COMPRESSION=LZW   INTERLEAVE=BAND Corner Coordinates: Upper Left  (  176615.588, 6194797.138) (Invalid angle,Invalid angle) Lower Left  (  176615.588, 5650397.138) (Invalid angle,Invalid angle) Upper Right (  777315.588, 6194797.138) (Invalid angle,Invalid angle) Lower Right (  777315.588, 5650397.138) (Invalid angle,Invalid angle) Center      (  476965.588, 5922597.138) (Invalid angle,Invalid angle) Band 1 Block=6007x1 Type=Byte, ColorInterp=Red Band 2 Block=6007x1 Type=Byte, ColorInterp=Green Band 3 Block=6007x1 Type=Byte, ColorInterp=Blue   Is this real? A problem? (well it is to me, but perhaps because I don't understand something) Fixable?  I tried 'Assign projection' in QGIS, which uses this command:  gdalwarp -t_srs EPSG:28355 -srcnodata -32768  DEM_Victoria.tif DEM_Victoria.tif.tmp   but it failed with:     ERROR 1: Too many points (12100 out of 12100) failed to transform,   unable to compute output bounds.


I've been trying to figure this out for some time, and lots of googling has seen lots of discussion but no actual answers that I can find. I'm the happy owner of an AMD Ryzen system on an ASUS TUF GAMING X570-PLUS (WI-FI) motherboard, which has PCIe 4.0 enabled and working. I want to purchase and install a 10Gb NIC, probably an SFP+ compatible card. I'm quite aware that:  10Gb NIC cards in a x1 format do not currently exist. 10Gb NIC cards in x4 format exist. PCIe x4 cards can be plugged into an PCIe x1 slot. In my case, my PCIe 4.0 x1 slot is capable of 1.97GB/s or 15.76Gb/s.  What I'm trying to figure out is:  What is a recommended PCIe x4 10Gb NIC card I can use? Can I plug an PCIe x4 10Gb NIC into my PCIe 4.0 x1 slot and get 10Gb NIC speed? Will my motherboard simply negotiate the PCIe 4.0 x1 slot at PCIe 3.0 speed and halve the bandwidth to 985MB/s or 7.88Gb/s?  Has anyone used a 10Gb x4 NIC in an PCIe 4.0 x1 slot, and what was your experience? Really hoping someone can help.

Perhaps I'm trying to push my mobo too hard, but I think I have read that PCI-e 3.0 is back compatible to previous PCI-e specifications. But 3.0 into a 1.0, is it possibly asking too much?  I'm thinking about buying an AMD . My mobo is an Asus p5g41-m le


I'm going to say this up front.. I'm no wizz kid with phpmyadmin so please ask for any information that I haven't provided.   I have exported a dump of a db online that from what I can tell has a character set of MySQL charset: UTF-8 Unicode (utf8). I then import this into my local xxamp phpmyadmin which takes a lot longer than usual.   It finally succeeds and imports 3636 queries... When importing the character set is set to utf8.   After upload I then go to my Great website to find it full of loads of odd characters for example: šÆM€ˆˆ”4!J”EE‘Ô¤R‹U-}HiI¤Mµ  So I'm wondering why I'm getting these odd characters rather than a nice glossy site  I've had to change the port to 81 by the way.  Let me know if there is anything else I can add to be more helpful

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


I am writing int to a file. if the number is 0, then i want to write it in file as 0000. currently   o.write(str(year))   writes only 0.  How can it be done?

What is a Pythonic way to pad a numeric string with zeroes to the left, i.e. so the numeric string has a specific length?


I downloaded the ubuntu operating system (Ubuntu 12.04.3) because i learn computer science , and for that i need the shell but on ubuntu there is no shell. Do anybody know why is that? or where i can find the shell window?

Possible Duplicate:          My question is in the Title.  How do I get to Terminal in Ubuntu 12.04 ?


I want to make a query that retrieve data from two table i.e one is purchase and another is issue. both tables have same fields i.e icode,qty,rate,purdate and issuedate. query of purchase is:-SELECT Dry_Purchase.Icode, Sum(Dry_Purchase.Qty) AS SumOfQty, Dry_Purchase.Rate FROM Dry_Purchase WHERE (((Dry_Purchase.PurDate) Between DateSerial(Year(Date()),(Month(Date())-1),21) And DateSerial(Year(Date()),Month(Date()),20))) GROUP BY Dry_Purchase.Icode, Dry_Purchase.Rate; output of purchase query is: Icode   SumOfQty    Rate 11  10      13.5 11  39.5        14 19  75      79.75 19  22      80 21  54      87.45 23  15      218 24  10.5        650 8   79      33.25 8   13      34  query of issue is :- SELECT Dry_Expense.Icode, Sum(Dry_Expense.Qty) AS SumOfQty, Dry_Expense.Rate FROM Dry_Expense WHERE (((Dry_Expense.ExpDate) Between DateSerial(Year(Date()),(Month(Date())-1),21) And DateSerial(Year(Date()),Month(Date()),20))) GROUP BY Dry_Expense.Icode, Dry_Expense.Rate; output of this query is  Icode   SumOfQty    Rate 11  11.55       13 11  8.55        13.5 11  10.8        14 19  2.35        80 21  54      87.45 8   15.9        33.25  after combining above both query the output should like this rptdate icode opening recd   issued closingbal rate 19/09/18  11   0        10    8.550  1.450     13.50 19/09/18  11   0        39.5  10.800  28.700    14.00 19/09/18  19   0        75    0.000   75       79.75 19/09/18  19   0        22    2.350   72.650   80.00 19/09/18  21   0        54    54       0       87.45 19/09/18  23   0        15    0        15      218.00 19/09/18  24   0        10.5  0        10.500  650.00 19/09/18  8    0        79.0  15.900   63.100  33.25 19/09/18  8    0        13.0   0       13.000  34.00 19/09/18  8    11.550   0     11.550   0       13.00  please help me how to make query for this output i am trying this query SELECT A.icode,A.qty,A.rate,A.recd as recd,B.Issued as Issue  FROM (SELECT icode,rate,purdate,SUM(Abs(qty)) AS recd  FROM Dry_Purchase GROUP BY icde,rate ) A, (SELECT icode,rate,expdate,(SUM(Abs(qty)) AS Issue   FROM Dry_Expense GROUP BY icode,rate) B WHERE A.icode=B.icode AND A.rate=B.rate AND (A.purdate Between DateSerial((Year(Date()),(Month(Date())-1),21)) And DateSerial(Year(Date()),Month(Date()),20))   AND B.expdate Between DateSerial((Year(Date()),(Month(Date())-1),21) And DateSerial(Year(Date()),Month(Date()),20)); please help me

What's the most efficient way to select the last n number of rows in a table using mySQL? The table contains millions of rows, and at any given time I don't know how large the table is (it is constantly growing). The table does have a column that is automatically incremented and used as a unique identifier for each row.


The question is as follows  a.) Let $f(x)$ be continuous function on an interval [a,b] and suppose that $f(x)=0$ for each rational value $x$ in [a,b]. Prove that $f(x) = 0$ for all $x \in [a,b]$.  b.) Let $f(x)$ and $g(x)$ be continuous functions such that $f(x)=g(x)$ for each rational value of $x \in [a,b]$. Prove that $f(x)=g(x)$ for any $x \in [a,b].$  To prove the first part I thought that since we know $f(x)$ to be continuous, by the definition of continuity we can show $|f(x)-f(a)|< \epsilon$ when $|x-a|< \delta$. Then I was going to show that there is a irrational within each epsilon of a rational. It this the right thought process?   I also thought it might be possible to use the limit definition of continuity along with the fact that each rational is the limit of a set of irrationals to show $f(x)=0$ for all $x \in [a,b]$.   Anyways help would be greatly appreciated.

Akhil showed that the  is the same as the continuum, using as a step the observation that continuous functions that agree at rational points must agree everywhere, since the rationals are dense in the reals.  This isn't an obvious step, so why is it true?


Here's the create statement pulled out of the database itself for a trigger:  CREATE DEFINER=`walkdot_logan`@`67.53.251.66` TRIGGER `wd_artists_bi_trg` BEFORE INSERT ON `wd_artists` FOR EACH ROW BEGIN     IF NEW.modified_on is null THEN          INSERT INTO wd_modified_records         (modified_date, table_name, record_identifiers)         SELECT SYSDATE(), 'artists', CONCAT('code:', NEW.code, ';');          SET NEW.modified_on = SYSDATE();      END IF; END;   Both HeidiSQL and MySQL Workbench are complaining about syntax errors; saying that the semi-colon is missing from the SELECT statement line. MySQL Workbench is even underscoring the closing parenthesis to tell me I'm missing the semi-colon.  EDIT: I should point out that I've tried several insert types, and even simple select statements and the semi-colon error persists. Also, I was able to make this trigger using the trigger creator form in HeidiSQL without incident.

I am trying to create the following trigger:      CREATE TRIGGER update_customers AFTER INSERT ON wp_usermeta     FOR EACH ROW      BEGIN             if new.wp_metakey = first_name then insert into test_customer(first_name) values (new.wp_meta_value);     END   I keep getting a 1064 error that says, "You have an error in your SQL syntax; check the manual that corresopons to your MySQL server version for the right syntaxt to use near " at line 5"  What am I doing wrong?


This is a simple java class calls the main method recursively, but it throws a stack overflow exception. How does the stack overflow exception occur?   public class NewClass {      public static void main(String args[]) {          main(args);      }  }

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


We have $A=\mathbb{R^3}\backslash \left\{ (0,0,z):z\in \mathbb{R}\right\}$ and $\omega$ the differential form: $$\omega :=\left(\frac{4x^2+2zx}{x^2+y^2}+2A(x,y)\right)dx+\left(\frac{2y}{x^2+y^2}(2x+z)\right)dy+A(x,y)\,dz,$$ where $A\in C^1(\mathbb{R^2}\backslash(0,0); \mathbb{R})$  1) Find a function $A$ that makes the differential form exact.  2) Find all the primitives of $\omega$.  My idea was calculating $d\omega=0$ because $\omega$ is closed (necessary condition for exactness), and finding $A(x,y)$ who will depend on a costant $C$. And then, putting $\int_{\gamma}\omega=0$ in order to prove the exactness of $\omega$ for some curves $\gamma$.

We have $\Omega=\mathbb{R^3}\backslash \left\{ (0,0,z):z\in \mathbb{R}\right\}$ and $\omega$ the differential form: $$\omega :=\left(\frac{4x^2+2zx}{x^2+y^2}+2A(x,y)\right)dx+\left(\frac{2y}{x^2+y^2}(2x+z)\right)dy+A(x,y)\,dz,$$ where $A\in C^1(\mathbb{R^2}\backslash(0,0); \mathbb{R})$  Find a function $A$ that makes the differential form exact.  My teacher advised to use the homotopy of the curves of which I make the integral. Namely find two curves on which the integral is $0$, one that surrounds the origin and the other doesn't, and hence obtaining all the other curves through continuous deformation. For the curves that don't include the $z$-axis I can just take a ball that contains the curve, and since the ball is convex, I know that a closed differential form in a open convex set is exact (I'm pretty sure it is closed). I'm stuck on the curves that surround the $z$-axis, any ideas?


I've installed Helvetica Neue fonts on my Windows. The problem is when websites use Helvetica or Helvetica Neue typeface, they almost exclusively do it simply using "Helvetica" or "Helvetica Neue" font-family. But In my windows, the Helvetica fonts are installed as a "HelveticaNeueLT Com 45 Lt" or "Helvetica LT Std" or similar extended name. I've tried to create my test page, and the browser renders the font properly only if I use the full font name. I'd like to know, how to make windows/browser display Helvetica properly?

I've accidently installed the wrong font as 'Helvetica'. I found a font called Helvetica online when I was looking at desktop customization, etc and I went and installed it. However, it's not actually Helvetica. I've now got a proper Helvetica font, but I can't seem to install it (it installs as Helvetica LT Std. Is there any way for me to delete 'Helvetica' and rename 'Helvetica LT Std' to 'Helvetica'?  Cheers, Chintan


Suppose that $X_1, X_2, \cdot \cdot \cdot \ , X_n$ is a random sample from a continuous distribution with pdf $f_X(x;\theta) = \theta x^{\theta-1}$, for $\ 0\leq x \leq 1$. Show that $W=\prod_{i=1}^n X_i$ is a sufficient statistic for $\theta.$ Is the maximum likelihood estimator for $\theta$ a function of $W$?  Here's what I did:  $$P(X_1=x_1,...,X_n=x_n|W=w)=\cfrac{P(X_1=x_1,...,X_n=x_n,\prod_{i=1}^nX_i=\prod_{i=1}^nx_i)}{P(\prod_{i=1}^nX_i=\prod_{i=1}^nx_i)} \stackrel{redundancy}= \cfrac{P(X_1=x_1,...,X_n=x_n)}{P(\prod_{i=1}^nX_i=\prod_{i=1}^nx_i)}=\cfrac{\theta^n(\prod_{i=1}^nx_i)^{\theta-1}}{P(\prod_{i=1}^nX_i=\prod_{i=1}^nx_i)}$$  Here I am stuck. I am having difficulty breaking up the probability in the denominator. Thanks for the help.

This problem comes from , who do not rigorously demonstrate (in their solution key) that the statistic is not sufficient.  Let $X_1,\dots,X_n$ be a random sample from a population with PDF $f(x|\theta)=\theta x^{\theta-1} \cdot 1_{\{x\in(0,1)\}}$ for $\theta>0$. Show that $\sum_i X_i$ is not sufficient for $\theta$.  If you write out the PDF $p(\vec{x}|\theta)$ of the random sample, it is clear by the factorization theorem that $\prod_i X_i$ or $\sum_i \log(X_i)$ are sufficient for $\theta$; the PDF $p$ also suggests $\sum_i X_i$ is not sufficient for $\theta$. However, to rigorously demonstrate this, we need to analyze $p(\vec{x},\theta)/q(T(\vec{x},\theta)$, where $p$ is the distribution of sample $\vec{x}$, $q$ is the distribution of the statistic $T(\vec{X})=\sum_i X_i$. But finding the distribution of $T(X)=\sum_i X_i$ seems impractical. I have observed that $f$ is the PDF of a Beta($\theta$,1) distribution, but checking online, the distribution of the sum of Beta random variables doesn't appear to have a closed form. Are there any alternative routes (e.g., showing there is no factorization involving $T(\vec{X})$)? Did C&B leave out a full explanation that $\sum_i X_i$ is not sufficient because none actually exist?


I am trying to make a program print all possible 4 digits pin codes.  My program:  Pin = 0000 print (Pin) while Pin < 10000:     print (Pin)     Pin = Pin + 1   But it start at 0 and then continue 1, 2, 3, 4 and so on.  How do I make it start at 0000 and continue 0001, 0002 - 9998, 9999?

What is a Pythonic way to pad a numeric string with zeroes to the left, i.e. so the numeric string has a specific length?


How do I write this symbol (showed in picture, upright angle in math mode, not 180 rotated "A")

I know what my symbol or character looks like, but I don't know what the command is or which math alphabet it came from. How do I go about finding this out?


i have this:   echo $MSG | sed -e $'s/;/\\\n/g'   I want to put the result of that sed in a new variable called $MSG2  Something like:  $MSG2=echo $MSG|sed -e $'s/;/\\\n/g'   How can i do it?  Thank you!

I want to assign the result of an expression (i.e., the output from a command) to a variable and then manipulate it – for example, concatenate it with a string, then echo it.  Here's what I've got: #!/bin/bash cd ~/Desktop; thefile= ls -t -U | grep -m 1 "Screen Shot"; echo "Most recent screenshot is: "$thefile;  But that outputs: Screen Shot 2011-07-03 at 1.55.43 PM.png Most recent screenshot is:   So, it looks like that isn't getting assigned to $thefile, and is being printed as it's executed. What am I missing?


I would like to do button like Fly to Bern button in the below link.  Is it possible to do ?    var flyToBern = document.getElementById('fly-to-bern'); flyToBern.addEventListener('click', function() {   var duration = 2000;   var start = +new Date();   var pan = ol.animation.pan({     duration: duration,     source: /** @type {ol.Coordinate} */ (view.getCenter()),     start: start   });   var bounce = ol.animation.bounce({     duration: duration,     resolution: 4 * view.getResolution(),     start: start   });   map.beforeRender(pan, bounce);   view.setCenter(bern); }, false);

Is it possible to 'fly to location' in Leaflet in the same way as  example?


As of about a week or two ago, I started getting notifications in macOS (High Sierra, 10.13.4 17E202) that I need to sign in again ("Facebook Password Required"). It seems to accept my (definitely correct) password but then a moment later it asks for it again and I cannot get Facebook features like photo sharing to work at all.  I have not had this problem in other Internet Accounts (e.g. Twitter)  On the basis of answers here and online I tried removing and re-adding it, removing all Facebook related items in my login Keychain, and using an app-specific password.  I noticed that Facebook has updated its security settings page a lot, I suspect because of GDPR… So maybe they actually broke logging in from macOS? It seems unlikely, albeit possible, so I figured I'd ask on here to see if anyone has another solution or is experiencing the same issue as of late.  Note, if I look at my activity in security settings on Facebook it shows all these logins but it's from an unknown device.    Edit: Marked as a duplicate?… as I stated in the question this seems to be a new issue and previous answers don't seem to help. Seems to be specific to Facebook.

I've had this problem before, but I was able to resolve it that time. macOS 10.13.4, everything up to date. Yesterday, Internet Accounts forgot my LinkedIn password and would not reauthenticate. Today, it forgot my Facebook password.   I've tried:   App specific password. Removing the account and re-adding it. Turning off 2-factor authentication. Deleting associated entries from Keychain. Logging out of iCloud, deleting Keychain entries, removing and re-adding the account, then logging back in.   First of all, what the hell—why does this keep happening?! Secondly, what else can I do to fix this short of reinstalling macOS?


I am not getting +2 reputation for every approved edit. I can see in my activity that all the edits that i suggested are approved. plz let me know, why is it so. is there some limit on edits??  Thanks

According to  the limit is 1,000.      When a suggested edit is approved, the user who suggested it gets +2 reputation. The regular daily reputation cap applies, and the total cap is 1,000.    However at least one user has exceeded 1000 points earned from suggested edits.   On these days  earned rep from suggested edits   9/16 144 9/15 200 9/14 200 9/13 194 9/12 2 9/11 200 9/10 200   totaling 1,140 (he earned +2 on other days as well but I stopped looking after it was > 1000)


We have $x_1,x_2,\ldots,x_n \in \mathbb{R}$. I conjecture there to be a number $M \in  \mathbb{R}$ such that  for any $i=1,2,\ldots,n$ the quantity $$|x_i - M|$$ is as small as possible. How do you go about proving that $M$ is the arithmetic mean $$M=\frac{\sum_{i=1}^{n} x_i }{n}\text{ ?}$$

Suppose we have a set $S$ of real numbers. Show that   $$\sum_{s\in S}|s-x| $$   is minimal if $x$ is equal to the median.    This is a sample exam question of one of the exams that I need to take and I don't know how to proceed.


I've gone through many articles on Google.  One says it's good to drink water after meal as it aids digestion while others say never drink water after a meal because it will dilute the acids (i.e. HCl).  I am a teenager and want to gain weight. Is it beneficial to drink water immediately after a meal (as I usually do)?   What is actually going on there?

Is it better to drink water during or after a meal?  Clearly, there are different opinions about this topic.   In this , it is mentioned that drinking water immediately after or during a meal should not make much difference, and in fact doing so actually aids digestion in general.  On the other side, this  says exactly the opposite:     Remember not to drink too soon before or after a meal as the water will dilute the digestive juices.  Drink water an hour after the meal to allow the body to absorb the nutrients.   Which approach is better for health?


Is it possible to recover the key to a decrypted file if you have the initialization vector and it uses RijndaelManaged in CBC mode? If so how?   The file I want to recover the key from is a xml that looks like this without encryption. It has a xml element called Test.  <?xml version="1.0" encoding="utf-8"?> <Test />   When it is encrypted with the key stackoverflow (73868cb1848a216984dca1b6b0ee37bc = md5 hash) and the initialization vector below, the file look like this ¥4!¬Hw[î!71ôtž|!¢¬TÞ;u?þª-†•ÈÏ‰eßŽKtSsbZ®ÕµR©Ù«í‹:    Initialization vector:  byte[] iv = new byte[] {     55, 66, 77, 192, 57, 100, 11, 111,     25, 86, 96, 66, 22, 122, 133, 43 };   Is it possible to reverse the key from that or are it bulletproof?

I have a file, which was encrypted with AES-128 in ECB mode. I know the format of the original file and know that all files in this format have the same headers. So, I have an encrypted block and the original block.  Can I get the encryption key, using this information?


I am getting the following line at the end when I give command sudo apt update: N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://download.mono-project.com/repo/ubuntu stable-focal InRelease' doesn't support architecture 'i386' Is this alright or I have to do something to remove this? (Previously it did not come but now this line is showing.) I request help me with their knowledge, and thank you very much. :)

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


After installing 14.04 server, how could I get out from terminal and go to graphical?

Trying to run a Ubuntu server for the first time... But everything is in a terminal. Is there a way to switch to a GUI?


I am  trying to install Ubuntu 18.04, but in installation mode my laptop screen is randomly rotating by 90 degrees.  This is happening on a hp pavilion 15 cs2082-tx.  I had previously installed Ubuntu 16.04 and I didn't have this issue, in fact is was working fine with the exception of wifi, and due to the wifi problem I want to switch to 18.04.  Any help will be appreciated.

I have an HP Pavilion 14 inch laptop.  I recently upgraded from Ubuntu 17.04 to 17.10.   Everything went well, but when I boot up the system, my screen rotation was set to left.   Then I tried using xandr to rotate my screen, but my every effort failed.  Can anybody help me on the same?


I will travel around early January. I want to know from someone who has been there around this time if it's extremely cold?

Is there a good weather forecast website that I can check the historical weather on a specific area?  To explain my situation:   I want to go to Key West around January 2017 for a vacation but I want to be sure about the temperature I will find there around January. Depending on the history of previous temperatures, I will go on Jan/2017 or I will reschedule to Dec/2016.


I have a piece of code which I just cannot debug. Basically env is always the same object in every iteration (has the same reference). I know it has something to do with references being copied over, but I do not know where this happens. Can you please point out the issue if you can find it? I made a small runnable example which reproduces my issue: import copy   class Params:     def __init__(self, port):         self.__port = port      def set_port(self, port):         self.__port = port      def get_port(self):         return self.__port   class Env:     def __init__(self, params):         self.params = params   def make(env_class, params, ports):     env_fs = []     for port in ports:         params_ = copy.deepcopy(params)         params_.set_port(port)         env = env_class(params_)         env_fs.append(lambda: env)     return env_fs   if __name__ == "__main__":     fs = make(Env, Params(0), ports=[0, 1, 2, 3])     for f in fs:         print(f().params.get_port(), id(f()))  This outputs: 3 139624063550224 3 139624063550224 3 139624063550224 3 139624063550224  Process finished with exit code 0  Every object has the same reference.

While I was investigating a problem I had with lexical closures in Javascript code, I came along this problem in Python:  flist = []  for i in xrange(3):     def func(x): return x * i     flist.append(func)  for f in flist:     print f(2)   Note that this example mindfully avoids lambda. It prints "4 4 4", which is surprising. I'd expect "0 2 4".   This equivalent Perl code does it right:  my @flist = ();  foreach my $i (0 .. 2) {     push(@flist, sub {$i * $_[0]}); }  foreach my $f (@flist) {     print $f->(2), "\n"; }   "0 2 4" is printed.  Can you please explain the difference ?    Update:   The problem is not with i being global. This displays the same behavior:  flist = []  def outer():     for i in xrange(3):         def inner(x): return x * i         flist.append(inner)  outer() #~ print i   # commented because it causes an error  for f in flist:     print f(2)   As the commented line shows, i is unknown at that point. Still, it prints "4 4 4".


I have   center of circle's $x_1, y_1$ (called the eye in my code) degrees current $x_2, y_2$ (coordinates on the circle)   I want to add degrees to the $x_2, y_2$ and get the new "$x_3, y_3$"  Side Note: I dropped out of school and never learned TRIG. So a simple explanation would do wonders.

Having a circle $\circ A(x_a, y_a)$ of radius $R$ and a point on the circle $B(x_b, y_b)$, how can we rotate the point with a known angle $\alpha$ (radians or degrees, it doesn't really matter) on the circle so we will obtain a new point on the circle $C(x_c, y_c)$, like in the image below? How to calculate the $C$ coordinates?   Here the rotation angle is $90 ^ {\circ}$. In this example, $x_b = x_a$, $y_b = R$, $\alpha = 90 ^ \circ$. From the image we see that $x_c = R$ and $y_c = y_a$.  However, I want a general solution for any $A, B, R$ and $\alpha$.


"X as well as Y" singular or plural  When two nouns are connected using "as well as", does that become singular or plural? For eg. Sam as well as his brother Dean has / have to come. Which one is correct?

My question arises from , where OP asks whether he should use the singular or plural verb form after "the title, as well as the tone,"  As luck would have it, when I searched Google Books for , I found...        ...and...        At the risk of having this question closed as just peeving, I feel that the first one should have been plural "err", because without the commas it seems to me both "the title" and "the tone" have more or less equal status as "joint" subjects of the verb, making it plural.  On the other hand, I feel the commas in the second example effectively demote "the tone" to "parenthetical" status (the clause is almost incidental). Since this encourages us think of "the title" as the primary subject, it should have been singular "derives".  I'm no great fan of "grammatical rules", but it seems weird to me that the only two relevant examples for this specific wording should both (in opposite ways!) contradict my inclinations.  What's going on?