A part of the code that I have written is the following:      \documentclass[chapterprefix=true]{scrreprt} \usepackage[utf8]{inputenc} \usepackage[german,english,greek]{babel}  \usepackage{amsmath} \usepackage{amsthm} \usepackage{amsfonts}  \usepackage{amssymb}  \usepackage{booktabs} \usepackage{siunitx} \usepackage{mathdots}   \usepackage{cite}   \usepackage[sf,sl,outermarks]{titlesec}    \usepackage[shortlabels]{enumitem} \newtheorem{mylemma}{Λήμμα}[chapter]  \newtheorem{mytheorem}{Θεώρημα}[chapter]  \newtheorem*{myproofidea*}{Ιδέα της απόδειξης} \newtheorem{mydef}{Ορισμός}[chapter]  \newtheorem{example}{Παράδειγμα}[chapter]  \newtheorem{corollary}{Πόρισμα}[chapter]  \newtheorem{remark}{Παρατήρηση}[chapter]  \titleformat{\chapter}[display]   {\bfseries\Large}   {\MakeUppercase{\chaptertitlename} \Huge\thechapter}   {4ex}   {\titlerule\vspace{2ex}}   [\vspace{2ex}\titlerule]   \titleformat{\section}{\bfseries}{\thesection}{1em}{}   \DeclareMathOperator{\Char}{char}   \begin{document}   \title{  }  \author{  }   \date{ }  \maketitle   \clearpage   \tableofcontents   \clearpage   \chapter{ Εισαγωγή }   \chapter{Θεωρία 1}   \section{Ενότητα}   \chapter{Θεωρία 2}   \chapter{Πρόβλημα του \foreignlanguage{english}{Grothendieck}}     \end{document}   When I compile it I get the following errors:      What have I done wrong?
I was trying to install minted package in TeXLive. I installed it and then run sudo tlmgr update --all. It was running slow so I stopped it using Ctrl+Z in an ubuntu terminal and then I run sudo tlmgr update --list. After that I installed texlive-latex-extra and python-pygments. Later on I run sudo tlmgr update --all again and let it finish.  After that I am trying to run a simple code using listings and greek but I get an error     Bad Character code (256)   A MWE that illustrated the problem is the following  \documentclass{book}  \usepackage[english,greek]{babel} \usepackage[iso-8859-7]{inputenc} % %\usepackage[utf8]{inputenc} \usepackage{kerkis} \usepackage{pifont} % %  \newcommand{\sw}{\selectlanguage{english}} \newcommand{\sq}{\selectlanguage{greek}} \newcommand{\eng}[1]{\latintext#1\greektext} \newcommand{\gre}[1]{\greektext#1\latintext}  \usepackage{xcolor} \usepackage{listings} \usepackage{textcomp}  \definecolor{listinggray}{gray}{0.9} \definecolor{lbcolor}{rgb}{0.9,0.9,0.9}  \lstdefinestyle{JavaStyle}{         backgroundcolor=\color{lbcolor},     tabsize=4, %   rulecolor=,     language=Java,      % choose the language of the code         basicstyle=\scriptsize,     % the size of the fonts that are used for the code         upquote=true,         aboveskip={1.5\baselineskip},         columns=fixed,         showstringspaces=false,         extendedchars=false,         breaklines=true,         prebreak = \raisebox{0ex}[0ex][0ex]{\ensuremath{\hookleftarrow}},         frame=single,         numbers=left,         showtabs=false,         showspaces=false,         showstringspaces=false,         identifierstyle=\ttfamily,         keywordstyle=\color[rgb]{0,0,1},         %commentstyle=\color[rgb]{0.026,0.112,0.095},         commentstyle=\itshape\color{green!40!black},         stringstyle=\itshape\color{red!90!black},         numberstyle=\itshape\color{yellow!50!black} }  \lstdefinestyle{CppStyle}{         backgroundcolor=\color{lbcolor},     tabsize=4, %   rulecolor=,     language=C++,       % choose the language of the code         basicstyle=\scriptsize,     % the size of the fonts that are used for the code         upquote=true,         aboveskip={1.5\baselineskip},         columns=fixed,         showstringspaces=false,         extendedchars=false,         breaklines=true,         prebreak = \raisebox{0ex}[0ex][0ex]{\ensuremath{\hookleftarrow}},         frame=single,         numbers=left,         showtabs=false,         showspaces=false,         showstringspaces=false,         identifierstyle=\ttfamily,         keywordstyle=\color[rgb]{0,0,1},         %commentstyle=\color[rgb]{0.026,0.112,0.095},         commentstyle=\itshape\color{green!40!black},         stringstyle=\itshape\color{red!90!black},         numberstyle=\itshape\color{yellow!50!black} } \begin{document}  This is a dummy text. kjhbki \end{document}   The .aux file says  \relax  \select@language{greek} \@writefile{toc}{\select@language{greek}} \@writefile{lof}{\select@language{greek}} \@writefile{lot}{\select@language{greek}}   while the .log file can be found   Any idea why is this happening and how to fix this? Note that if I remove the listings preamble, delete all produced files and build the document, everything works fine.
Multiple addresses in JSON-LD Schema.org Turning water pump on/off using Arduino Uno R3 I'm trying to build a simple system to turn a water pump every 24 hours for 10-20 seconds. I have 5V pump. When I connect it to 5V, GND it works but when I connect it to pin 12 (or any other digital pin) and GND it does not work. Here's my sample sketch:  int led = 12;  void setup() {                   Serial.begin(9600);   pinMode(led, OUTPUT);      }  void loop() {   digitalWrite(led, HIGH); }   What am I doing wrong? In the past month, I've been really busy with the university and stuff, and I don't sleep as much as I used to. I usually sleep 4-5 hours a night.  I haven't been doing that extensively ( I always kept a good sleeping routine), but can the lack of sleep affect my health on the long term ? When to use a preceding slash in path names? (e.g. for the 'cd' command) I am a novice user and I am trying to install Oracle Java. The process calls for me to access /usr/local/java, but here is the problem. I get as far as /usr/local, then this is the message I get:  leonard@leonard-MT6452:/usr/local$ dir bin  etc  games  include  java  lib  man  sbin  share  src  leonard@leonard-MT6452:/usr/local$ cd /java/ bash: cd: /java/: No such file or directory  leonard@leonard-MT6452:/usr/local$ rm -r ~/java rm: cannot remove ‘/home/leonard/java’: No such file or directory   Help? I don't know so much about coordinate systems...  In my office we use to deal with spatial data coming from archaeological sites. Each site has its own x-y-z coordinate system (GCS). Three simple ortogonal cartesian axis. In the last years we have been managing this spatial data through GIS software (ArcGIS), without using specific coordinate system (just leave it as "undefined")  I'd like to know if there exisits any GCS designed to deal with such datasets using simple cartesian orthogonal axis, without grid distortions of the typical GCS. In addition, I'd like to know if this system is suitable for using it in an online mapping application.  By the way, we manage 2D (ArcMap) and 3D (ArcScene) environments and work with "mm" as length base unit.   If such a thing doesn't exists, maybe someone knows how to create it. Can I safely connect the power-only-end of a USB-Y cable to an other power source? If the host computer for an USB device doesn't provide enough power for a device which has no dedicated power port, can I connect the power-only-plug of a Y-USB-cable to an other computer, an USB-charger or even a regular mobile charger? I'm afraid this could damage some of the devices.  Edit: The device in question is a USB Hard drive (Samsung S2 Portable 640GB (but on the back it's written to use 0.85A)) which is supposed to work whit just a single USB port. It did so well on a other laptop and whit some cables even on my actual net book back in Europe. But now in Malaysia it works only some times (I still try to figure out what the conditions are) and then it stops working after a while (maybe when it goes to power save mode). I heard from others their hard drives need one more power plug here in Malaysia to but can't imagine why... How do you configure an OpenFileDialog to select folders? In VS .NET, when you are selecting a folder for a project, a dialog that looks like an OpenFileDialog or SaveFileDialog is displayed, but is set up to accept only folders.  Ever since I've seen this I've wanted to know how it's done.  I am aware of the FolderBrowserDialog, but I've never really liked that dialog.  It starts too small and doesn't let me take advantage of being able to type a path.  I'm almost certain by now there's not a way to do this from .NET, but I'm just as curious how you do it from unmanaged code as well.  Short of completely reimplementing the dialog from scratch, how do you modify the dialog to have this behavior?  I'd also like to restate that I am aware of the FolderBrowserDialog but sometimes I don't like to use it, in addition to being genuinely curious how to configure a dialog in this manner.  Telling me to just use the FolderBrowserDialog helps me maintain a consistent UI experience but doesn't satisfy my curiosity so it won't count as an answer.  It's not a Vista-specific thing either; I've been seeing this dialog since VS .NET 2003, so it is doable in Win2k and WinXP.  This is less of a "I want to know the proper way to do this" question and more of a "I have been curious about this since I first wanted to do it in VS 2003" question.  I understand that Vista's file dialog has an option to do this, but it's been working in XP so I know they did something to get it to work.  Vista-specific answers are not answers, because Vista doesn't exist in the question context.  Update: I'm accepting Scott Wisniewski's answer because it comes with a working sample, but I think Serge deserves credit for pointing to the dialog customization (which is admittedly nasty from .NET but it does work) and Mark Ransom for figuring out that MS probably rolled a custom dialog for this task. What is the most concise and efficient way to find out if a JavaScript array contains a value? This is the only way I know to do it: function contains(a, obj) {     for (var i = 0; i &lt; a.length; i++) {         if (a[i] === obj) {             return true;         }     }     return false; }  Is there a better and more concise way to accomplish this? It seems that I'm missing something about this.  First of all, the series is convergent: $\lim_{n\rightarrow\infty}\frac{2^{-n-1} (n+1)^2}{2^{-n} n^2}=\frac{1}{2}$ (ratio test)  What I tried to do is to find a limit of a partial sum $\lim_{n\rightarrow\infty}S_n$ as follows: $S_n=\frac{\frac{1}{6} n (n+1) (2 n+1)}{\frac{1-\left(\frac{1}{2}\right)^n}{2 \left(1-\frac{1}{2}\right)}}$. Still, the limit is $\infty$ and I'm clearly doing something wrong. A proof of the fact that the Fourier transform is not surjective from $\mathcal{L}^1(\mathbb{R})$ to $C_0( \mathbb{R})$ Let $f_n = \mathbb 1_{[-n,n]}$ for all $n \in \mathbb{N}$   Compute explicitly $f_n \star f_1$ for all $n \in \mathbb{N}$.  Show that $f_n \star f_1$ is the Fourier transform of $g_n = \frac{  \sin{(2\pi x)} \sin{(2 \pi nx)}}{\pi ^2 x^2}$  Show that $\| g_n \|_1 \to \infty$  Deduce that the Fourier transform is not surjective from $\mathcal{L}^1(\mathbb{R})$ to $C_0( \mathbb{R})$    Here, $C_0(\mathbb{R})$ is the space of continuous functions $f : \mathbb{R} \to \mathbb{R}$ that tends to $0$ at $-\infty$ and $+\infty$. I managed to compute 1) and proved 2). But I don't know how to prove 3). Moreover, I don't see how can 1), 2) and 3) prove 4). Can anyone help? Why does parameter expansion with spaces without quotes work inside double brackets "[[" but not inside single brackets "["? If $G$ is a group, show that $x^2ax=a^{-1}$ has a solution if and only if $a$ is a cube in $G$ How to Count Duplicates in List with LINQ "Within" and "in" when referring to time I know that both can mean "inside" but what I don't have clear is whether both mean the same when talking about time. For example:   The party is in two days = The party is within two days ??   According to this link  within means a limit that can be exceeded, so I'm wondering too if say "the party is within two days max" is correct or redundant. Mouse Pointer Locator Why are the Ringwraiths fearful of coming into contact with water? At least twice in The Lord of the Rings: The Fellowship of the Ring, Ringwraiths cower away from bodies of water.  The second time (the ford of Bruinen) can be explained away by their fear of some Elvish magical trap through the enchantment of the water; but what about the first time, at the ferry? One of the Nazgûl could have easily made the jump onto the barge and quickly dispatched those pesky Hobbitsses. I'm totally new to Ubuntu/Linux, using Ubuntu Server at the moment. Just trying to  figure out something basic.   How can you tell where you are installing a program. For example I just installed Sphinx search engine by placing the tarball that I downloaded from their site to my:  /home/sphinx   directory. I created the sphinx directory to place that tarball in. Then I ran these commands:  tar xvzf sphinx-0.9.8.1.tar.gz cd sphinx-0.9.8.1/ ./configure --with-mysql-includes=/usr/include/mysql --with-mysql-libs=/usr/lib/mysql   and then these:  make sudo make install   Now I have a lot of files sitting in the directory where I ran these commands. Is this my Spynx installation or did it install somewhere else?  In windows if you run an installer (.exe file) anywhere the program will still install in your C:\Program Files directory. Does something similar apply to linux where all programs are installed in a central place, or can you install programs anywhere on the system.  Questions   I would prefer to keep all my installed programs in one place so what is the right place for this in terms of best practice. In other words what is the Linux equivalent of C:\Program Files? And how does one always install at this location, is it just a matter of placing the tarball and running the install commands from this location? What about if I use sudo apt-get to install a package. How can I point to this location to tell apt-get to always install there? How can we print line numbers to the log in java Yes, I know the topic has been discussed before. I know that Meta already has threads that complain about how flagging doesn't work. I wanted to give a practical example.  Today, a  came in to the  chat and asked the :  Hey guys, as soon as I embed javascript, all my html elements are gone. Even if the script is empty!? ...Can anyone help out? The example is really minimalistic &lt;script type='text/javascript' src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js&quot;/&gt; &lt;script type='text/javascript' src=&quot;script.js&quot;/&gt; These lines make everything vanish. script.js is empty! I use google chrome and the file is on localhost  Some context:  The JS room encourages people to come and ask questions that are too small/badly put for main. The room encourages people to just ask questions rather than ask to ask. In fact we even have a bot that prompts users to just ask if they have a question whenever they join. The above user has a good Q to A ratio having 1K rep in the main site and over 80 answers. The user has no negative context in the chat. No previous offenses or anything like that.  That message got 7 flags  Had a mod (ThiefMaster) not been present and invalidated those flags in time that user would have probably been suspended from the chat. This is bad, it sends the wrong message and it is very rude. Now, some other rooms don't allow people to just come and ask questions right away so maybe users from other rooms validated the flag. Maybe users thought he was being rude? I don't know. I do know that we don't want this sort of negative atmosphere in the JS room (and I'm sure other useful rooms such as PHP don't want it either), we have enough on our hands trying to maintain a community while helping people joining and handing with vamps/trolls. Possible solutions:  Drop spam/offensive flags altogether. Make spam/offensive flags room specific for big enough (tm) rooms. Give room owners just the ability to invalidate spam/offensive flags. When do I have to use 'will' instead of 'going to'? Does going to only express an intention and will some kind of prediction that doesn't necessarily happen?  EDIT: Thanks for all your answers. I asked this question because I always fail to complete exercises like this from an ESL book:   We  will fly to Venice in June. (Correct: But, how can I be sure that I'm not sick in June?) Philipp will be 15 next Wednesday (Correct: Since his birthday is a fixed day, this will happen). They will get a new computer. (Wrong: Why?, If I need a new computer, I simply get a new one) In 2020 people are going to buy more hybrid cars.  (Wrong, Why? Who can tell for sure).