I am trying to mimic the behavior of Gedit's code highlighting in listing. For example, Gedit makes all numbers (int, float) in Python pink, but I have trouble implementing this. I tried numberstyle in \lstset, but it does not work. (In the example below, the "10" and "2" are not colored correctly)  \documentclass[11pt]{article} \usepackage{listings} \usepackage{courier} \usepackage{xcolor}  \lstset{     basicstyle=\ttfamily,     tabsize=4,         columns=fixed,     extendedchars=false,     breaklines=true,     keywordstyle=\bfseries\color[HTML]{a52a2a},      keywordstyle=[2]\color[HTML]{008a8c},     commentstyle=\color[HTML]{0000ff},     stringstyle=\color[HTML]{ff0bff},     numberstyle=\color[HTML]{ff0bff}, }  \begin{document} \begin{lstlisting}[language=Python, gobble=4, basicstyle=\ttfamily]     for i in range(10) :         print('%d' % i**2) \end{lstlisting} \end{document}
With the listings package, I would like to color the integers out of strings and comments and out of keywords too. The question for coloring numbers     . Some answer handle the numbers occurring within comments, strings or barewords, but no solution given work when a keyword contain a number. Which is annoying because C and C++ have a lot of types with a number in them, like uint32_t.  Here is a small example.  \documentclass{standalone} \usepackage{xcolor} \usepackage{listings}  \definecolor{darkgreen}{rgb}{0.18,0.54,0.34} \definecolor{maroon}{rgb}{0.64,0.16,0.16} \definecolor{darkpink}{rgb}{0.75,0.25,0.5}  \lstdefinestyle{myc++}{     language=[ISO]C++,     keywordstyle=\color{darkgreen}\bfseries,     commentstyle=\color{blue}\textit,     stringstyle=\color{darkpink}\ttfamily, %     literate=*     {0}{{{\textcolor{red}0}}}1     {1}{{{\textcolor{red}1}}}1     {2}{{{\textcolor{red}2}}}1     {3}{{{\textcolor{red}3}}}1     {4}{{{\textcolor{red}4}}}1     {5}{{{\textcolor{red}5}}}1     {6}{{{\textcolor{red}6}}}1     {7}{{{\textcolor{red}7}}}1     {8}{{{\textcolor{red}8}}}1     {9}{{{\textcolor{red}9}}}1,     escapeinside={|}{|}, %     morekeywords={int32_t} }  \begin{document}  \begin{lstlisting}[style=myc++] // In comment: 42 int32_t in_keyword = 80085; char *in_identifier|2| = "And in string 1337\n"; \end{lstlisting}  \end{document}   And the result:    The star for literate avoid to coloring the digits inside comments or strings. The escapeinside avoid coloring the digits inside a bareword when specifically marked. But I have yet to find how to color int32_t as a keyword.
I am creating a type of adventure map. Once you enter the map, you step on some pressure plates that are supposed to seamlessly close the wall behind you. For some reason this command does not work when in a command block or just in text. Here is the command:  /fill -17 4 -109 -18 5 109 minecraft:light_gray_concrete   The output it gives me is "That position is not loaded". I am on a singleplayer superflat world in 1.14.3. Any help would be very appreciated! What is the best way to parse html in C#? I'm looking for a library/method to parse an html file with more html specific features than generic xml parsing libraries. How can I reset my Ability Points? I'm also curious about being able to reset my points, should I wish to change my ability configuration later.  So far (10h-ish) I've only seen one way, which is a potion sold by Kiera Metz for 1000g. However she's no longer available as a store, due to a story choice, so I'm not sure where else I could buy this potion.  Where might I buy this potion, and is it the only way to reset your ability points? I submitted a manuscript last year to an IEEE journal, and the paper was accepted for publication. I recently submitted a new manuscript to the same journal, but, this time, the paper was rejected, and I was told that I should submit to another journal since my paper was not within the journal's scope. The two papers both target similar applications. Furthermore, the second paper uses some work in the first paper, making substantial improvements at solving a much more difficult problem. Based on the reviewer's comments (and my own personal assessment), I do not believe that the work presented in the second paper was "incremental" in nature. Far from it. Two of the three reviewers gave positive reviews. The third reviewer, however, mentioned the "outside of journal's scope" issue and the associate editor and editor-in-chief both sided with the 3rd reviewer, and the paper was stopped dead in its tracks.  I'm scratching my head trying to come to terms with how in the world my first paper could be accepted by this journal, but the second paper focused on the same application space and achieving substantial improvements on a much more difficult problem (backed up with measured results) could be rejected. Any ideas? I don't have any knowledge in hardware and would like to know which RAM should I buy for my laptop.  How do I discover what RAM I need &amp; how much my machine can take?  I have a Razer Blade 15 (RZ09-02705F76) 2018 but don't know if there is a specific type or format of RAM that suits it and don't know where to find this information. Need help to interpret output of free command I would appreciate help in interpreting the output of 'free -m' below.    -bash-4.2$ free -m               total        used        free      shared  buff/cache   available Mem:          15793        7112          88        7840        8591         611 Swap:         16891        5289       11602    If I have nearly 11GB free then why am I seeing swap usage.  Shouldn't that be 0?   Also, the 'shared' value is 7840.  Is this memory available for a new application? Is only 'cache' memory available for new applications?  In other words, 'shared' and 'buffer' memory are not available for new applications? How should I interpret the 'available' column with a value of 611?  How is this value arrived at? Simple Math Problem A bat and ball cost \$1.10.  The bat costs a dollar more then the ball.  How much does the ball cost?  If this is not the correct place to ask a question like this please tell me and I will remove it :)     The ball costs \$0.05, not \$0.10 How to code to skip a shapefile, if it doesn't exist? So if shapefile 'AAA010' does not exist, how can I skip the Merge and Clip and move on to the next part of the script? If possible I would like to keep the current script as it is, but by just adding else or if, Sorry still trying to learn the ins and outs.  import os, fnmatch, arcpy   arcpy.env.workspace = r'C:\Users\sysadmin\Desktop\DataMagement\Comp_3\SA_MGCP3.gdb'   fcMerged = 'MergedFeatureClass' fcClipped = 'fcClipped' fcToClip = r'C:\Users\sysadmin\Desktop\DataMagement\Country.shp'  filesMatched = list()  for root, subfolders, files in os.walk (r'C:\Users\sysadmin\Desktop\DataMagement\MGCP_Raw'):      for f in fnmatch.filer(files, 'AAA010.shp'):              filesMatched.append(os.path.join(root,f))      if filesMatched:         print ' files found - merging'         arcpy.Merge_management (filesMatched, fcMerged)         arcpy.Clip_analysis (fcMerged, fcToClip,fcClipped)      else:          print 'nothing found - skipping' UK visit visa: What documents prove genuine relationship with the visitor? In the UK immigration rules for visitor visa  it states if;      Funds, maintenance and accommodation provided by a third party      V 4.3 A visitor’s travel, maintenance and accommodation may be   provided by a third party where the decision maker is satisfied that   they:      (a) have a genuine professional or personal relationship with the   visitor;and      (b) are not, or will not be, in breach of UK immigration laws at the   time of decision or the visitor’s entry to the UK; and      (c) can and will provide support to the visitor for the intended   duration of their stay.   I'm a UK  citizen. I'm planning to invite my brother-in-law and another close friend to the UK. In my invitation letter, I have clearly mentioned that I'm going to provide them accommodation only. They have prove sufficient funds to support themselves. I have sent them an invitation letter along with a copy of my passport and tenant agreement.   What other documents do I need to provide to indicate that it is a genuine professional or personal relationship with the visitor? how much money it takes for a day without including accommodation In Uk Imagine that a pebble is placed on a uniformly rotating, frictionless disk.  What will happen to this pebble? Will the disk slide under it and the pebble stay as is? Or will there be a centrifugal force on the pebble and it'll be thrown off the disk? Showing that $\frac{\sqrt[n]{n!}}{n}$ $\rightarrow \frac{1}{e}$ Show:$$\lim_{n\to\infty}\frac{\sqrt[n]{n!}}{n}= \frac{1}{e}$$  So I can expand the numerator by geometric mean. Letting $C_{n}=\left(\ln(a_{1})+...+\ln(a_{n})\right)/n$. Let the numerator be called $a_{n}$ and the denominator be $b_{n}$ Is there a way to use this statement so that I could force the original sequence into the form of $1/\left(1+\frac{1}{n}\right)^n$ Getting absolute path of a file I'm trying to write a basic program in C using gedit or sublime text (which I prefer), but no matter what I do when I try to compile or run, or even while writing, I have no option to use 'stdio.h' or any similar package. Even when I start typing #include &lt;st the only word completion sublime suggests is 'struct'.  I've read dozens of threads, but all managed to fix this by installing gcc, which I've tried to reinstall multiple times, with no luck.  This is the output from gcc -v:  Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.2.0-8ubuntu3' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 7.2.0 (Ubuntu 7.2.0-8ubuntu3) `   This is the code:   #include &lt;stdio.h&gt;  int main(void) { printf("hello, world\n"); }   When I compile using gcc, I get nothing, no error at least. but when I try to run using just ./hello.c this is what I get. Let $x,y,z>0$ and $x+y+z=1$, then find the least value of ${{x}\over {2-x}}+{{y}\over {2-y}}+{{z}\over {2-z}}$ Let $x,y,z&gt;0$ and $x+y+z=1$, then find the least value of  $${{x}\over {2-x}}+{{y}\over {2-y}}+{{z}\over {2-z}}$$  I tried various ways of rearranging and using AM > GM inequality. But I couldn't get it. I am not good at inequalities. Please help me.  I wrote $x$ as $1-(y+z)$ and I took $x+y$ as $a$ and the others as $b$ and $c$. And I am trying. I'm trying to prove that the characteristic of any field $F$ is either $0$ or a prime number, but I have no idea what to do.  Help? Age limit is too strict This story was in one of the first SF anthologies I ever read, in the mid-1960s. A meteor lands near to a house. The householder finds it and carries it into his house (meteor is grapefruit/football sized). It’s actually a crashed spaceship, crewed by beings the size of beetles or cockroaches. They emerge, and are spotted by the householder, who of course thinks they’re insects, but notices one seems to be holding a tiny tube. He reaches towards it and the alien shoots his hand (the tube being a gun, of course), stinging him. I can’t recall how the story ends, but I’d love to know what the story was called, and who its author was, as I’m trying to assemble a list of the early SF that fired my enthusiasm for the genre. Any Video formats that render with Alpha Channel? How can I deploy a connected app from my sandbox environment to my production environment? I built a changeset and I was able to include all my classes, but it was a surprise that salesforce has not provided any option to deploy a connected app.  So how do I go about deploying a connected app? Do I need to create it in every other environment?