They ask me to prove:  $\sum_{i=1}^{n}(x_i - \bar{x})^2$ = min$_{a\in \mathbb{R}} \sum_{i=1}^{n}(x_i - a)^2$ with $\bar{x}$ the mean.  Well my problem is that I start to prove it by different ways but I don't reach anything. If someone can help me giving me a clue of how to start it will be brilliant.

How do we prove that $$ \sum_{i=1}^{n}(x_i-\bar{x})^2\lt\sum_{i=1}^{n}(x_i-a)^2 $$  where $a$ is any value other than $\bar{x}$, the arithmetic mean.  My Attempt: $$ \sum_{i=1}^{n}(x_i^2-2x_i\bar{x}+\bar{x}^2)\lt\sum_{i=1}^{n}(x_i^2-2x_ia+a^2)\\\sum_{i=1}^{n}x_i^2-2\bar{x}\sum_{i=1}^{n}x_i+\sum_{i=1}^{n}\bar{x}^2\lt\sum_{i=1}^{n}x_i^2-2a\sum_{i=1}^{n}x_i+\sum_{i=1}^{n}a^2\\-2\bar{x}.n\bar{x}+n.\bar{x}^2\lt-2a.n\bar{x}+n.a^2\\-2\bar{x}^2+\bar{x}^2\lt-2a\bar{x}+a^2\\-\bar{x}^2\lt-2a\bar{x}+a^2 $$ But how do I proceed further or is there any better way ?


In this picture $AB=AC$ and   $\begin{array}{l}  \angle A = 20 \\   \angle {B_1} = 70 \\   \angle {C_1} = 60 \\   \end{array}$  What is $\angle x$?

I've been solving this for days but I still I couldn't solve this. Can I know how to solve $x$ ?


I have tried answering the security questions and I am being blocked from accessing my account.  I do not have a mobile phone so cannot have a code sent to me by text to access my Facebook account. I will not scan any government ID as that seems extreme to me and not secure in order to identify myself.  Can I get the code by email?

I used my nickname as my middle name and my maiden name, and now I'm locked out of my Facebook account. I did not know that this was not allowed according to the Facebook Terms of Service. When I try to verify my identity with my driver's license, it says it can't validate.   I need to have my Facebook account back only to access my pictures. I have irreplaceable pictures of my family that I want very much not to lose. Any help would be greatly appreciated.


I'm trying to use Mike42 Classes Library, already connected to the printer and everything works fine. then I'm trying to print hebrew letters and Getting "?????" or Some Gibberish Strings.  Anyone already tried also?

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 have noticed that the Database symbol to the left of the Server name in the object explorer tends to differ without any obvious reason. Two servers have a database symbol with a Green arrow on them and another server has a database symbol with a blue question mark (?). I use windows authentication on all servers. What is interesting is that I have two virtual desktops open (all connected to the same servers, but only one VDesktop has the blue icon/symbol. the rest are Green with a white arrow on them). I just noticed this and was curious if anyone knew what they meant?   Just curious, because the Blue Question Mark is on my production server. Just want to make sure its no cause for concern. Sorry if the answer is very obvious

The SQL Server instance is accessible and seems to be fine.     Microsoft SQL Server 2016 (SP1-CU2) (KB4013106) - 13.0.4422.0 (X64)   Mar  6 2017 14:18:16   Copyright (c) Microsoft Corporation  Enterprise   Edition (64-bit) on Windows Server 2012 R2 Standard 6.3  (Build   9600: ) (Hypervisor)   But what does the white question mark mean?  these icons dont go away when I refresh. I am sysadmin inside sql server and outside I am administrator on that box.      Another thing I noticed, you can see on the picture below. These are 2 different Management Studio sessions.  On the top one, I am logged in as myself, DBA and sysadmin,  on the second one I use Management Studio with run as a different user and I use a domain account that I use for the replication, which is not sysadmin.  The second one has the blue icon in this and other servers as well, whilst mine is the normal green one.


I've seen answers on this questions like ext2 explorer, but when I try to find the Ubuntu partition of my hdd, it doesn't show up in Windows Explorer. I can't boot into Ubuntu because every time I do it freezes shortly after I log in, and I can't do anything. I just need to recover a few text files from it and then I can reinstall. Please help!

I am running a dual-boot with Windows XP and Ubuntu 11.04.  Ubuntu has Open Office as part of the install. Occasionally, when using XP, I need to work on a spreadsheet or other Open Office document but can't seem to access them while using Windows XP. Is there a way that XP can crossover to Ubuntu documents?  Are two different versions of Adobe also needed?


I have a text in a paragraph which breaks automatically due to a max p size. Is it possible to somehow extract those line-breaks afterwards from the dom?  For example I have a text like: This is an example text that is too long for a line and breaks Which breaks after is in the dom.  I'd like to generate an array like that: ['This is an example text that is', 'too long for a line and breaks']. And if possible i'd like to also get the dash if a word breaks into syllables.  Thanks!

I need to add line breaks in the positions that the browser naturally adds a newline in a paragraph of text.  For example:
This is some very long text \n that spans a number of lines in the paragraph.
  This is a paragraph that the browser chose to break at the position of the \n  I need to find this position and insert a
  Does anyone know of any JS libraries or functions that are able to do this?  The only solutuion that I have found so far is to remove tokens from the paragraph and observe the clientHeight property to detect a change in element height. I don't have time to finish this and would like to find something that's already tested.  Edit: The reason I need to do this is that I need to accurately convert HTML to PDF. Acrobat renders text narrower than the browser does. This results in text that breaks in different positions. I need an identical ragged edge and the same number of lines in the converted PDF.  Edit:  @dtsazza: Thanks for your considered answer. It's not impossible to produce a layout editor that almost exactly replciates HTML I've written 99% of one ;)  The app I'm working on allows a user to create a product catalogue by dragging on 'tiles' The tiles are fixed width, absolutely positioned divs that contain images and text. All elemets are styled so font size is fixed. My solution for finding \n in paragraph is ok 80% of the time and when it works with a given paragrah the resulting PDF is so close to the on-screen version that the differences do not matter. Paragraphs are the same height (to the pixel), images are replaced with high res versions and all bitmap artwork is replaced with SVGs generated server side.  The only slight difference between my HTML and PDF is that Acrobat renderes text slightly more narrowly which results in line slightly shorter line length.  Diodeus's solution of adding span's and finding their coords is a very good one and should give me the location of the BRs. Please remember that the user will never see the HTML with the inserted BRs - these are added so that the PDF conversion produces a paragraph that is exactly the same size.  There are lots of people that seem to think this is impossible. I already have a working app that created extremely accurate HTML->PDF conversion of our docs - I just need a better solution of adding BRs because my solution sometimes misses a BR. BTW when it does work my paragraphs are the same height as the HTML equivalents which is the result we are after.  If anyone is interested in the type of doc i'm converting then you can check ou this screen cast:    Edit: Many thanks to Diodeus - your suggestion was spot on.   Solution: for my situation it made more sense to wrap the words in spans instead of the spaces.  var text = paragraphElement.innerHTML.replace(/ /g, ' ');  text = ""+text+""; //wrap first and last words.  This wraps each word in a span. I can now query the document to get all the words, iterate and compare y position. When y pos changes add a br.  This works flawlessly and gives me the results I need - Thank you!


We have the base64 encoded SSH key password (so not a user account password!).   We have to keep an SSH tunnel opened to a place.   But sometimes the connection is bad and the SSH session terminates.   When we start the SSH tunnel, the SSH private key is encrypted with a password, thus requiring a human to input the pw.   We know that it is just obscurity to have the private ssh key password in a file, but it helps :)  Question: How can we automate the pw input when we open the tunnel? Maybe "expect" can help?

I tried writing a shell script which can do automatic login into a ssh server using password which is mentioned in the script. I have written the following code:  set timeout 30 /usr/bin/ssh -p 8484 root@172.31.72.103 expect  {    "root@172.31.72.103's password"     {       send "password\r"     } }   This code is not running properly, still it is asking for the password. Can somebody please help me in solving this


We are having a database without backup to restore. (we didn’t keep backups as client not having enough space in his SQL Server 2012). Unfortunately some data has been lost and we need to recover those. Please provide a way of doing this.

I mistakenly deleted around 2,000,000 records from a remote SQL Server 2008 table.  The server is not granting me access to the backup files on the server side.   Is there any way to get back these records?


I have just purchased a chromebook, Asus C300, in hopes that I would be able to install ubuntu on it instead of chrome os. The other options I see are chrubuntu and crouton but neither really give me what I want as I don't have any need for chrome os and would rather free up the disk space.   So right now I have a 32bit copy of 14.04 on a flashdrive (I did it correctly via a windows machine). I turned OS verification off on my chromebook and entered it into developer mode which took a few minutes. But when I do recovery mode (escape + f3 + power) it says that the usb device does not contain chrome os. SO I'm doing something wrong but I don't know what. Any advice on how to proceed further would be greatly appreciated

I have installed Ubuntu 13.04 on my desktop (runs like a charm). Then I used Crouton to install Ubuntu 12. 04 on my chromebook samsung (ARM). It also works quite well.  Here comes my question. Can we have a true Ubuntu (preferably 13.04) on my ARM chromebook?  It seems that the Crouton/Ubuntu is not 100% the real thing.  The best option would be to have the full Ubuntu 13.04 and remove the Chrome OS.


I am using jQuery validation plugin for UI validation. I have a Jquery menu to select the type of transaction. On certain menu selection there should not be any validation happening. I am not sure if there is a way to tell Jquery validation to be disabled  I am using a following ways for the validation  1) $.validator.addMethod()  2) $.validator.addClassRules()  3) $("#submitButton").validate({     rules: { some rules },     messages: { some messages }  on click of the submit button for a particular menu selection i want the validation to be turned OFF. Is there a way to achieve this?

I have a form with multiple fields that I'm validating (some with methods added for custom validation) with Jörn Zaeffere's excellent jQuery Validation plugin. How do you circumvent validation with specified submit controls (in other words, fire validation with some submit inputs, but do not fire validation with others)? This would be similar to ValidationGroups with standard ASP.NET validator controls.  My situation:  It's with ASP.NET WebForms, but you can ignore that if you wish. However, I am using the validation more as a "recommendation": in other words, when the form is submitted, validation fires but instead of a "required" message displaying, a "recommendation" shows that says something along the line of "you missed the following fields.... do you wish to proceed anyways?" At that point in the error container there's another submit button now visible that can be pressed which would ignore the validation and submit anyways. How to circumvent the forms .validate() for this button control and still post?  The Buy and Sell a House sample at  allows for this in order to hit the previous links, but it does so through creating custom methods and adding it to the validator. I would prefer to not have to create custom methods duplicating functionality already in the validation plugin.  The following is a shortened version of the immediately applicable script that I've got right now:  var container = $("#<%= Form.ClientID %> div.validationSuggestion");  $('#<%= Form.ClientID %>').validate({               errorContainer: container,     errorLabelContainer: $("ul",container),     rules: {         <%= YesNo.UniqueID %>: { required: true },         <%= ShortText.UniqueID %>: { required: true } // etc.      },     messages: {         <%= YesNo.UniqueID %>: 'A message.',         <%= ShortText.UniqueID %>: 'Another message.' // etc.     },     highlight: function(element, errorClass) {         $(element).addClass(errorClass);         $(element.form).find("label[for=" + element.id + "]").addClass(errorClass);         $(element.form).find("label[for=" + element.id + "]").removeClass("valid");     },     unhighlight: function(element, errorClass) {         $(element).removeClass(errorClass);         $(element.form).find("label[for=" + element.id + "]").removeClass(errorClass);         $(element.form).find("label[for=" + element.id + "]").addClass("valid");     },     wrapper: 'li' });


I can reverse list order by using the reversed iterator or by using ::-1, as shown in this code: li=[1,2,3]  print(list(reversed(li))) print(li[::-1])  However, I have not understodde the meaning of the :: addressing, and I have not found any documentation on this feature (possible due to the fact that searching for :: creates problems). Can anyone help? Thank you.

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


Solve $w^2=−15+8i$, where $w$ is complex.   Normally, I would convert this into polar coordinates, but the problem is that is too slow.   What is another alternative?

If I'm given a complex number (say $9 + 4i$), how do I calculate its square root?


i have Created a point shapefile and want to add points approximately at every 200 m along the centre line of the new road and rail corridors.  after that i want to add field ID to the attribute table and give id to each point.

I have a series of polylines that represent linear vegetation (shelterbelts, etc). I need to convert these to a series of points equally spaced in order to add them to a different shapefile that represents point vegetation (individual trees). I should also mention that I have about 300 polylines to do this to, so would like to be able to do them all at once. The polylines vary in length, but regardless of length, I want to place points at the start at end of each line, and then every 10 m.   I would imagine that this will require python script. Of which I am not familiar with how to write.   Does anyone know how I can do this in ArcMap 10?   I looked at a similar question previously posted for someone who wanted to create 6 points on 70,000 lines of various length and found this python script:  import arcpy points = []   for row in arcpy.da.SearchCursor("YourInputLinesFileHere", ["SHAPE@"]):     length = row[0].length     for i in range(0,6):       point = row[0].positionAlongLine(length/5*i)       points.append(point)           arcpy.CopyFeatures_management(points, 'YourOutputPointsFileHere')   So I know it must be possible with python but am not familiar with it enough to manipulate this.


Consider the measure space $(\Omega, \mathcal F)$, where $\Omega$ is an uncountable set, and $\mathcal F := \{A \subset \Omega: A \text{ is countable or }A^c \text{ is countable}\}$. Prove that $\mu: \mathcal F \rightarrow [0, \infty]$ defined as: $$\mu (A) =  \ \begin{cases}        0 & ,A \text{ is countable} \\          1 & ,A^c \text{ is countable}     \end{cases} \ $$ is a measure on $(\Omega, \mathcal F)$. I have already shown that $\mu(\varnothing) = 0$. Also, by taking an arbitrary sequence $Z_1, Z_2, ... \in \mathcal F$ (with $Z_i \cap Z_j = \varnothing$), I have shown that $\mu (\bigcup\limits^{}_{n\geq1}Z_n) = 1$ because $(\bigcup\limits^{}_{n\geq1}Z_n)^c$ is countable. However, I don't know how to get $\sum_{n\geq1}\mu(Z_n) = 1$ to conclude that $\mu$ is a measure (doesn't seem possible to me). Any idea?

Let X be an uncountable set. And let $$\mathcal{A} =\{A\subset X: A \text{ is countable or } X-A \text{ is countable}\}.$$ Then it can be shown that $\mathcal{A}$ is a $\sigma$-algebra. Define $\mu:\mathcal{A}\rightarrow [0,\infty]$ by $\mu(A)=0$ if $A$ is countable or 1 otherwise. The task is to show that $\mu$ so defined is a measure on $\mathcal{A}$.  It is clear that $\mu(\emptyset)=0$. Now we want to show that $\mu$ is countably additive on disjoint sets from $\mathcal{A}$. I'm first trying to show this for two disjoint sets $A$ and $B$ in $\mathcal{A}$. I am running into a problem if I assume that both $X-A$ and $X-B$ is countable.  For if this happens then, $B\subset X-A$ implies $B$ is countable. But both $B$ and $X-B$ cannot be countable, since then $X=B\cup (X-B)$ will be countable, running contrary to the assumption that $X$ is uncountable. How should I address this case?


Ubuntu isn't recognizing any use of the super key(s). Keyboard works 100% otherwise, just not registering at all when I press it. Happens with two different keyboards...  It's been working perfectly fine for a few months, I haven't consciously messed with the bindings or keyboard config. Just has completely stopped being recognized as of today. Tried restarting computer, resetting settings... nothing.   Even when I open keyboard layout under Settings > Region & Language > keyboard icon, where the layout can be seen and the keys light up on the screen when you press them, both super keys don't register.  Any ideas?

I am using an external keyboard on my laptop and the Super key doesn't work. The laptop's keyboard works just fine, every key is regularly detected.  I tried using xinput to debug this issue. Here you can see the output of xinput list, the device I am having issues with is the Cooler Master Technology Inc. MasterKeys Pro L White.  ⎡ Virtual core pointer                      id=2    [master pointer  (3)] ⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)] ⎜   ↳ SynPS/2 Synaptics TouchPad                id=15   [slave  pointer  (2)] ⎜   ↳ Bluetooth  Mouse                          id=16   [slave  pointer  (2)] ⎣ Virtual core keyboard                     id=3    [master keyboard (2)]     ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]     ↳ Power Button                              id=6    [slave  keyboard (3)]     ↳ Video Bus                                 id=7    [slave  keyboard (3)]     ↳ Video Bus                                 id=8    [slave  keyboard (3)]     ↳ Power Button                              id=9    [slave  keyboard (3)]     ↳ Sleep Button                              id=10   [slave  keyboard (3)]     ↳ Chicony USB 2.0 Camera: Chicony           id=13   [slave  keyboard (3)]     ↳ AT Translated Set 2 keyboard              id=14   [slave  keyboard (3)]     ↳ Cooler Master Technology Inc. MasterKeys Pro L White  id=11   [slave  keyboard (3)]     ↳ Cooler Master Technology Inc. MasterKeys Pro L White  id=12   [slave  keyboard (3)]   I tried running xinput test-xi2 12 to see if the events from the keyboard where issued. All keys are working except for the super keys. I tested the keyboard with my desktop PC and all keys are working fine.   I am running Ubuntu 16.04.5 with kernel version 4.13.0-45-generic, Unity as Desktop Environment and Compiz as Windows Manager.


Im working on a project for school, and im stuck at reading a txt file, i tried using this code   public static String txt (String a)     {       String[] Text= new String[Readfile.counter(a)]; // Creates a string array for every word       String s="";         int i=0;       try{          Scanner scan =new Scanner(new File(a));           while(scan.hasNext()){              s =scan.next(); // läser en rad från fil till s             Text[i]=s;             i++;            // System.out.print(s + " "); // skriver ut den            }        }       catch( Exception exp) {}       String txt= Arrays.toString(Text);       return txt;       }   wanted to save the strings in an array as it loops then turn it into a string, but the problem here is that the results will have brackets"[]" and commas "," in it. Is there any way to read the entire txt file and save it in a single variable?

I've been using the idiom below for some time now. And it seems to be the most wide-spread, at least on the sites I've visited.  Is there a better/different way to read a file into a string in Java?  private String readFile(String file) throws IOException {     BufferedReader reader = new BufferedReader(new FileReader (file));     String         line = null;     StringBuilder  stringBuilder = new StringBuilder();     String         ls = System.getProperty("line.separator");      try {         while((line = reader.readLine()) != null) {             stringBuilder.append(line);             stringBuilder.append(ls);         }          return stringBuilder.toString();     } finally {         reader.close();     } }


Greetings to the distinguished gathering of TeXperts!  My problem is: if a macro is defined with a babel shorthand containing the quote mark (") as an active character, it does not expand when invoked.  MWE (TeXLive 2014 with the latest updates):  \documentclass[11pt]{article}  \usepackage[T2A]{fontenc}  \usepackage[utf8]{inputenc} \usepackage[russian]{babel}  \newcommand{\myname}{А.",С.",Пушкин "--- самый"=самый известный русский поэт.} \newcommand{\mynamea}{\shorthandon{"}А.",С.",Пушкин "--- самый"=самый известный русский поэт.}  \begin{document} \myname \par \expandafter\myname \par \mynamea \par \expandafter\mynamea \par Benchmark: \par А.",С.",Пушкин "--- самый"=самый известный русский поэт. \end{document}   For your information, in [russian]{babel}, the following definitions are present:  \declare@shorthand{russian}{",}{\nobreak\hskip.2em\ignorespaces} \declare@shorthand{russian}{"=}{\nobreak-\hskip\z@skip}   The "--- is a shorthand for Cyrillic text dash, \cdash---.   For some reasons, LaTeX did not expand any of these four (!) commands despite the fact he had been explicitly ordered to. What is the best practice for such occasions?

The package babel with the ngerman option (and most other languages as well, but not english) provides the shorthand "|, which prevents a ligature at the given position (see p. 81 of the , e.g. Auf"|lage will result in the word Auflage without an fl-ligature (as is desired because, in German, you don't want ligatures across morpheme borders).  However, when placed in a macro, "| doesn't work anymore. Why is this and how can I circumvent it?  \documentclass{article}  %\usepackage[T1]{fontenc}% doesn't help \usepackage[ngerman]{babel}  \newcommand{\foo}{"|}  \begin{document}  ff  f"|f  f\foo f  \end{document}


installed ubuntu 20.04 and kde desktop last weekend. i have followed instructions from  websites but nothing seems to work.  the repository is on launchpad, but it does not have a release file. i have tried researching on the web, have attempted the fixes ,still wont run.

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 run my hot water in the bathroom sink and the toilet next to it starts bubbling.  What could be causing this?

Last night while my washing machine and sink in the master bath was running, my master toilet started having air bubbles come up.  Then this morning while I was showering I heard bubbles again, and the shower was draining very slowly.  After the bubbles occurred my toilet in the master bath and powder room completely drained of water in the bowl and tank.  What is happening?


I want to remove the function listify_single_job_listing_meta which is hooked in action inside the following class  class Listify_WP_Job_Manager_Template extends listify_Integration {      public function __construct() {         $this->includes = array();         $this->integration = 'wp-job-manager';          $this->is_home = false;          parent::__construct();     }       public function setup_actions() {                 add_action( 'listify_single_job_listing_meta', array( $this, 'single_job_listing_meta' ) );     }    public function single_job_listing_meta() {         do_action( 'single_job_listing_meta_start' );          do_action( 'single_job_listing_meta_end' );          }      }   I am using the following code in functions.php  global $myclass; $myclass='Listify_WP_Job_Manager_Template'; remove_action( 'listify_single_job_listing_meta', array( $myclass, 'single_job_listing_meta' ) );   But this is not giving me the desired result . Please help

Is a way to pass my own parameters to the function in add_filter or add_action. For example take a look in the following code:  function my_content($content, $my_param) { do something... using $my_param here ... return $content; } add_filter('the_content', 'my_content', 10, 1);   Can I pass my own parameter? something like:  add_filter('the_content', 'my_content($my_param)', 10, 1)   or  add_filter('the_content', 'my_content', 10, 1, $my_param)


$v=\omega r$ relation shows that even with a fixed $\omega$ and large $r$, the end of the pole can be rotated at a high speed. So if I make pole sufficiently long such that $v=c$, will it be possible to create such a scenario? The answer would be obviously no, but how?

Is it possible for information (like 1 and 0s) to be transmitted faster than light?   For instance, take a rigid pole of several AU in length. Now say you have a person on each end, and one of them starts pulling and pushing on his/her end.   The person on the opposite end should receive the pushes and pulls instantaneously as no particle is making the full journey.  Would this actually work?


Using PHP crypt() method I have a PHP script to store users encrypted passwords in MySQL database. Can you please let me know what field type I should use to store the encrypted data?  Thanks

I'm not sure how password hashing works (will be implementing it later), but need to create database schema now.  I'm thinking of limiting passwords to 4-20 characters, but as I understand after encrypting hash string will be of different length.  So, how to store these passwords in the database?


I believe it was a Short Story but can't be sure (I just can't think of enough to have made it novel length).  It was in English, probably read 30+ years ago (before 1990)  Set in modern times. The girl looks in her early teens in age (12-14). I think the story was told from the perspective of a man who meets her. She was either hitchhiking and he picks her up, or she is clearly a runaway who needs help (food or clothing or shelter from the weather) or maybe a prostitute he picks up on a street corner.  I think while chatting with her, she accidentally relates something that she is clearly not old enough to have seen, or is much more knowledgeable than she should be for her age, and he starts questioning her about the inconsistencies.  So she starts telling him her story (I think she might be as much as 1000 years old.) Because she is so young, she could never stay in one village or town for more than a few years, because people quickly realize she is not getting older. As I recall she does not know why she is immortal, and has never meet any one else like her.  In more recent times she may have earned money at times as a child prostitute. I think she may have asked him if he wanted to sleep with her, and when he reacts in shock, she tells him she is very experienced, and points out that at many times in the past in different cultures she would have been married at her apparent age, and had been.  I think in the end he agrees she can stay with him posing as his daughter/niece (separate bedrooms) for awhile.

It's been maybe twenty years since I read this, so please forgive me for not remembering if it was a novel or a short story.   It's the story of a girl whose father was either a Greek or Egyptian alchemist. He had concocted an elixir which, if drunk periodically, grants immortality. The problem was that in order for it to work, the person drinking it couldn't have gone through puberty.   He gave the elixir to his son and daughter, and taught them how to make more. The children live through many centuries, but the son eventually stops taking it. He ages normally and eventually dies. The daughter continues to take it, and the reader learns her story while she is being interviewed, either by MDs, or psychiatrists.


Statement: if $\hat{\theta}$ is the MLE of some parameter $\theta$ then asymptotically $\hat{\theta} \sim \mathcal{N}(\theta, I_\theta^{-1}),$ where $I_\theta$ is the fisher information matrix.   My question is, what if $\hat{\theta}$ is a biased estimator of $\theta$? Surely $\mu$ will not be $\theta$ then.

I can follow the proofs in which the asymptotic normal-distribution of a maximum likelihood estimator $\tilde{\theta}_n$ is derived.   however, does this already imply that the maximum likelihood estimates are asymptotically unbiased, i.e. do we have $$E(\tilde{\theta}_n) \to \theta \text{ as } n \to \infty?$$  Since I am aware that in general it is not true that convergence in distribution implies convergence in moments, an explanation would be nice.  The result is often stated e.g.  as "...it means that the bias of the maximum likelihood estimator is equal to zero up to the order $n^{-1/2}$")  1.) Are  some kind of regularity conditions from the mle theory used to establish this result?  2.) Or is a $\sqrt{n}$-convergence of an estimator (to a normal distribution) in general already enough to establish convergence of its moments?  Note: the Wikipedia article mentions Cox, David R.; Snell, E. Joyce (1968).  , as a source where the order of the bias is derived (formula (12) or (20)).   However in this paper I can't follow the arguments 100%, since their Taylor approximation of $L'(\widehat{\beta})$ is lacking the remainder term. What is the argument used here to discard it completely?


I was just wondering if anyone knows the Linux equivalent to the " prompt" and "title" command in cmd.  Thanks

Is there a way to set the gnome-terminal title from within the terminal itself without having to right click on the tab. Something like:  active-terminal --title "Foo"   There was a related question previously with an answer that almost lets you do this:  but that doesn't set the gnome-terminal tab title only the window title.


I'm trying to use an external javascript library in my lightning web component, this include two external CDNs one css and one js.  How can I load them in my component?

Is there any way we can use Google Address plugin related javascript inside an LWC component like we have used inside the Visual force pages like below,  <apex:component > <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=places&key=XXXXXXXXXXXXXXX">  </script> <script> function initialize(addressType) {     // Create the autocomplete object, restricting the search     // to geographical location types.     if (addressType == 'Test') {         autocomplete = new google.maps.places.Autocomplete((document                 .getElementsByClassName('test')[0]), {             types : [ 'geocode' ]         });         // When the user selects an address from the dropdown,         // populate the address fields in the form.         google.maps.event.addListener(autocomplete, 'place_changed',                 function() {                     fillInAddress('test');                 });     }     else {         autocomplete = new google.maps.places.Autocomplete((document                 .getElementsByClassName(addressType)[0]), {             types : [ 'geocode' ]         });         // When the user selects an address from the dropdown,         // populate the address fields in the form.         google.maps.event.addListener(autocomplete, 'place_changed',                 function() {                     fillInAddress(addressType);                 });     } } </script> </apex:component>


I am very new to ubuntu . I am using ubuntu 14.04.01 and i am  using a wifi connection and i don't have a lan connection. I want to create a wifi hotspot using this connection. I searched on sites but i only get the methods to create it with lan.   I tried   thanks in advance.

I know how to create a hotspot when connected to a wired network, but when I am using internet from a WiFi connection, this disconnects the wireless connection the moment I activate the hotspot.  In Windows I can use , which enables me to share the internet connection from the same wireless adapter as I am creating an access point on. As you can read on the :     Access Point mode allows you to create a hotspot using the same Wi-Fi card that you are using to access the Internet.   How do I do this on Ubuntu?


I'm a learning how to develop in Android and want to make a setting activity,   My setting activity   public class Main extends Activity  {       protected SettingsFragment settingsFragment;       @SuppressLint("NewApi")     @TargetApi(11)     public class SettingsFragment extends PreferenceFragment implements             SharedPreferences.OnSharedPreferenceChangeListener {           @Override         public void onCreate(Bundle savedInstanceState) {              super.onCreate(savedInstanceState);             addPreferencesFromResource(R.xml.preferences);             setSummaries();           }           @Override         public void onResume() {             final SharedPreferences sh = getPreferenceManager().getSharedPreferences() ;             super.onResume();             sh.registerOnSharedPreferenceChangeListener(this);          }          @Override         public void onPause() {             final SharedPreferences sh = getPreferenceManager().getSharedPreferences() ;             super.onPause();             sh.unregisterOnSharedPreferenceChangeListener(this);         }          @SuppressLint("NewApi")         public void setSummaries(){             final SharedPreferences sh = getPreferenceManager().getSharedPreferences() ;               //Pref1             Preference stylePref = findPreference("editTextPref");             stylePref.setSummary(sh.getString("editTextPref", ""));              //here the other preferences..         }           @Override         public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {             if (key.equals("editTextPref")) {                 Preference pref = settingsFragment.findPreference(key);                 // Set summary to be the user-description for the selected value                 pref.setSummary(sharedPreferences.getString(key, ""));              }             //here the others preferences         }     }//End fragment      @SuppressLint("NewApi")     @Override     public void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         settingsFragment = new SettingsFragment();         getFragmentManager().beginTransaction()                 .replace(android.R.id.content, settingsFragment)                 .commit();       }   }   and my res/preferences.xml file   <?xml version="1.0" encoding="utf-8"?> <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">     <PreferenceCategory         android:title="BTA"         xmlns:android="http://schemas.android.com/apk/res/android">           <EditTextPreference             android:key="editTextPref"             android:title="Numero de telephone"             android:summary="This allows you to enter a string"             android:defaultValue="*"/>      </PreferenceCategory>  </PreferenceScreen>   So now i have the activity for the setting activity. But i want to display the value of the EditTextPref in android:summary. I have found many topics but all the functions was deprecated.  EDIT : thanks to @Ace_McIntosh , I edited my code for people who want it, it's working now.

This must come up very often.  When the user is editing preferences in an Android app, I'd like them to be able to see the currently set value of the preference in the Preference summary.  Example: if I have a Preference setting for "Discard old messages" that specifies the number of days after which messages need to be cleaned up. In the PreferenceActivity I'd like the user to see:  "Discard old messages" <- title  "Clean up messages after x days" <-  where x is the current Preference value   Extra credit: make this reusable, so I can easily apply it to all my preferences regardless of their type (so that it work with EditTextPreference, ListPreference etc. with minimal amount of coding).


Developer script exception from Nicomatic : quotepotential :   quotepotential: execution of AfterUpdate caused by:   System.DmlException: Update failed. First exception on row 0 with id   a0Q90000005Q9RWEA0; first error: UNABLE_TO_LOCK_ROW, unable to obtain   exclusive access to this record: [] Trigger.quotepotential: line 17,   column 1      caused by: System.DmlException: Update failed. First exception on row   0 with id a0Q90000005Q9RWEA0; first error: UNABLE_TO_LOCK_ROW, unable   to obtain exclusive access to this record: []      Trigger.quotepotential: line 17, column 1   this is my Trigger:  trigger quotepotential on Quote_Line_Item__c (after insert,after update) {     Set<Id> quoteIds = new Set<Id>();     List<Quote__c> quotes = new List<Quote__c>();     for(Quote_Line_Item__c record: Trigger.new) {     if (record.Quote1__c != null){         quoteIds.add(record.Quote1__c);     }     }     for(AggregateResult ar:[SELECT Quote1__c , SUM(Max_Batch__c)sumMax FROM Quote_Line_Item__c WHERE Quote1__c IN :quoteIds GROUP BY Quote1__c]) {       Quote__C qu=new quote__c();       qu.id=(Id)ar.get('Quote1__c');       qu.Potential__c=(Decimal)ar.get('sumMax');        quotes.add(qu);  } if(quotes.isempty() == false)     {   update quotes;   } }   we have one more button in quote email template at the time click this button i am getting exception to my mail.  the function of quote email template it will send the quote pdf into email which sending to other user  I have used the future method but i am not getting the value  hi this is the old trigger  i am sending you   trigger quotepotential on Quote_Line_Item__c (after insert,after update) { Set<Id> quoteIds = new Set<Id>(); List<Quote__c> quotes = new List<Quote__c>(); for(Quote_Line_Item__c record: Trigger.new) { if (record.Quote1__c != null){ quoteIds.add(record.Quote1__c); } } for(AggregateResult ar:[SELECT Quote1__c , SUM(Max_Batch__c)sumMax FROM Quote_Line_Item__c WHERE Quote1__c IN :quoteIds GROUP BY Quote1__c]) { Quote__C qu=new quote__c(); qu.id=(Id)ar.get('Quote1__c'); qu.Potential__c=(Decimal)ar.get('sumMax'); quotes.add(qu); } if(quotes.isempty() == false) { update quotes; } }   this was the new trigger with future method but not working   trigger quotepotential on Quote_Line_Item__c (after insert,after update) { Set<id> uniqueNames=new Set<id>(); for(Quote_Line_Item__c a :Trigger.new) { if(a.IsFutureContext__c) { a.IsFutureContext__c = true; } else { uniqueNames.add(a.id); } } if(!uniqueNames.isEmpty()) asyncApex.processAccounts(uniqueNames); }   global class asyncApex { @future public static void processAccounts(set<id> id) { Set<Id> quoteIds = new Set<Id>(); List<Quote__c> quotes = new List<Quote__c>(); for (Quote_line_item__c a : [Select Id, Name, IsFutureContext__c From Quote_line_item__c where ID IN :ID]) { a.IsFutureContext__c = true; if (a.Quote1__c != null){ quoteIds.add(a.Quote1__c); } for(AggregateResult ar:[SELECT Quote1__c , SUM(Max_Batch__c)sumMax FROM Quote_Line_Item__c WHERE Quote1__c IN :quoteIds GROUP BY Quote1__c]) { Quote__C qu=new quote__c(); qu.id=(Id)ar.get('Quote1__c'); qu.Potential__c=(Decimal)ar.get('sumMax'); quotes.add(qu); } if(quotes.isempty() == false) { update quotes; } } } }   can you correct this one .

Error Message:     Developer script exception from Nicomatic : quotepotential :   quotepotential: execution of AfterUpdate caused by:   System.DmlException: Update failed. First exception on row 0 with id   a0Q90000005PoxtEAC; first error: UNABLE_TO_LOCK_ROW, unable to obtain   exclusive access to this record: [] Trigger.quotepotential: line 14,   column 1      Apex script unhandled trigger exception by user/organization:   00590000001A6jh/00D90000000bovq      quotepotential: execution of AfterUpdate      caused by: System.DmlException: Update failed. First exception on row   0 with id a0Q90000005PoxtEAC; first error: UNABLE_TO_LOCK_ROW, unable   to obtain exclusive access to this record: []      Trigger.quotepotential: line 14, column 1   these mails are getting to my mail..........  trigger quotepotential on Quote_Line_Item__c (after insert,after update) {     Set<Id> quoteIds = new Set<Id>();     List<Quote__c> quotes = new List<Quote__c>();     for (Quote_Line_Item__c record: Trigger.new) {         if (record.Quote1__c != null){             quoteIds.add(record.Quote1__c);         }     }     for(AggregateResult ar:[                 SELECT                      Quote1__c,                      SUM(Max_Batch__c)sumMax                  FROM Quote_Line_Item__c                  WHERE Quote1__c=:quoteIds                  GROUP BY Quote1__c                 ]) {          quotes.add(new Quote__c(              Id=(Id) ar.get('Quote1__c'),              Potential__c = (Decimal) ar.get('sumMax')              ));     }     if (quotes.isempty() == false) {         update quotes;     } }


I have Toshiba Encore 8 tabled. I have    enabled  with netplwiz made sure that in screen saver settings "On resume display logon screen" is NOT checked Disabled lock screen as shown in    Still, when the tablet is left unattended for long time, whenever I start using it I see same old lock screen. I can't be bothered entering the password so I just hit the restart button, but it means that I need to wait while it restarts.  Is there a way to completely get rid of this annoying screen?  Note, that I log into the tablet with microsoft account, not a local one, so setting the password to be simple or empty is not an option. And entering all these both cases, numbers and special characters all the time is just too tedious, especially for kids.

So I took a plunge and installed Windows 8 Consumer Preview on my main home PC. So far so good, but there is one annoyance - the system "locks" the computer after a period of inactivity causing me to re-enter my password.  I really would like to avoid this, but have no idea how. I already tried the power settings (no pass on wake up) and the screen saver settings with no luck. Is this some sort of bug, or am I missing something?  P.S. In this case I favor convenience over security.


I have installed Ubuntu to a 256GB SSD card. My computer has 1TB HDD card. After installing Ubuntu 19.04, the 256GB SSD card is showing but the 1TB HDD card is not showing. Could you help me to fix this problem?

New Ubuntu user here... I have Ubuntu on my 250GB SSD and I have another 500GB on my laptop that Ubuntu can't find. I'm not sure where or how to start finding it.


The last sentence of the section "Types and existence of ultrafilters" of  () says:  In ZF without the axiom of choice, it is possible that every ultrafilter is principal.{see p.316, [Halbeisen, L.J.] "Combinatorial Set Theory", Springer 2012}  This statement is incorrect isn't it? Shouldn't "ultrafilter" here be replaced by "ultrafilter on $\mathscr{P}(\omega)$ (the power set of the set of natural numbers)"? I think that for some Boolean algebras, one can show the existence of a nonprincipal ultrafilter without assuming the axiom of choice (or the ultrafilter lemma or the Boolean prime ideal theorem). Let $B$ be the set of all finite and cofinite subsets of the set of natural numbers, and let $U$ be the set of all cofinite subsets of the set of natural numbers. Then $U$ is a nonprincipal ultrafilter on the Boolean algebra $B$, isn't it? I would also like to ask the following more general question: for what kind of Boolean algebra, can one show the existence of a nonprincipal ultrafilter without assuming some choice? EDIT: I am not asking whether there is an infinite Boolean algebra with a unique ultrafilter (unless "nonprincipal ultrafilter that can be found without choice" and "unique filter" should mean the same thing, which I fail to see). I am first asking whether my example is a counterexample to the statement from Wikipedia. Assuming that I am right about this first point, I am then asking in what cases you can find nonprincipal ultrafilters without using choice. I actually don't know what $\mathcal{P}(\omega)/\text{fin}$ denotes in the suggested question. In any case, the answer given there is only an example and cannot be an answer to my question. I would appreciate if you could explain how my question is a duplicate or reopen my question so that people could provide answers that I would be able to understand.

ZFC proves every infinite Boolean algebra has infinitely many ultrafilters. If every ultrafilter over $\omega$ is principal, then $\mathcal{P}(\omega)/\mathrm{fin}$ has no ultrafilter.  Is it consistent with ZF that there is an infinite Boolean algebra with a unique ultrafilter? Thanks for any help.


Let $U_n$ be $U(\Bbb Z_n)$,  the multiplicative group of integers modulo $n$.  Given such group and also we know it is a cyclic group the question is:     How many generators does it have?

I need to find how many generators has a cyclic group $G=<g>$ of order $n$. I know that I have to prove that if $G$ is a cyclic group with order $n$, then the number of generators of $G$ is $\phi(n)$. But I don't know how can I prove that.  I already know that $<g^k>=<g^{gcd(k,n)}>$, so the generators of $G$ will be $g^k$ where $gcd(k,n)=1$


My website is in Swedish and i will write about different kind of topics. In sweden we have these kind of characters too ö, ä & å.  I have created a page where i will show only CPT posts that start with character A. The problem that i am now getting is that  When showing posts that start with Ä then it also shows posts starting with A & Å. Same thing if i for example want to show posts starting with O then it shows posts starting with Ö also.  How do i go about to filter out right.    Here is my code      <?php //get all post IDs for posts start with letter A, in title order, //display posts global $wpdb; $char_a = 'A';   $postids = $wpdb->get_col($wpdb->prepare(" SELECT      ID FROM        $wpdb->posts WHERE       SUBSTR($wpdb->posts.post_title,1,1) = %s ORDER BY    $wpdb->posts.post_title",$char_a));   if ($postids) { $args=array(   'post__in' => $postids,   'post_type' => 'encyklopedi',   'post_status' => 'publish',   'posts_per_page' => -1,   // 'caller_get_posts'=> 1 ); $my_query = null; $my_query = new WP_Query($args); if( $my_query->have_posts() ) {  // echo 'List of Posts Titles beginning with the letter '. $char_a;   while ($my_query->have_posts()) : $my_query->the_post(); ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent   Link to <?php the_title_attribute(); ?>"><?php the_title(); ?>
 <?php endwhile; } else { ?>
<?php _e( 'Kunde inte hitta några inlägg som börjar med A...' ); ?>
 <?php } wp_reset_query(); } ?>   Is it maybe only something that i should do in $char_a = 'Here'; or maybe something in functions too ?

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 have participated in a challenge, in which the requirement is to compare two time values t1 and t2, and print First if t1 occurs before t2 ; otherwise, print Second.  And, t1 != t2.  Sample Input:  2 10:19PM 02:49AM 08:49AM 09:10AM   Sample Output:  Second First   My code:  import java.util.*;  public class Solution {      static String timeCompare(String t1, String t2){         // Complete this function          String half1 = t1.substring(t1.length()-2); // gets AM/PM value         String half2 = t2.substring(t2.length()-2);          String time1 = t1.substring(0, t1.length()-2);         String time2 = t2.substring(0, t2.length()-2);          //System.out.println(time1);          int hour1 = Integer.parseInt(time1.split(":")[0]);         int hour2 = Integer.parseInt(time2.split(":")[0]);          int min1 = Integer.parseInt(time1.split(":")[1]);         int min2 = Integer.parseInt(time2.split(":")[1]);          if(hour1 == 12) {             hour1 = 0;             //System.out.println(hour1);;         }         if(hour2 == 12) {             hour2 = 0;         }          //System.out.println(hour1+" , "+hour2);          if(half1.equals(half2)){            // System.out.println(1);              if(hour1 == hour2){                  if(min1 > min2){                     return "Second";                 }                  else{                     return "First";                 }              }             else if(hour1 > hour2){                 return "Second";             }             else{                 //System.out.println(2);                  return "First";             }          }         else if (half1 == "AM"){             return "First";         }         else{             return "Second";         }      }      public static void main(String[] args) {         Scanner in = new Scanner(System.in);         int q = in.nextInt();         for(int a0 = 0; a0 < q; a0++){             String t1 = in.next();             String t2 = in.next();             String result = timeCompare(t1, t2);             System.out.println(result);         }     } }   I am not sure what am I doing wrong. But only 1 out of 10 test cases passed.  Can you tell what's wrong?

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


I'm grabbing the current win7 username which is rsmith but my if statement below displays: 0000 rsmith 2222 rsmith  Why doesn't my if == line work as expected? The userName IS rsmith          String userName = System.getProperty("user.name");         System.out.println("0000 " + userName + "\n");         if (userName == "rsmith"){             System.out.println("1111 " + userName + "\n");         }         else {             System.out.println("2222 " + userName + "\n");         }


The title says it all...  I couldn't be able to find a good tutorial or an example showing how to do it.  Do you have any brilliant suggestions?

There are a few question/answers regarding the embedding movies in PDF with pdflatex and special packages. However I find the information dispersed all around and confusing. And so far, in the best cases I get a "3D rendering error in Acrobat Reader" and I don't know what step is failing.  Maybe this particular case serves as guide for a step by step explanation:   pdfTeX 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian), Acrobat Reader 9.5.1, Linux (Ubuntu 12.04). Need to upgrade something?      Let's start with a movie file: movie.avi with FFmpeg MPEG-4 encoding. Does it need to be encoded in some other way? what is the best tool to reencode? what encodings are going to work? Is a conversion to flv format really necessary? pdflatex: what packages need to be included, media9, movie15 (obsolete?), flashmovie?  what is the latex command to include the movie? Can one have the option to keep the file inside the PDF or external? How does one get the playback controls rendered with the movie inside the page? Does one really have to use a third party flash-based movie player? If so which player works with Acrobat 9.5.1? Can I expect the movie to be player inside the PDF page in the monitor? Can one expect to have a preview of the movie (first frame) in the static rendering of the page. Can one expect the resulting PDF and embedded movie to work when switching to Windows/Linux/OSX? Does one need to change (hidden?) security preferences in Acrobat to see the movie?   A solution compatible with beamer is also desirable.


A lot of analysis theorems admit for hypothesis locally lipschitz functions. I am wondering how to imagine those functions except as continuous ones. I can only see the Weierstrass function or other "fractal" functions  as examples, but is there any simpler example (even in higher dimensional spaces, with more complicated metrics) that could be found in real problems (optimization,  statistics, or PDE for instance) ?

Let $A$ be open in $\mathbb{R}^m$; let $g:A\rightarrow\mathbb{R}^n$. If $S\subseteq A$, we say that $S$ satisfies the Lipschitz condition on $S$ if the function $\lambda(x,y)=|g(x)-g(y)|/|x-y|$ is bounded for $x\neq y\in S$. We say that $g$ is locally Lipschitz if each point of $A$ has a neighborhood on which $g$ satisfies the Lipschitz condition. Show that if $g$ is locally Lipschitz, then $g$ is continuous. Does the converse hold?  For the first part, suppose $g$ is locally Lipschitz. So for each point $r\in A$, there exists a neighborhood for which $|g(x)-g(y)|/|x-y|$ is bounded. Suppose $|g(x)-g(y)|/|x-y|<M$ in that neighborhood. Then $|g(x)-g(r)|<M|x-r|$ in that neighborhood of $r$. Therefore $g(x)\rightarrow g(r)$ as $x\rightarrow r$, and so $g$ is continuous at $r$. This means $g$ is continuous everywhere in $A$. What about the converse? I don't think it holds, but can't come up with a counterexample.


A lot of cinema industry names end with "wood". For example, , , , , etc.  Is there any reason for this?

As we know, American film industry is referred as Hollywood. The American film industry is called so because the film industry emerged at the place called (Correct me if I am wrong). The place adopted the name Hollywood which is informally known as Tinseltown.  But my question is not about Hollywood but the . This is widely referred as Bollywood.   From the  page of Bollywood:      Bollywood is the sobriquet for India's Hindi language film industry, based in the city of Mumbai, Maharashtra. It is more formally referred to as Hindi cinema. The term "Bollywood" is often used by non-Indians as a synecdoche to refer to the whole of Indian cinema; however, Bollywood proper is only a part of the larger Indian film industry, which includes other production centres producing films in many other Indian languages. There is no place in India called Bollywood like the Hollywood.    Many people prefer calling it as Hindi film industry and against naming film industries with wood. There are other film industries in India too in other languages. Eg: Telugu film industry is named as Tollywood, Tamil industry is named Kollywood etc.,   is the list of Hollywood inspired nicknames.  My question:   Who is the creator of the word Bollywood? Since when did the word become popular?


I am a new Ubuntu user and find some people tell me to use sudo -i to get root and others tell me to use sudo -s. What is the difference? Which one do I use and when?

I already read it from manual but I can't see difference..  su - change user ID or become superuser  sudo -s [command]   The -s (shell) option runs the shell specified by the SHELL environment variable if it is set or the shell as specified in passwd(5).  If a                    command is specified, it is passed to the shell for execution.  Otherwise, an interactive shell is executed.  sudo -i disappear description in manual


We have a php/js (with jQuery, jqgrid jQueryUi) webapplication  which works fine in Firefox, Chrome and Edge. However, in Internet Explorer 11 some buttons are not working anymore. Looking into the problem, i found out that if i allow "active scripting" in internet options for the internet zone, everything works fine. However, the webapp was already listed in trusted sites for which active scripting had been allowed all the time. The trusted sites setting for active scripting also seems to be working for some javascript. Since it is not possible to instruct our customers to set their internet zone to allow scripting or to change the browser, i am currently trying to figure out the exact problem by setting "active scripting" to "ask" and making minimal changes to our website. I really think there should be a solution since the problem does not appear to appear on all buttons and js calls. I also tried to find a solution online and there indeed are other users with similar problems, but they have all different circumstances which do not fully apply to my problem. In our case some js works and only some onclick events do not work. It is also not a problem in the js code itself because i also tried inserting an alert() or console.log into the onclick but they did also not work. Even leaving the onclick blank did not change anything. Only when i remove the onclick event completely, i don't get a warning about running scripts. It seems that it also doesn't relate to the element the onclick is in because it seems to affect <input> as well as  and other elements. Example elements without working onclick: <input type="button" value="Cancel" style="width:150px;" onclick="onClickProgressCancel(this);">   Element with working onclick:  Export   The only thing that seems to have an effect is to remove the onclick and set a click handler with jQuery. I could not yet try it out completely but at least i got no script warning when doing that. However, i think that this is not a solution which i could apply to the whole webapplication. Is there anything else i could try out to find the "real" problem or maybe even a solution which does not require completely changing our webapplication? == Update 02.07.2020 == I found out that it appears to happen with elements that are inserted into the page after the page was loaded. E.g. with the following code: oEleProgress = $( '<input type="button" value="Cancel" style="width:150px;" onclick="onClickProgressCancel(this);" />';).appendTo( 'body' );

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.


sudo apt upgrade command is not working for Ubuntu 16.04 LTS even after sudo apt update command runs successfully. I've recently installed Ubuntu.

When I check for updates, I get a "Failed To Download Repository Information" error.   This is what comes up under details:   W: Failed to fetch gzip:/var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_natty_main_source_Sources  Hash Sum mismatch,  E: Some index files failed to download. They have been ignored, or old ones used instead.


An elementary way to prove that $\sqrt{2}+\sqrt{3}$ is irrational?   Disclaimer: I know about the rational root theorem. I am trying to answer it without using it.   I did the following:  $$\sqrt{2}+\sqrt{3}=\frac{a}{b}$$   $$5+2\sqrt{6}=\frac{a^2}{b^2}$$  $$24=\frac{a^4}{b^4}-10\frac{a^2}{b^2} + 25$$  $$\frac{a^2}{b^2}\left(10-\frac{a^2}{b^2} \right)= 1$$  At this point, I am a bit confused. I thought about this: If $A=\frac{a^2}{b^2}$ then $A^{-1}=\left(10-\frac{a^2}{b^2} \right)$ and then:  $$AA^{-1}=A\left(10-A \right)=10A-A^2=1\tag{$\star$}$$  This is a polynomial with roots: $A=5\pm 2\sqrt{6}$ which means that:  $$\frac{a^2}{b^2}=5\pm 2\sqrt{6}$$  $$\frac{a^2}{2b^2}-\frac{5}{2}=\pm \sqrt{6}$$  As $\frac{a^2}{2b^2}-\frac{5}{2}$ is rational and $\sqrt{6}$ is irrational, then we obtain a contradiction. Is this correct?

This is from Spivak.  Prove that $\sqrt{2}+\sqrt{3}$ is irrational.  So far, I have this:  If $\sqrt{2}+\sqrt{3}$ is rational, then it can be written as $\frac{p}{q}$ with integral $p, q$ and in lowest terms.   $$\sqrt{2}+\sqrt{3}=\frac{p}{q}$$ $$2\sqrt{6}+5 =\frac{p^2}{q^2}$$ $$(2\sqrt{6}+5)q^2=p^2$$  And that's about where I get stuck. In a similar question (prove that $\sqrt{2}+\sqrt{6}$ is irrational,) I was able to show that both $p,q$ had to be even which is impossible. I obviously can't apply this trick here. Any hints?


When I need to work out how to get from an airport to a city I'm visiting, my first port of call is normally . Unfortunately, in the case of , the article is (currently...) a bit vague on public transport from the airport to the city, especially on how late things might stop.   When arriving mid evening into Denver International Airport, is it possible to get to the city centre (say, around the 16th Street Mall at Lawrence Street) by public transport? Ideally direct to around there, or failing that with minimal transfers?  (We've a , but that's for a different area in the city)

I know there is a public bus from the Denver International Airport to the Market street. I tried to figure out the schedule, but was not able to find it. Does anyone know where I can find it?  Is this a good (decent) option for getting to the city of Denver from the airport?


$$ Prove: var(X) = \frac{1-p}{p^2} $$ I solved for $$E[X^2]-E[X]^2$$ I did the following for $E(X)$ $$ E(X) = (\frac{1}{p}) $$ I did the following for $E(X^2)$ $$E(X^2)=\sum^\infty_n n^2p(1-p)^n$$ $$E(X^2)=p\sum^\infty_n n^2(1-p)^n$$ $$E(X^2)=p\left(\frac{p^2-3 p+2}{p^3}\right)$$ $$E(X^2)=\frac{p^2-3 p+2}{p^2}$$ I don't know where I make a mistake but when I solve it I end up with this instead: $$ V(X) = (\frac{p^2-5p+2p+1}{p^2}) $$ Where did I go wrong?

I have a Geometric Distribution, where the stochastic variable $X$ represents the number of failures before the first success.  The distribution function is $P(X=x) = q^x p$ for $x=0,1,2,\ldots$ and $q = 1-p$.  Now, I know the definition of the expected value is: $E[X] = \sum_{i}{x_i p_i}$  So, I proved the expected value of the Geometric Distribution like this:  $E[X]=\sum _{ i=0 }^{ \infty  }{ iP(X=i) } = \sum _{i=0}^{\infty}{i q^i p} = p\sum _{i=0}^{\infty}{i q^i} = pq \sum _{i=0}^{\infty}{iq^{i-1}}$  $\qquad = pq \sum _{i=0}^{\infty}{\frac{d}{dq}q^i} = pq \frac{d}{dq}(\sum _{i=0}^{\infty}{q^i}) = pq \frac{d}{dq}(\frac{1}{1-q})$  $\qquad = pq \frac{1}{(1-q)^2} = \frac{pq}{p^2} = \frac{q}{p}$  So now, I would like to prove that $Var[X] = \frac{q}{p^2}$. I know I have to use a simular trick as above (with the derivation).  $Var[X] = E[X^2] - E[X]^2 = \sum _{i=0}^{\infty}{i^2 q^i p} - (\frac{q}{p})^2 = p \sum _{i=0}^{\infty}{i^2 q^i} - (\frac{q}{p})^2 = pq \sum _{i=0}^{\infty}{i^2 q^{i-1}} - (\frac{q}{p})^2$  $\qquad = pq \sum _{i=0}^{\infty}{\frac{d}{dq}i q^i} - (\frac{q}{p})^2 = pq \frac{d}{dq} \sum _{i=0}^{\infty}{iq^i}-(\frac{q}{p})^2$  Then I'm stuck. How can I get another $q$ out of the sum? Won't it mess up the first derivation?


I have two Jquery functions where one will insert a new dynamic row to a form on a button click and other function will validate the cell in that row.  var currentItem = 11; $('#addnew').click(function(){   currentItem++;   $('#items').val(currentItem);   var strToAdd = '
<select class="form-control select2 productSelect" name="product'+currentItem+'" id="product'+currentItem+'" style="width: 100%"> <option disabled selected value> -- select a Product -- </option>'+ <?php foreach ($productData as $product) { echo "'<option value=" . $product->product_id . ">" . $product->product_name . "</option>'+";}?> '</select> 	<input class="form-control quantitySelect" name="quantity'+currentItem+'" id ="quantity'+currentItem+'"type="text" />	<input class="form-control"  name="freeIssue'+currentItem+'" id="freeIssue'+currentItem+'" type="text" />	 <button  class="btn btn-danger" name="close" id="close" onclick="SomeDeleteRowFunction(this)"></button>
';    $('#data').append(strToAdd);   });   Here I take the class name productSelect as the identifier for the second function to make validation. But it didn't recognize the class and  the validation is not working for the rows which I add to the form by the above function.    $('.productSelect').change(function () {    var elementID = $(this).attr("id");   var numberPart = elementID.split("t", 2);    if ($(this).val() != null ) {     $('#quantity'+ numberPart[1]).prop('required',true);   } });   This is how the entire code looks like


I have a long list of numbers where need to quote each number, but I am not sure how to put together a reqex to do it.  I have a list like this  6240, 6261, 6270, 6280, 6510   Which I want to look like this  "6240",1,"6261",1,"6270",1,"6280",1,"6510"   to be able to import it correctly in another tool.  regex is my Nemesis :-)

I don't really understand regular expressions.  Can you explain them to me in an easy-to-follow manner?  If there are any online tools or books, could you also link to them?


Let's say a train of length $L$ (wrt ground) is standing on rails which have markings for every femtometre (or even smaller units). Now if someone takes a photograph and measures the distance between the two tips of the train with the help of the markings on the rail, he will measure it as $L$. say the train acquires a constant speed and continues travelling in the same direction. Now if someone takes a photograph of the train and measures the said distance in the said way, will the result be different from $L$?

Suppose one inertial observer measures a rod at rest w.r.t. him and another observer is moving w.r.t. rod. We then say that length will be shorter for moving observer but at the instants the first observer is measuring the length, the second observer doesn't even get the length of the rod, he just gets distance between two points in space after Lorentz Transformations because simultaneity is a relative concept. So how is it a length contraction in literal sense? Isn't it a misnomer ?


I'm developing a simple module with and admin page, where admin can fill some textfields with custom strings that will generates a piece of html to be used later.  So for example I have fields like this in admin page:  function MYMODULE_admin_page_arguments() {   $form = array();    $form['MYMODULE_link'] = array(     '#type' => 'textfield',     '#title' => t('Conditions link path'),     '#default_value' => variable_get('MYMODULE_link', 'conditions'),   );   $form['MYMODULE_link_text'] = array(     '#type' => 'textfield',     '#title' => t('Conditions link text'),     '#default_value' => variable_get('MYMODULE_link_text', 'conditions'),   );   $form['MYMODULE_link_target'] = array(     '#type' => 'textfield',     '#title' => t('Conditions link target'),     '#default_value' => variable_get('MYMODULE_link_target', '_blank'),   );   $form['MYMODULE_prefix'] = array(     '#type' => 'textfield',     '#title' => t('Conditions link prefix text'),     '#default_value' => variable_get('MYMODULE_prefix', 'I agree to the '),   );   $form['MYMODULE_suffix'] = array(     '#type' => 'textfield',     '#title' => t('Conditions link suffix text'),     '#default_value' => variable_get('MYMODULE_suffix', '.'),   );    return system_settings_form($form); }   Then the above values are managed after by my module to compose an output like:  // Create label $prefix = variable_get('MYMODULE_prefix', 'I agree to the '); $suffix = variable_get('MYMODULE_suffix', '.'); $path = variable_get('MYMODULE_link', 'conditions'); $text = variable_get('MYMODULE_link_text', 'conditions'); $target = variable_get('MYMODULE_link_target', '_blank');  $label = $prefix . l($text, $path, array('attributes' => array('target' => $target))) . $suffix;   Now I need that all these values are available for string translation, so the first think I thought was to pass all of them through t(), for example:  $label = t($prefix) . l(t($text), $path, array('attributes' => array('target' => $target))) . t($suffix);   but I read here  that I should never pass variables directly to t(), so for e.g t($prefix) is a bad stuff.  So, what is the correct Drupal way to accomplish this?

I have a custom module I've built which essentially acts as a repository of custom CTools keywords that users can arbitrarily define. The issue I'm facing is I need to be able to translate these user-defined strings, so I think I need to implement string translation using the i18n_string module.  I have never worked with translation or localization before, so I'm a bit lost with regards to going about how to implement this. I think I'm on the right path with i18n_string though. Can someone experienced with i18n provide examples that I can look at so I can learn the proper way to implement this?


This is more of a curiosity that I've been asking myself lately, and I thought to ask it here. So, what can someone there's not a mathematician do, if he has discovered something ground breaking. I assume, that he wouldn't be taken seriously by the mathematical community, if he found a way to publish his discoveries.

I'm a computer science student who is a maths hobbyist. I'm convinced that I've proven a major conjecture. The problem lies in that I've never published anything before and am not a mathematician by profession. Knowing full well that my proof may be fallacious, erroneous, or simply lacking mathematical formality, what advice would you give me?


TLDR   Is  the best indication of Harry's wealth according to our/wizard standards? Is his wealth ever mentioned again after the first book?   I missed the first movie in the Harry Potter marathon running today, but if I remember right the book and the film both had a scene where Harry Potter is confirmed to be "wealthy."  I found this  while trying to see how rich he is. Within it makes it sound as though the business connections were routinely sold off until Harry's father inherited a Scrooge McDuck bank pile of money and left it to Harry upon his death.  According to  (same link as above) Harry's wealth may not be "that" much, though it does not calculate all the pieces or the assets in his name either. Is there any better indication other than this link?

So, we know Harry . By descriptions from the books, it looks like he had enough money to spend during his school years with plenty to spare for later life.  Is there an estimate on how much money he had? How much would that be in muggle money? Was he extremely rich?  I'm thinking here that he could have received more than just an inheritance. For example, anonymous supporters could have given him money through the bank while he was a baby, or when he was about to go to Hogwarts, and he wouldn't have known (not even Dumbledore would have known).


A wave is blue-shifted by the doppler effect.  This increases it's frequency, so this should also increase it's energy as per the equation E = hv ?  Therefore does the wave increase in energy from the doppler effect, and if so is it proportionate to the velocity which causes the doppler shift in the first place?

From what I understand, the frequency of light coming from the source moving towards an observer increases. From $ E=hv $ , this implies increase in energy of photon.  What really is confusing, is where does that extra energy come from? And also where is the energy is lost during opposite Doppler effect (red shift)? Why doesn't this violate the conservation of energy?


In Python, x is y returns true if the two sides evaluate to the same object; that is, it checks pointer equality. Now I tried something like this:    >>>a = 2   >>>a is 2   True     However..    >>>a = 9203409249024   >>>a is 9203409249024   False   Why this difference in behavior?

Why does the following behave unexpectedly in Python?  >>> a = 256 >>> b = 256 >>> a is b True           # This is an expected result >>> a = 257 >>> b = 257 >>> a is b False          # What happened here? Why is this False? >>> 257 is 257 True           # Yet the literal numbers compare properly   I am using Python 2.5.2. Trying some different versions of Python, it appears that Python 2.3.3 shows the above behaviour between 99 and 100.  Based on the above, I can hypothesize that Python is internally implemented such that "small" integers are stored in a different way than larger integers and the is operator can tell the difference. Why the leaky abstraction? What is a better way of comparing two arbitrary objects to see whether they are the same when I don't know in advance whether they are numbers or not?


I'm a bit confused about writing the correct sentence:   It is we whose flat was robbed. It is us whose flat was robbed.   The context is this, A family was robbed and they are in a police department waiting when the police officer calls, "Who's here about the robbery?"  What bothers me is that both sound okay with whose but I somehow feel that "we" is incorrect although it corresponds to "whose" much better than "us".   It is we whose flat was robbed. - We are the family whose flat was robbed.   Here are examples from google search:   Or maybe it's we whose lives are impoverished. Before we parted ways, Philip told me he'd very much like to have a wife just like me someday ... () It's we whose eyes can fill with tears, We yet can be aggrieved. We're prone to all our human fears; It's we who feel bereaved. () It's we, whose destiny it is to serve others, who are There were shouts, a confusion of commands and of hands of their filthy wishes. () But it's we whose meager earnings are at stake that get caught. I call it an outrage." Miss White snapped on the radio, tuned in on Babson's reports, and went on: ... ()   and   It is us whose flat was robbed. - It is us, the family, whose flat was robbed.   Here are examples from google search:   “Our guys know that going over there it's us whose back is up against the wall because I give Westfield a lot of the advantages..." () It's us that he 'walks with purpose' towards and it's us whose senses he 'overwhelms with his passion'. Ergo, the many thousands of female authors with... () It's us whose freedoms are at risk. And it's MPs who retire on a generous, safe pension. Most politicians are not venal - and we need them. ()   I'm unsure whether a comma is needed after "it's we/us"!  Edit: In all your duplicates it's who/whom which does differ from whose. Not one of your duplicates explains the pronoun to use with "whose".

It was ... salted the earth around your flower deck.    I wrote the second form "It was me". I have chosen the most "appropriate" answer to this question as somebody who is learning English.  This decision was made on a phonetic basis so it's for sure I made a mistake.   Surely you have a rational explanation to this exercise, maybe a grammar rule, or is it an English expression?


I have a Galaxy S9 that I will send to Samsung in a couple of days for the trade-in program and I want to delete everything on it in a way that it cannot be recovered even after a factory reset. From my limited research, there are people who recommend encrypting the phone before doing the reset as this will ensure the data is just noise and unreadable after the reset. But there is no option on my S9 to encrypt the phone as I saw on the youtube videos, and after a quick search I found out that S9's are encrypted by default. So is it safe to just factory reset it since it's encrypted by default anyway? I'm not that good when it comes to tech and stuff, what would you guys recommend I do? Thanks for the response.

I will have a few Android phones that I will have to let go.   I would like to make a proper clean wipe of the data, without no one being able to retrieve them, and do a factory reset.  I have read about the , encrypting the device before doing a factory reset, doing both, etc.  Since I am not an Android/adb guru, I would like to know if some of you would have some idea on how to achieve this with certainty.  I know "certainty" is a big word when it comes to proper data erasure on flash memory but still.  I have found some answers here and somewhere else, saying that encrypting and doing a factory reset on your Android device is enough, but I could not find a reliable source.  Just a few information that could be useful:   I'm running Linux as my OS and, therefore, I'm not looking for a Windows-based solution My devices are non-rooted and (almost) identical (Samsung A510F + 1 A510FD)


Lesser the distance higher the force of attraction.but why it is the square of distance?And also the reason i guess for this force is the attraction force between atoms ( electrons of one atom and proton of the other) . But when the distance become  lesser and lesser,the repulsive force will overcome the attractive force isnt it?Then wont the attractive force decrease?

It seems paradoxical that the strength of so many phenomena (, ) are calculable by the inverse square of distance.   However, since volume is determined by three dimensions and presumably these phenomena have to travel through all three, how is it possible that their strengths are governed by the inverse of the distance squared?  The gravitational force and intensity of light is merely 4 times weaker at 2 times the distance, but the volume of a sphere between the two is 8 times larger.   Since presumably these phenomena would affect all objects in a spherical shell surrounding the source with equal intensity, they travel in all three dimensions. How come these laws do not obey an inverse-cube relationship while traveling through space?


I've read the comparison between APS-C and Full Format at    The depth of field is controlled by the circle of confusion, which is the area of which light is spread when hitting the image plane. It gets "blurry" once the circle of confusion is bigger than the pixel size.   Now for a Full Format camera the pixels are significantly bigger compared to an APS-C camera (for example D7100 - 3.9um per pixel vs. D600 - around 6um per pixel), so given the same lenses (as in the linked question), I thought the DOF should be shallower for the APS-C instead, since the smaller pixel size allows only a smaller circle of confusion.   So why is it stated differently in the other question?

It has been mentioned at    that a larger sensor results in images with a shallower depth of field. Example image:          I understand how sensor size would relate to, for example, field of view, but the relationship with depth of field does not seem straightforward.  It actually seems contradictory - I have more wells on my sensor, and I am able to focus on less number of points.  What is the reason for this effect?


In Java, how would I convert an entire input file into one String?  In other words, if I have an input file "test.in":  c++ java python test   then I want to create a String containing "c++javapythontest".  I thought of something along the lines of  Scanner input = new Scanner(new File("test.in")); while(input.hasNext()){     String test = test + input.nextLine(); }   but that doesn't seem to work. Is there an efficient way to do this?

I've been using the idiom below for some time now. And it seems to be the most wide-spread, at least on the sites I've visited.  Is there a better/different way to read a file into a string in Java?  private String readFile(String file) throws IOException {     BufferedReader reader = new BufferedReader(new FileReader (file));     String         line = null;     StringBuilder  stringBuilder = new StringBuilder();     String         ls = System.getProperty("line.separator");      try {         while((line = reader.readLine()) != null) {             stringBuilder.append(line);             stringBuilder.append(ls);         }          return stringBuilder.toString();     } finally {         reader.close();     } }


I am currently in an abstract algebra class and my teacher told us to look at the upper triangular matrix, $\left( \begin{array}{ccc} 1&a&b\\0&1&c\\0&0&1 \end{array} \right)$ for $a,b,c\in \mathbb Z / p\mathbb Z$, p being a prime number.   Specifically she posed the questions, prove it is a group, find the order, find the order of the center, and to give a simple description for the isomorphism type of $G/Z(G)$.  I was able to prove that is a group using the normal axioms and was able to prove the order by simply recognizing there are $p$ possibilities for each variable a,b,c so the order was $p^3$.  I am having trouble in establishing which matrices are commutative and would appreciate some guidance in my troubling times.  Thanks!

Let $H(F)$ be the Heisenberg group over the field $F$ introduced in Exercise 11 of Section 1.4. Determine which matrices lie in the center of $H(F)$ and prove that $Z(H(F))$ is isomorphic to the additive group $F$.   Section 1.4 defines the Heisenberg group $H(F)$ over the field $F$ to be the group of all upper-unitriangular $3\times 3$-matrices $\begin{pmatrix} 1 & a & b \\ 0 & 1 & c \\ 0 & 0 & 1 \end{pmatrix}$ with entries in $F$.  When I worked out the elements in the center, I got its elements such that the diagonal was multiplied by a scalar and the element in the first row,third column possibly non-zero. So, you see that my problem was compounded as I just did not see how the center was isomorphic to only F.  Thanks for any help that I might receive.


Is there a Threading module in Python equivalent in PHP? My code in Python would look something like   from Treading import thread  def somefunction():     print("function")  t = Thread(target = somefunction)         t.start()   Is there a way to convert code like this to PHP, if so, how? Thanks.

Is there a realistic way of implementing a multi-threaded model in PHP whether truly, or just simulating it. Some time back it was suggested that you could force the operating system to load another instance of the PHP executable and handle other simultaneous processes.  The problem with this is that when the PHP code finished executing the PHP instance remains in memory because there is no way to kill it from within PHP.  So if you are simulating several threads you can imagine whats going to happen.  So I am still looking for a way multi-threading can be done or simulated effectively from within PHP. Any ideas?


I get notified by email about new answers to and comments on questions posted by me, as well as about comments on my answers.  Is it possible for me to be notified by email about new answers to and comments on questions bookmarked by me? Could that be made an option for me?  I am aware of  (of 2010):  When you mark a question as a favourite (by clicking the star below the votes-buttons) you will see new answers and comments when you click on the envelope and go to the [favorites] tab. The automatic notification (highlighting the envelope) is a bit buggy though, so you may have to manually select "today" or "this week" to really see all that happened.  However, now, when I click on the envelope, I don't even see a [favorites] tab, nor do I see selections "today" or "this week". Edit: I appreciate the answer by user1271772 and a (now deleted) comment by another user informing me about the rather new Follow feature, which is certainly helpful. However, I'd prefer to get such notifications by email, just as I do concerning new answers to and comments on questions posted by me, as well as comments on my answers. I very rarely remember about, or use, the SE Inbox button.

We are happy to announce that the  follow question and answer feature is now live across the Network, including Stack Overflow, all Stack Exchange sites, and all Meta sites. (International Stack Overflow sites will have it turned on in a day or two once we have translations all set.) You can follow any question or answer (that you did not author) by clicking on the [follow] button that is shown in the menu immediately below the post (alongside the [share] button):    After you have followed a post, you will get inbox notifications for all new answers (in the case where you followed a question), comments, edits, and notices. You will not receive notifications for any action that you performed. As was mentioned in the earlier post, we are not making changes at this point to the notifications received by a post owner, or due to @mentions. The initial release had been planned to only include question following. Thanks to many folks who chipped in over the past few weeks, we are happy to release both question and answer following at the same time. These are available in both the regular and mobile views. We are still planning on two more related releases:  Follows profile tab and question listing filter: A tab for follows will be added to your user profile activity page. Each user will be able to view this tab that will provide a listing of followed questions and answers, with standard sorts, and the ability to unfollow from the listing. Users (with the exception of moderators and authorized staff) will not be able to see this information about other users (nor will it be made public in the API, SEDE, or data dumps). We will be renaming the Favorites feature to Bookmarks. As we mentioned in the preview post, the feature will be the same as Favorites, with the name and icon updated to more accurately represent user expectations and usage. And you will be able to both "bookmark" and "follow" a question.  We hope that this new feature will allow you to have better access to the content that you care about and want to keep tabs on. Update (June 11, 2020): The user profile tab and the rename of Favorites to Bookmarks have been released.


Try to make a sort  by using jquery sort. I would like to sort this li's by first div content(in my example, sort by aaa, bbb, ccc and ddd containing fields). Thanks in advance. Here is my code. Try to use .first() and changing the tags, it all useless( Hope for your help  My code:  function newSort(){     $('#attachedCards ul li').html(         $('#attachedCards ul li').children('div').sort(function (a, b) {            return $(a).text().toUpperCase().localeCompare(                 $(b).text().toUpperCase());         })     ); }   html-structure:

ddd

                 some useless info2

ccc

some useless info1

bbb

some useless info3

aaa

some useless info4

   expected result:   aaa       some useless info4  bbb      some useless info3  ccc       some useless info1  ddd       some useless info2    I have now:

     aaa
     bbb
     ccc
     ddd
     some useless info1
     some useless info2
     some useless info3
     some useless info4

     aaa
     bbb
     ccc
     ddd
     some useless info1
     some useless info2
     some useless info3
     some useless info4

     aaa
     bbb
     ccc
     ddd
     some useless info1
     some useless info2
     some useless info3
     some useless info4

     aaa
     bbb
     ccc
     ddd
     some useless info1
     some useless info2
     some useless info3
     some useless info4

I'm looking for some sample code that will sort the list items in an HTML list by alphabetical order.  Can anyone help?  Here is a sample list for people to work with:

apples

cats

bears


The above link is the image of the question. How do you find the basis for the orthogonal complement of a subspace given the subspace and its basis? We have not learned gram-schmidt yet in class.

Let $W$ be a given subspace of $V$. Find the basis of orthogonal complement $W^{\perp}$.  If $V=R^5$ and $W = lin\lbrace(2,2,-1,0,1),(-1,-1,2,-3,1),(1,1,-2,0,1),(0,0,1,1,1)\rbrace$.  I assume that $W^{\perp}$ will 1 dimensional and I have to find vector that will be orthogonal to all of these four vectors from basis W, but how to find it? Is there a way to do it with Gram-Schmidt method or maybe there is smarter way?


We all carry two copies of each gene (outside of male sex chromosomes).  If the two differ from each other often one is dominant and one recessive.  How does this mechanism work on a molecular level?  What mechanism determines which gene gets expressed?

If I have a brown eye gene which encodes the protein that is responsible for the brown color and have a blue eye gene as well, what is the reason that my eye color is brown? How does one gene maintain dominance over the other?


I am reading ID tags for music files in my program. I am using Taglib sharp for this.  But what I have troubles with is when I'm reading the album-art tag.  I get the album art image just fine. But it's in System.Drawing instead of WPF's System.Windows.Media.Imaging.BitmapImage. And from what I've seen; the "Image" control inside of WPF can't use system.drawing images as a source?  What I've been doing is to save a local image every time I select a new song, and loading Imagebox.Source with a bitmapimage URI of that local image. And I'm actually smart enough to understand that it isn't such a smart solution of the problem.  But how would I set the image without saving it to a file and then opening it again?  Like if there's a similar feature to winforms picturebox.image in WPF?  I hope you all understand what I'm trying to tell you guys.  Thanks in advance.

I have an instance of a System.Drawing.Bitmap and would like to make it available to my WPF app in the form of a System.Windows.Media.Imaging.BitmapImage.  What would be the best approach for this?


I have a document with ascii characters like this:   ~recÛßå  ^ÿìü   P       ` pÀ 0Ðÿp àÀ ```^^ÚÞâ  ^ÿòüü P      ÿ ÿà 0ÿ 0ÿÐ € ```^^ÚÞã     hÿòüü T   etc.  now I want this characters convert into the hexadecimal character like this:   037E038D03720365036301DB01DF01E50012005EFFEC0FFC0000005000000000000000600090027001C0003001D0FF7000E003C00D036003600360035E035E01DA01DE01E20012005EFFF20FFC0FFC0050000000000000FFA0FFE002200130FFA00130FFD0012003800D036003600360035E035E01DA01DE01E300090068FFF20FFC0FFC0054 etc.  My Code:  var byteArray = Encoding.UTF8.GetBytes(inputAscii); var hexchars = ""; var i = 0; while (i != byteArray.Length) {     hexchars += (byteArray[i]).ToString("X2"); }   I also tried var byteArray = Encoding.Default.GetBytes(inputAscii); and Encoding Ascii. Can you help me?

How can you convert a byte array to a hexadecimal string, and vice versa?


How to convert pdf to an open text format in a fast way? i got hundreds of pdfs from my old hd and i'd like to clean them and convert to a safe open format, so i've been scatering internet allover and the only thing i found was an program called pdftotext but i'd like to know if is there any other faster ways, can anyone help me?

I need PDF files to text so I can search over them in bulk from commandline. Is there some converter for Ubuntu, OBSD or similar distro?  Perhaps related post, OCR with ubuntu .


Calculate $$\int\frac{1}{x\sqrt{x^4+x^2+1}}dx.$$ I applied the formula that says : $x^4+x^2+1=(x^2-x+1)(x^2+x+1)$ but I do not think it helps me in some way.

Can you find two functions: $\phi:(0,\infty) \longrightarrow (0,\infty) $, $f:(0,\infty)\longrightarrow \mathbb{R}$, with $\phi$ differentiable, such that $f(\phi(x))\phi'(x)=\frac{1}{x \sqrt{x^4+x^2+1}},\forall x \in \mathbb{R}$? I want to calculate the integral $\int \frac{1}{x \sqrt{x^4+x^2+1}}dx$ without to use a trigonometric substitution, such that the integral reduces to $\int f(t)dt$, which I hope is easier to calculate. I don't want any method which has nothing to do with this form. Thank you!


Can you please help me understand to which noun do it [pronoun] refers to in the below sentences?     He is the murderer. Later it was found he is not.   The it in the second sentence: " Later it...", what does it refers to?

I have a sentence below and some say it means "the Sahara" but I doubt it as it doesn't make sense if it does. Does anyone have any idea about it?      Strange as it may seem, the Sahara was once an expanse of grassland    supported the kind of animal life associated with the African plains.


Are there any rules for the pronunciation of Ch words. In words like, for example, chess, chemistry, school, etc. I want to know when should we pronounce 'ch' as "K' and when this has to be pronounced as "tʃ" as in chess.

Is there a rule to understand how the group "Cha" has to be pronounced?  "Character" sounds with a hard first syllable, while "Charm" sound softer, but I don't find how to tell which sound to use before earing someone saying the word. It could be because of the double consonant "rm" vs "ra"? Or is it just a matter of knowing the rule for every single word?  EDIT: More specifically, let's talk about UK English pronunciation.


I have to prove that there is no group $G$ such that $G/Z(G)$ is isomorphic to $Q_8$.  Anytone can give me an idea to begin? thanks

Let $Q_8$ be the quaternion group. Show that $G/Z$ can never be isomorphic to $Q_8$, where $Z$ is the center of $G$. Hint: if $G/Z\cong Q_8$, show that $G$ has two abelian subgroups of index $2$.  I'm trying to prove the hint by looking at the canonical homomorphism $\pi:G\rightarrow G/Z$. Well, $Q_8$ has some abelian subgroups of index $2$, such as $H=\{1,-1,i,-i\}$, but that doesn't seem to map to abelian subgroups of index $2$ of $G$. (We know that $\pi(ab)=\pi(a)\pi(b)=\pi(b)\pi(a)=\pi(ba)$ for $a,b$ in $\pi^{-1}(H)$, but that only yields $aba^{-1}b^{-1}\in Z$, not $aba^{-1}b^{-1}=1$.)


Is there a command for adding a stress symbol above any arbitrary vowel?  I do not see how this can be the duplicate of the question re how to typeset accented characters, as this one is regarding putting a stress on top of an arbitrary vovel. I should not have to need to worry about whether there is or there is not an accented character out there for any given vowel - if it requires a stress, there should be a way to add it.  Edit  I thought I could achieve this with $\acute{}$ but the accent is being added to the very right top corner of the character instead of the top middle of it.

How to type these special letters from European languages in latex? ä, é, and L'?


I would like to generate a global bibliography with all the cited entries.  Problem: the same document uses also small bibliographies for chapters with refsection. The final \printbiblioraphy does not print anything because all citations are enclosed by refsection.  How to generate the whole bibliography while keeping the partial ones? (i.e. print all references regardless if they are inside a refsection or not)  MWE:  \documentclass{book} \usepackage{biblatex} \addbibresource{biblio.bib}  \begin{document} \chapter{Test Chapter One} \begin{refsection}  \cite{goossens93}, \cite{lamport94}, \cite{rahtz89} \printbibliography[heading=subbibliography] \end{refsection}  \chapter{Test Chapter Two}  \begin{refsection} \cite{greenwade93}, \cite{patashnik88}, \cite{knuth79} \printbibliography[heading=subbibliography] \end{refsection}   \printbibliography[title=The whole bibliography]  \end{document}   biblio.bib  @book{goossens93,     author = "Michel Goossens and Frank Mittlebach and Alexander Samarin",     title = "The Latex Companion A",     year = "1993",     publisher = "Addison-Wesley",     address = "Reading, Massachusetts"  }  @article{greenwade93,      author = "George D. Greenwade",     title = "The {C}omprehensive {T}ex {A}rchive {N}etwork ({CTAN})",     year = "1993",     journal = "TUGBoat",     volume = "14",     number = "3",     pages = "342--351",            url=" www.ctan.org" }  @book{knuth79,     author = "Donald E. Knuth",     title = "Tex and Metafont, New Directions in Typesetting",     year = "1979",     publisher = "American Mathematical Society and Digital Press",     address = "Stanford" }  @book{lamport94,     author = "Leslie Lamport",     title = "Latex: A Document Preparation System",     year = "1994",     edition = "Second",     publisher = "Addison-Wesley",     address = "Reading, Massachusetts" }  @misc{patashnik88,     author = "Oren Patashnik",     title = "{B}ib{T}e{X}ing.  Documentation for General {B}ib{T}e{X} users",     year = "1988",     howpublished = "Electronic document accompanying BibTeX distribution" }  @techreport{rahtz89,     author = "Sebastian Rahtz",     title = "A Survey of {T}ex and graphics",     year = "1989",     institution = "Department of Electronics and Computer Science",     address = "University of Southampton, UK",     number = "CSTR 89-7" }

I am using one .bib files and need to create multiple bibliographies for each chapter + one global one in the end, using biblatex (biber). Everything works smoothly with the multiple bibliographies using refsection, however, I fail to create the global biblio.  I found a very similar problem here:  - however the solution   \nocite{*}   does not work for me as I need only those references cited (my .bib file is very large.  My example:  \usepackage[refsection=chapter, style=authoryear-comp,natbib=false,mcite=false,backend=biber]{biblatex} \addbibresource{refs.bib} \begin{document}  \begin{refsection} blabla \cite{} \printbibliography[heading=subbibintoc] \end{refsection}  % and now the global one that should include all previously cited documents  \printbibliography[heading=bibintoc]  \end{document} \begin{refsection} blabla \cite{} \printbibliography[heading=subbibintoc] \end{refsection}   It does neither produce a global biblio nor an entry in the toc.