Inconsistent UTF-8 encoding error HTML5
UTF-8 all the way through
How do I combine the NBT tags from two separate commands? I have two commands I'd like to combine into one, but I'm not sure how to go about combining them. Is this possible?   Here are the commands. They work individually, I just can't seem to get them to work together:  /give @p jukebox 1 0 {CanPlaceOn:["minecraft:melon_block"]}     /give @p jukebox 1 0 {display:{Name:"Box"}}   Can you help me to add one of the commands to the other one? Print box drawing characters with pdfLaTeX I need to print some unicode characters (of box drawing family) in my document. I found this  that is very similar to mine but is valid only for XeLaTeX. There is a valid way to do this with pdfLaTeX or I have to use XeLaTeX instead? Why does the 'b' in absorb change to a 'p' in absorption? GNOME: disable sleep on lid close Is it possible to stop my laptop going to sleep when I close the lid?  GNOME 3.20, Fedora 24.    My laptop does not reliably wake from sleep.  (It happens to be a hardware issue... I think I basically killed it while trying to replace a wifi card.  But I want to keep using it for a while longer). I'm looking for the noun form of "person with intermediate skill". For example, in the context of a particular activity, "person with no skill" might be designated a novice, and "person with much skill" might be designated an expert. However I know of no such word in between these two extremes.   My only thought is amateur, which has a distinct meaning from describing level of skill, although skill level can often be inferred. I'm looking for a better solution.  EDIT: due to the attention this question has received, I'll try to offer some clarification in order to reduce repeat questions.   "Journeyman" would certainly not work. I am a software developer by profession. However the word I'm looking for should hopefully be profession-agnostic. I am trying to designate the skill level of the person that some learning material might be appropriate for. The word that I'm looking for follows the preposition "for".   For Beginners  For [word for intermediate-skilled person] For Experts  Sorry, but even after all the great answers, I'm still learning towards "amateur" even though it is technically incorrect. Also, the word should not be so esoteric that only people with English degrees know what it means. Keep the ideas coming! Format a number with optional decimal places in Excel I have numbers in cells in Excel. I want the numbers formatted so that if they have decimal places they show to a maximum of two, and if they have no decimal places it doesn't show any.  For example.    15 should be formatted as 15, NOT 15.00 14.3453453 should be formatted as 14.35 12.1 should be formatted as 12.1  0 should be formatted as 0   The closest custom format code I've come up with is 0.##. Unfortunately this formats 15.00 as 15. (note the extra decimal point).  To further complicate the issue, the spreadsheet is a result of an export from SQL Server Reporting Services. So no macros are possible. Oh well, it looks like 0.## is my best bet, and they can just live with the extra period. Return FileName Only when using OpenFileDialog undefined control sequence when using \addchap When I compile my thesis.tex file which is compiled fine including the \addchap, I noticed that I have used \usepackage{unnumberedtotoc}. When I want to use my thesis.tex file on another computer it says tex capacity exceeded, sorry [input stack size=5000]. When I uncomment \usepackage{unnumberedtotoc}, it says ! undefined control sequence  \addchap.  Here I have pasted all the beginning of the packages that I have used in my thesis but I still get some problems in compilation, I don't know why, but I think if I can compile this code, then I can solve the problem  :   \immediate\write18{makeindex \jobname.nlo -s nomencl.ist -o \jobname.nls} \documentclass[12pt]{report} \DeclareMathSizes{12}{30}{16}{12} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{lineno} \usepackage{amsmath}  \usepackage{array, nccmath}  \usepackage[nottoc]{tocbibind} \newcolumntype{L}{&gt;{$}l&lt;{$}} \newcolumntype{m}{&gt;{\displaystyle}l} \usepackage{framed} \usepackage{cclicenses} \usepackage{makecell} \usepackage[french]{babel} \usepackage{setspace} \usepackage{mathptmx}  \usepackage{multirow}  \usepackage{gensymb}  \usepackage{empheq}   \usepackage{mathtools}   \usepackage{array}   \renewcommand{\arraystretch}{1.9}   \newcolumntype{P}{&gt;{\centering\arraybackslash$}p{1.6em}&lt;{$}}   \newcolumntype{C}{&gt;{\centering\arraybackslash$}c&lt;{$}}   \usepackage{makecell}   \usepackage{booktabs}   \usepackage{subcaption}   \usepackage[intoc]{nomencl}   \makenomenclature   \setcounter{secnumdepth}{4}   \setcounter{tocdepth}{4}   \usepackage[justification=centering]{caption}    \usepackage{etoolbox}     \usepackage{unnumberedtotoc} %https://github.com/johannesbottcher/unnumberedtotoc/     \usepackage[automark,     plainheadsepline,     headsepline,     plainfootsepline,      footsepline,     markcase=ignoreupper]{scrlayer-scrpage}    \clearpairofpagestyles    \ihead*{\leftmark}    \cfoot*{\pagemark}    \setkomafont{pageheadfoot}{\scshape}    \usepackage{titlesec}    \graphicspath{{imagesthesis/}}    \def\frenchlistfigurename{Liste des figures}    \usepackage[a4paper,right=20mm,left=25mm,top=26mm, bottom=26mm]{geometry}    \makeatletter    \titleformat{\chapter}[display]    {\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}    % this alters "before" spacing (the second length argument) to 0    \titlespacing*{\chapter}{0pt}{0pt}{20pt}    %\patchcmd{\@makechapterhead}{\vspace*{20\p@}}{}{}{}% Removes space above \chapter head    %\patchcmd{\@makeschapterhead}{\vspace*{20\p@}}{}{}{}% Removes space above \chapter* head    \makeatother    \title {itle of the thesis}    \titleformat{\paragraph}    {\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}    \titlespacing*{\paragraph}     {0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}     \usepackage[thin, , thinc]{esdiff}  \usepackage{subcaption}  \usepackage{caption}  \usepackage{framed}    \usepackage{nomencl}   \setlength{\nomitemsep}{-\parskip}\usepackage{booktabs,multirow}  \renewcommand{\cellset}{\renewcommand{\arraystretch}{0.5}}   \begin{document}  \renewcommand\arraystretch{0.8} %\noindent  \doublespacing  \maketitle  \tableofcontents %\listoffigures  \addchap{Publications et communications}   \section*{$\:$  a. Publications:}  \section*{$\:$  b. Communications:}  \addchap{Remerciements}  \end{document} Can I use my iPhone as a "remote" for my iPad? How to completely delete the head of a function expression Prove by induction that for every $n \ge 0$ the term $2^{2n+1} - 9n^2 + 3n -2$ is divisible by $54$ Should methods in a Java interface be declared with or without a public access modifier? Should methods in a Java interface be declared with or without the public access modifier?  Technically it doesn't matter, of course. A class method that implements an interface is always public. But what is a better convention?  Java itself is not consistent in this. See for instance Collection vs. Comparable, or Future vs. ScriptEngine. What if the universe is rotating as a whole? Suppose in the milliseconds after the big bang the cosmic egg had aquired some large angular momentum. As it expanded, keeping the momentum constant (not external forces) the rate of rotation would have slowed down, but it would never reach zero.  What implications would that have to measurments to distant supernova and CMB radiation? Do we have any experimental data that definitely rules out such as scenario? And to what confidence level?  Edit A  suggests that the universe might indeed be spinning as a whole. Anyone care to poke holes at it?  Edit 2 Even more  places limits on possible rotation. I am having an issue with wifi; it seems when I'm trying Ubuntu without installing, it only detects connection via the ethernet cable.  I can't connect and none of the available wifi networks are detected.  $ lspci 00:00.0 Host bridge: Intel Corporation Device 5904 (rev 02) 00:02.0 VGA compatible controller: Intel Corporation Device 5916 (rev 02) 00:04.0 Signal processing controller: Intel Corporation Skylake Processor Thermal Subsystem (rev 02) 00:08.0 System peripheral: Intel Corporation Sky Lake Gaussian Mixture Model 00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21) 00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21) 00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI (rev 21) 00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21) 00:1c.0 PCI bridge: Intel Corporation Device 9d10 (rev f1) 00:1c.4 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port (rev f1) 00:1c.5 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port (rev f1) 00:1f.0 ISA bridge: Intel Corporation Device 9d4e (rev 21) 00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21) 00:1f.3 Audio device: Intel Corporation Device 9d71 (rev 21) 00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21) 01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330] (rev 83) 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15) 03:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device d723     $ lspci -knn | grep Net -A3 03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:d723]     DeviceName: Hanksville Gbe Lan Connection     Subsystem: Hewlett-Packard Company Device [103c:8319] Using X11 in OSX 10.8.3 : "ld: library not found for -lX11" Programmatically create a user and assign a role I'm programmatically creating a user with the following code.  $newUser = array(   'name' =&gt; $mail,    'pass' =&gt; 'password',  // note: do not md5 the password   'mail' =&gt; $mail,    'status' =&gt; 1,    'init' =&gt; $mail,   'roles' =&gt; array(5) ); $user = user_save(null, $newUser);   I have got a role with the role ID equal to 5; when I create the user, in the table "users_roles" there is only a row with the value 0 for the role ID, but if I print the user object with var_dump(), it looks like the roles are created.  What am I doing wrong? How to access a usb flash drive from the terminal? I only have access to the command line. I need to backup my data (on the user folder) to a pen (USB DOK).    How can I mount a flash drive manually? What should be the copy command? I have been thinking about the following formulation of the Axiom of Choice.:     For any relation $R$, there is a function $H$, which is a subset of $R$, and such that $\operatorname{dmn}H=\operatorname{dmn}R$.   At first, it seemed surprising to me that this did not follow from Comprehension (i.e., from the schema  $\forall x_1, x_2, ..., x_n \forall C\exists B \forall x ( x \in B \Leftrightarrow x \in C \land \phi )$, where $B$ does not occur free in $\phi$).    I thought that for any relation, it seems that we should be able to define a subset of it with the same domain meeting a "functional condition".  But when I tried to do this, I couldn't.  However, I felt like I was getting close when I let $B$ be free in $\phi$, i.e., when I let myself say that $w$ is in $R$ and also anything in $H$ meets such and such conditions, where $H$ is the set (function) whose existence I'm trying to prove.    But my understanding is that Choice does not even follow from Naive Comprehension.  So, I wondered if someone could explain the following precisely.   Why does the above formulation of Choice does not follow from regular Comprehension? Why does it not even follow from Naive Comprehension (assuming that it does not)? Stuck in a loop at login prompt after changing shell to zsh Why do I get compiler errors with this Java code?  1  public List&lt;? extends Foo&gt; getFoos() 2  { 3    List&lt;? extends Foo&gt; foos = new ArrayList&lt;? extends Foo&gt;(); 4    foos.add(new SubFoo()); 5    return foos; 6  }  Where 'SubFoo' is a concrete class that implements Foo, and Foo is an interface.  Errors I get with this code:   On Line 3: "Cannot instantiate ArrayList&lt;? extends Foo&gt;" On Line 4: "The method add(capture#1-of ? extends Foo) in the type List&lt;capture#1-of ? extends Foo&gt; is not applicable for the arguments (SubFoo)"   Update: Thanks to Jeff C, I can change Line 3 to say "new ArrayList&lt;Foo&gt;();".  But I'm still having the issue with Line 4.