The command was installed on Ubuntu 18.04 LTS using:  sudo apt-get install clang-format  with the following result:  Reading package lists... Done Building dependency tree        Reading state information... Done The following additional packages will be installed:   clang-format-6.0 The following NEW packages will be installed:   clang-format clang-format-6.0 0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded. Need to get 638 kB of archives. After this operation, 2,044 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://in.archive.ubuntu.com/ubuntu bionic/universe i386 clang-format-6.0 i386 1:6.0-1ubuntu2 [635 kB] Get:2 http://in.archive.ubuntu.com/ubuntu bionic/universe i386 clang-format i386 1:6.0-41~exp4 [3,024 B] Fetched 638 kB in 11s (59.1 kB/s)                                               Selecting previously unselected package clang-format-6.0. (Reading database ... 295327 files and directories currently installed.) Preparing to unpack .../clang-format-6.0_1%3a6.0-1ubuntu2_i386.deb ... Unpacking clang-format-6.0 (1:6.0-1ubuntu2) ... Selecting previously unselected package clang-format. Preparing to unpack .../clang-format_1%3a6.0-41~exp4_i386.deb ... Unpacking clang-format (1:6.0-41~exp4) ... Setting up clang-format-6.0 (1:6.0-1ubuntu2) ... Setting up clang-format (1:6.0-41~exp4) ... Processing triggers for man-db (2.8.3-2) ...   when running man clang-format as is expected:  clang-format - manual page for clang-format 6.0  the manpage is displayed. but when running the command it says:  clang-format: command not found  If anyone can clarify the reason for this (also why clang-format-6.0 works instead of clang-format) would be great.
I installed clang-format on Ubuntu 18.04 LTS with sudo apt install clang-format and the installation was successful. I can execute clang-format-6.0 now, but when I use ClangFormat in vim, it tells me that "clang-format is not found". How can I fix the problem?
How to determine whether a given Linux is 32 bit or 64 bit? When I type uname -a, it gives the following output.  Linux mars 2.6.9-67.0.15.ELsmp #1 SMP Tue Apr 22 13:50:33 EDT 2008 i686 i686 i386 GNU/Linux   How can I know from this that the given OS is 32 or 64 bit?  This is useful when writing configure scripts, for example: what architecture am I building for? Is there a reason to use multiple question marks instead of an asterisk in filename expansion? If I have a number of directories, named, for example 10001 through 10025 is there any reason to use ls 1*/foo vs. ls 100??/foo?  I have a lot more than 25 of them, so I mostly curious if there's any differences in speed.  I know the difference in use between the two, that the asterisk will match longer file names, like 10001.backup. But let's say I don't have any files that don't follow my conventions. Is there any behind-the-scenes differences? Is mass converted into energy in exothermic chemical/nuclear reactions?  My (A Level) knowledge of chemistry suggests that this isn't the case. In a simple burning reaction, e.g.   $$\mathrm{C + O_2 \to CO_2}$$  energy is released by the $\mathrm{C-O}$ bonds forming; the atoms lose potential energy when they pull themselves towards each other, in the same way that a falling object converts GPE to KE. There are the same number of protons, electrons etc. in both the reactants and products. I would have assumed that this reasoning extends to nuclear fission/fusion as well, but one physics textbook repeatedly references very small amounts of mass being converted into energy in nuclear reactions.  So I just wanted to know if I was wrong about either of these types of reactions, and if so, what mass is lost exactly? What's the canonical way to check for type in Python? Why have the subjunctive and indicative converged in Modern English? edges with thickness and color Is there a way to vary the thickness and color of lines created by just edges and vertices? I realize that a face can be defined and then color and material applied, but is there any way to apply a color to the edges? How to get dialog box input directed to a variable? I have been teaching myself bash scripting and have run into an issue. I have written a script to take input from the user, using the 'read' command, and make that input a variable to use later in the script. The script works, but....  I would like to be able to get it setup using 'dialog'. I found out that  'dialog --inputbox' will direct the output to 'stderr' and in order to get that input as a variable you have to direct it to a file and then retrieve it. The code I found to explain this is:  #!/bin/bash dialog --inputbox \  "What is your username?" 0 0 2&gt; /tmp/inputbox.tmp.$$  retval=$?  input=`cat /tmp/inputbox.tmp.$$`  rm -f /tmp/inputbox.tmp.$$  case $retval in 0)  echo "Your username is '$input'";; 1)  echo "Cancel pressed.";;  esac   I see that it is sending the sdterr to the /tmp/inputbox.tmp.$$ with 2>, but the output file looks like 'inputbox.tmp.21661'. When I try and cat the file it gives me an error. So I am still unable to get the user input from the --inputbox as a variable.   Example Script:   echo "  What app would you like to remove? "  read dead_app  sudo apt-get remove --purge $dead_app   So as you can see it is a basic script. Is it even possible to get the variable as a word from dialog --inputbox? On the websites, whenever the OP comments on an answer, or on his question, his name is highlighted. This is a handy feature because you can easily tell whether the comment is from the OP or not.   But on the Android mobile app (don't know about iOS),  this feature is not there. Can we have it please!? Number of equivalence relations on a set If a set has $n$ elements then what are maximum number of equivalence classes and equivalence relations possible on it? How to configure @SkipValidation by XML configuration in Struts 2 Select from list of reasons when performing downvotes Contraction Map on Compact Normed Space has a Fixed Point Is every invertible matrix a change of basis matrix? $f$ differentiable except in $1$ point Assume we have a function $f : \mathbb{R} \rightarrow \mathbb{R}$ such that  $f$ is differentiable for all non-zero $x$, $f$ is continuous at $0$ and  $$\lim_{x \uparrow 0} f'(x) = \lim_{x \downarrow 0} f'(x) &lt; \infty. $$  Is it then true that $f$ is also differentiable at $0$?  If we drop the hypothesis that $f$ is continuous, this is not true since the signums function is a simple counterexample. But what if $f$ is continuous? I don't think this is true but I can't find a counterexample... Why does everything spin? The origin of spin is some what a puzzle to me, everything spin from galaxies to planets to weather to electrons.  Where has all the angular momentum come from? Why is it so natural?  I was also thinking do photons spin? we always think of the wave as a standard 2d sin wave but could this rotate in 3d? What implications would this have?   And what about spacetime how does all the spinning effect?  This has always been avoided in all lectures and classes I ever went to. Reference style links validating as improperly formatted code Drawing different tikz shapes parameterized by data from a file I have a file with three columns of data, x, y, r.  # x y r 1 1 0.1 2 2 0.5 3 3 1.2   and so on. I'd like to loop over the rows, and draw a circle at x,y with radius r for each row.  I first thought I'd use pgfplots with customized marks, but I couldn't figure out how to pass the radius parameter into the pgfplot mark handler. Then I thought I'd use tikz and pgf directly, but I couldn't figure out how to reference the values for r inside a draw command sequence.   Any thoughts ? I'd be very grateful for some help. From an array of objects, extract value of a property as array In Cycles, is there a way to create a procedural texture that follows the longitudinal lines of a sphere? Like a beach ball or globe? The texture should be able to be mapped to any sphere-shaped object, not just perfect spheres.    My current approach is to use a rotated wave texture, but that doesn't come from the poles (It uses latitudes) NSString tokenize in Objective-C What is the best way to tokenize/split a NSString in Objective-C?