How to edit TextView from other class using Handler?
What is a NullPointerException, and how do I fix it?
Is there a difference between Bayesian and Classical sufficiency? The title pretty much says it all. I wonder whether there is any difference in the way Bayesians understand sufficiency vs. the way orthodox statistics understands sufficiency, or are they equivalent?  If there is a difference, what is it? What is the purpose of the three part circuit? I'm studying for my final on introduction to circuits and came across a question about this circuit:  The question is:  Identify and describe the three parts of the circuit used for a measurement system for signal conditioning. Describe the signal conditioning one intends to use the circuit for.  From what I can tell the R1 and R2 resistors are the first part of the circuit used to use a fraction of the incoming voltage. The second part is the voltage follower used to move all of the incoming voltage to another circuit. Lastly there is a low pass filter used to filter off the high frequency voltage. The second question I'm not sure of the answer. Connecting two relative clauses in one sentence I would like to write an essay which gives information about the charts but because I am not native English speaker, when I started to write down my essay I came across the similar problems that I do sometimes.  Here my sentence:  Figure 1 and figure 2 show the percentage of people, WHOSE age is between 25-44 and over 65, WHO purchased concert, cinema and theater tickets online over the first three months of 2006 in three countries, WHICH are Australia, the UK, Malaysia.  Here is my questions:  1.How can I give the information of age and of what do people buy in one sentence?  2.Such vital and important information on the figures can be used as indefinite relative clause? Merging two incoming broadband lines for faster Internet We have a broadband line coming into our building which delivers around 8-10Mbps, which is okay but not great. Fiber is available in our area (30-100Mbps) but it's not available where we are just yet.   Is there some way we could connect two lines (which we would take from two different providers so we would have redundancy if one failed) and merge them into one signal which we could distribute?  Is there some sort of setup that can do this?  Of course we have the option of a leased line but for 12Mbps symmetrical upload/download we'd be looking at around £500 per month compared to £15 per month for normal or fiber broadband.  I made a small pseudo flow chat of the setup below: I have the following query that sort of works, but I find it to be kludgy and inefficient.  Is there a better way to write this query?  I know this is a bit of an odd query, else I would probably have found some advice when searching, but it is necessary for our business logic.  We've been doing this in Hibernate queries and using software to output the file but we're needing to improve performance drastically and that means using raw sql.  The output of this query is to be used to partially populate a helper table that we query to figure out which of our 40-odd product tables a particular item is contained in.  Could the following query be replicated using something like GROUP_CONCAT in reverse? Note that the second and third column must be repeated on each line.  The fields all contain the same type of data.  SELECT 'Pn', 'Mfg', 'TableId', 'SourceColumn', 'OtherData' SELECT PN1, Mfg, '26', 'PN1', OtherData FROM Table  UNION ALL SELECT PN2, Mfg, '26', 'PN2', OtherData FROM Table UNION ALL SELECT PN3, Mfg, '26', 'PN3', OtherData FROM Table UNION ALL SELECT PN4, Mfg, '26', 'PN4', OtherData  INTO OUTFILE 'XXX.dat' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' ESCAPED BY '\\' LINES TERMINATED BY '\n' FROM Table d;   Input looks like the following table:       |  PN1  |  PN2  |  PN3    |  PN4    |  MFG  |  TableId  |  OtherData  |     -----------------------------------------------------------------------     |  asdf |  abde |  12354  |  asdfc  |  2    |  26       |  0.2456     |     |  nupo |  1354 |  null   |  null   |  2    |  26       |  1.53       |     |  ...  |  ...  |  ...    |  ...    |  ...  |  ...      |  ...        |     |  ...  |  ...  |  ...    |  ...    |  ...  |  ...      |  ...        |     |  ...  |  ...  |  ...    |  ...    |  ...  |  ...      |  ...        |   I want the output .dat file to look like this:       "Pn","Mfg","TableId","SourceColumn","OtherData"     "asdf",2,26,"PN1",0.2456     "abde",2,26,"PN2",0.2456     "12354",2,26,"PN3",0.2456     "asdfc",2,26,"PN4",0.2456     "nupo",2,26,"PN1",1.53     "1354",2,26,"PN2",1.53     ...     ...     ...   If I take the INTO OUTFILE clause out, I get an output that looks like this:       |  Pn      |  Mfg     |  TableId    |  SourceColumn  | OtherData  |     -----------------------------------------------------------------     |  "Pn"    |  {blob}  |  "TableId"  |  "PN"          |  {blob}    |     |  "asdf"  |  {blob}  |  "PN1"      |  "PN1"         |  {blob}    |     |  "abde"  |  {blob}  |  "PN2"      |  "PN2"         |  {blob}    |     |  "12354" |  {blob}  |  "PN3"      |  "PN3"         |  {blob}    |     |  "asdfc" |  {blob}  |  "PN4"      |  "PN4"         |  {blob}    |     |  "nupo"  |  {blob}  |  "PN1"      |  "PN1"         |  {blob}    |     |  "1354"  |  {blob}  |  "PN2"      |  "PN2"         |  {blob}    |     |  ...     |  ...     |  ...        |   ...          |   ...      |     |  ...     |  ...     |  ...        |   ...          |   ...      |     |  ...     |  ...     |  ...        |   ...          |   ...      | How to get the CPU cycle count in x86_64 from C++? In my question  I asked about the definition and usage of the word "model", for which I was told the following definition:     A formula of propositional logic is true under an interpretation iff   the interpretation assigns the truth value T to that formula. If a   formula is true under an interpretation, then that interpretation is   called a model of that formula.   An interpetation satisfies a formula φ iff it is a model of the formula. Same for a set $\Gamma$ of formulas, if an interpretation satisfies all the formulas in $\Gamma$ then it is a model of $\Gamma$. Then if we say $\Gamma \vDash \varphi$ then $\varphi$ is a semantic consequence of $\Gamma$ / is satisfied in all "models" of $\Gamma$ (true whenever everything in $\Gamma$ is true).  This also matches the definitions for model as seen on the Wiki for  and .  All good so far. But when I get really confused when I see posts like  where they use "models" as a word meaning "satisfies all the axioms in a theory."  From Asaf's answer:     Models are structures, and structures are models. But when we say   "model" we mean that there is a particular theory which holds in the   structure, and when we say "structure" we are mainly interested in an   arbitrary interpretation of the language.   From Metin's answer:     A structure is a set with some interpretable symbols(constants,   relations and functions) within a fixed language. You do not ask for   more from a structure.      However...      A model (of a theory) is a structure which satisfies the axioms of the   theory. It makes more "structural sense"...   And then from one of Asaf's comments:     When I say "a model of 𝖹𝖥𝖢" they also know, immediately, that I am   talking about a model which satisfies all the axioms of 𝖹𝖥𝖢.   So I am unclear on which definition is correct or if this is the same word being used in two different ways or if this is "logical model" versus "semantic model" or something else entirely.  On the one hand we seem to have "model" meaning "any interpretation that satisfies a formula or set of formulas." On the other hand we have "model" meaning "Interpretation that satisfies all the axioms of a theory".  From the Wiki article on  we see also:     For a given theory in model theory, a structure is called a model, if   it satisfies the defining axioms of that theory.   So which is it exactly? Does "model" have a different meaning in propositional logic compared to model theory or first-order logic or set theory etc? Removing extra page before and after \tableofcontents My main file generate extra page before \tableofcontents with header title "Table of contents". How can I remove this page?  I am copying the main.tex file code for your reference.   \documentclass[twoside,12pt]{Classes/aesm_edspia}  \begin{document} \addtocounter{page}{-1} \makethese  \onehalfspacing \newpage\thispagestyle{empty}\addtocounter{page}{-5}   %depth in the table of contents and section numbering \setcounter{secnumdepth}{3} \setcounter{tocdepth}{3} \frontmatter  \pagestyle{fancy} \fancyhf{} \fancyhead[LE,RO]{Acknowledgements} \fancyfoot[RO]{\thepage} \fancyfoot[LE]{\thepage} \renewcommand{\headrulewidth}{0.5pt} \renewcommand{\footrulewidth}{0pt}  \pagestyle{fancy} \fancyhf{} \fancyhead[LE,RO]{Table of Contents} \fancyfoot[RO]{\thepage} \fancyfoot[LE]{\thepage} \renewcommand{\headrulewidth}{0.5pt} \renewcommand{\footrulewidth}{0pt}  \input{Abstract/Abstract}  \tableofcontents \listoffigures \listoftables   \mainmatter \pagestyle{fancy} \fancyhf{} \fancyhead[LE,RO]{Introduction} \fancyfoot[RO]{\thepage} \fancyfoot[LE]{\thepage} \renewcommand{\headrulewidth}{0.5pt} \renewcommand{\footrulewidth}{0pt}   \end{document} I want to add the Apache user (www-data) to the audio group. I've read the man page for useradd, but I'm not having any luck. I'm running xubuntu 11.10. Here's what I'm doing:  $ sudo useradd -G audio www-data useradd: user 'www-data' already exists   If I leave out the -G option, bash, prints the help info for useradd:  $ sudo useradd  audio www-data Usage: useradd [options] LOGIN Options: -b, --base-dir BASE_DIR       base directory for the home directory...   It's not clear to me from the man page what options I should use to make this work. How to run find -exec? I'd like to find the files in the current directory that contain the text "chrome".  $ find . -exec grep chrome find: missing argument to `-exec'   What am I doing wrong? Calendar.getInstance(TimeZone.getTimeZone("UTC")) is not returning UTC time In the following is it better to use a possessive noun with an apostrophe or an attributive noun without an apostrophe?     The following list details the assumptions that have been made in   conjunction with the Dell Company’s staff.   Or      The following list details the assumptions that have been made in   conjunction with the Dell Company staff.   Assume Company is the name of a company, such as Dell. I have found that for only one page (so far) the spacing between the header and content is different from the spacing on all the other pages. You can see this behavior in the images below (from pages 2 and 3 of the document):     My .tex file contents are shown below.  \documentclass[a4paper]{report} \usepackage{fullpage} \usepackage{lipsum} \usepackage{fancyhdr} \pagestyle{fancy} \setlength{\headsep}{0.5cm}  \begin{document} \renewcommand{\headrulewidth}{0.4pt} \renewcommand{\chaptermark}[1]{\markboth{\thechapter. #1}{}} \fancyhead[L]{\bfseries \leftmark} \fancyhead[R]{\bfseries \rightmark}  \chapter{Version Control} \lipsum \lipsum \lipsum \lipsum  \end{document} Java, Cannot reduce the visibility of the inherited method from object ravel: opposite meanings? I am stuck while calculating the peak current in the boost converter through the inductor.  Can you please check if I am right?  Ipeak=(Max Voltage/ R2) = 18/1000=0.018. So, my peak current through the inductor is just 18mA? Am I doing it correct. If this is correct, how will I account for the Vce drop inside the pin1 and pin2 of the IC. The darlington transistor inside the IC is just like a normal transistor. I have added two transistor outside the IC instead of using the darlington switch in the IC for thermal purposes.   Can you please help me with the calculation of Vswce and Ipeak. The calculation of Vswce is not mentioned in the datasheet. So, please help. And the calculation of Peak current is mentioned in the datasheet. But is my approach of calculating the peak current through the inductor right? Why are p-values uniformly distributed under the null hypothesis? "quite" vs "pretty" What is the difference between quite and pretty in the following context:     The differences between these concepts are quite complicated.   and     The differences between these concepts are pretty complicated. I use wubi to install Ubuntu 10.10 on my ntfs partition. So I want to change the home folder to a folder on the ntfs partition. I could keep the personal configuration, software and so on after reinstalling the Ubuntu.  So I use ntfs-config to manage the disk partition, it's mounted when system is startup. And the permission of all files and directories are 777.  Then I modified the /etc/passwd to set the home folder to the folder on the ntfs partition. I can successfully login the account, however it looks like the .bashrc and .profile are not loaded correctly. I can't use the input method(even can't configure ibus), no sound device. However everything works well after changing the home folder back to /home/.  Could anybody give me a hint to make it work? Thanks. Prove that for any finite sequence of decimal digits, there exists an $n$ such that the decimal expansion of $2^n$ begins with these digits.