I want to create only colorbar in Latex. Earlier I have used to Gnuplot to plot heatmaps along with colorbox(yeah, They are called colorbox in Gnuplot).  The user defined colorbox in Gnuplot plot is given as follows  set colorbox set palette defined ( 0 '#000090',\                       1 '#000fff',\                       2 '#0090ff',\                       3 '#0fffee',\                       4 '#ffee00',\                       5 '#ff7000',\                       6 '#ee0000',\                       7 '#7f0000') set cbrange [25:900] show colorbox   How do I generate an equivalent colorbar in Latex?  The colorbox from Gnuplot looks like this
I am trying to create something similar to this in Tikz:    I have been looking at using the \shadedraw macro, but have not found a way to create the color spectrum.  It seems possible if I stack multiple gradient-shaded rectangles on top of each other, but I would rather not use such a lengthy and ugly solution.  Is there a way to recreate this PH-scale image in Tikz, ideally using few rectangles?  (Note: the number labels are not necessary, as they will be replaced with horizontal lines anyway.)
GParted can't resize partition, but unallocated partition is available Hide a Subdomain from Google/Search Engine SEO Result? Using Integration By Parts results in 0 = 1 I've run into a strange situation while trying to apply Integration By Parts, and I can't seem to come up with an explanation.  I start with the following equation:  $$\int \frac{1}{f} \frac{df}{dx} dx$$  I let:  $$u = \frac{1}{f} \text{ and } dv = \frac{df}{dx} dx$$  Then I find:  $$du = -\frac{1}{f^2} \frac{df}{dx} dx \text{ and } v = f$$  I can then substitute into the usual IBP formula:  $$\int udv = uv - \int v du$$  $$\int \frac{1}{f} \frac{df}{dx} dx = \frac{1}{f} f - \int f \left(-\frac{1}{f^2} \frac{df}{dx}\right) dx$$  $$\int \frac{1}{f} \frac{df}{dx} dx = 1 + \int \frac{1}{f} \frac{df}{dx} dx$$  Then subtracting the integral from both sides, I've now shown that:  $$0 = 1$$  Obviously there must be a problem in my derivation here...  What wrong assumption have I made, or what error have I made?  I'm baffled. Which pronoun to refer to "person"? It? He or She? They? "When he found his seat on the plane, Sam recognized the person who was sitting in the seat next to his. It? She? was a woman he knew."  Which is more common/natural? Isn't 'it' more correct – grammatically speaking – than 'she', since 'a person' can be a 'he' or a 'she', and obviously you cannot use the singular 'they' here? How do i install drush for a drupal site which is on shared hosting? I applied for a standard visitor visa to the UK for seven days. I earn £278/month and have been working at the same organization for more than a year. I have saved up enough funds for the trip and I attached bank statements to prove it. The ECO refused my visa stating:      I note that you stated that your trip to the UK will cost you £1100, this is approximately 4 times your monthly income. I do not find it credible that you spend this amount on a trip.   I am a single woman, with no financial responsibilities and I saved up for this trip because I really wanted to visit the UK.  How do I prove to the ECO and the authorities that spending £1,100 for my trip wouldn't have caused me any financial harm neither would I have had to access UK government funds?    Another concern of mine is that if I reapply without the partial funding of my father or get sponsored by a different person, does the amount given by my father previously cause hindrance in my visa application?  Won't they still reject it on the basis of my pay being too insignificant? What is the difference between find . and /home/user/* as an input to for command.? For example:  for var in $(find .) do echo "$var" done   or  for var in /home/user/* do echo "$var" done   In the first case for command breaks up the file with names containing spaces. While in the second case it does not. Why? What does size of a directory mean in output of 'ls -l' command? What does size of a directory mean in output of ls -l command? so i change my MAC address with macchanger -A wlp68s0b1 at boot with crontab, here is what happens when i disconnect and reconnect :  while connecting after boot :  rahman@debian:~$ macchanger -s wlp68s0b1 Current MAC:   00:22:31:c6:38:45 (SMT&amp;C Co., Ltd.) Permanent MAC: 00:00:00:00:00:00 (FAKE CORPORATION)   after disconnecting :  rahman@debian:~$ macchanger -s wlp68s0b1 Current MAC:   16:7b:e7:3c:d3:cd (unknown) Permanent MAC: 00:00:00:00:00:00 (FAKE CORPORATION)   after reconnecting :  rahman@debian:~$ macchanger -s wlp68s0b1 Current MAC:   00:00:00:00:00:00 (FAKE CORPORATION) Permanent MAC: 00:00:00:00:00:00 (FAKE CORPORATION)   and so on, and with every disconnect i get a different random MAC address which fades on reconnecting giving me my real MAC address , what causes that and how to stop it ?  some outputs :  rahman@debian:~$ lspci -nn |grep 14e4 44:00.0 Network controller [0280]: Broadcom Limited BCM4313 802.11bgn Wireless Network Adapter [14e4:4727] (rev 01) rahman@debian:~$ uname -a Linux debian 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u5 (2017-09-19) x86_64 GNU/Linux rahman@debian:~$ sudo ifconfig  enp0s25: flags=4099&lt;UP,BROADCAST,MULTICAST&gt;  mtu 1500         ether 00:24:c0:7b:a8:8b  txqueuelen 1000  (Ethernet)         RX packets 0  bytes 0 (0.0 B)         RX errors 0  dropped 0  overruns 0  frame 0         TX packets 0  bytes 0 (0.0 B)         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0         device interrupt 20  memory 0xd4800000-d4820000    enp0s25:avahi: flags=4099&lt;UP,BROADCAST,MULTICAST&gt;  mtu 1500         inet 169.254.9.109  netmask 255.255.0.0  broadcast 169.254.255.255         ether 00:24:c0:7b:a8:8b  txqueuelen 1000  (Ethernet)         device interrupt 20  memory 0xd4800000-d4820000    lo: flags=73&lt;UP,LOOPBACK,RUNNING&gt;  mtu 65536         inet 127.0.0.1  netmask 255.0.0.0         inet6 ::1  prefixlen 128  scopeid 0x10&lt;host&gt;         loop  txqueuelen 1  (Local Loopback)         RX packets 9436  bytes 6584515 (6.2 MiB)         RX errors 0  dropped 0  overruns 0  frame 0         TX packets 9436  bytes 6584515 (6.2 MiB)         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0  wlp68s0b1: flags=4163&lt;UP,BROADCAST,RUNNING,MULTICAST&gt;  mtu 1500         inet 192.168.1.5  netmask 255.255.255.0  broadcast 192.168.1.255         inet6 fe80::6711:9875:eb78:24fc  prefixlen 64  scopeid 0x20&lt;link&gt;         inet6 fd9c:c172:b03b:ce00:f1e0:695e:7da0:91a  prefixlen 64  scopeid 0x0&lt;global&gt;         ether 00:00:00:00:00:00  txqueuelen 1000  (Ethernet)         RX packets 484346  bytes 641850809 (612.1 MiB)         RX errors 0  dropped 0  overruns 0  frame 0         TX packets 368394  bytes 44259668 (42.2 MiB)         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0  rahman@debian:~$ sudo iwconfig  lo        no wireless extensions.  enp0s25   no wireless extensions.  wlp68s0b1  IEEE 802.11  ESSID:"3bdo"             Mode:Managed  Frequency:2.447 GHz  Access Point: 9C:C1:72:B0:3B:D4              Bit Rate=65 Mb/s   Tx-Power=30 dBm              Retry short limit:7   RTS thr:off   Fragment thr:off           Encryption key:off           Power Management:off           Link Quality=54/70  Signal level=-56 dBm             Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0           Tx excessive retries:4  Invalid misc:183   Missed beacon:0 Reading the target of a .lnk file in Python? I'm trying to read the target file/directory of a shortcut (.lnk) file from Python. Is there a headache-free way to do it? The  is way over my head. I don't mind using Windows-only APIs.  My ultimate goal is to find the "(My) Videos" folder on Windows XP and Vista. On XP, by default, it's at %HOMEPATH%\My Documents\My Videos, and on Vista it's %HOMEPATH%\Videos. However, the user can relocate this folder. In the case, the %HOMEPATH%\Videos folder ceases to exists and is replaced by %HOMEPATH%\Videos.lnk which points to the new "My Videos" folder. And I want its absolute location. Could there be a bit of reputation leakage between the sites, please? Using a question mark mid-sentence Why does English spelling use silent letters? Why have a letter in a word when it’s silent in pronunciation, like the b in debt?  Can anyone please clarify my uncertainty here? I recently got a lenovo Y40 laptop and after i installed ubuntu 14.04 (also in the live usb) Wireless doesn't work. It says that it is disabled by hardware switch, however the hardware switch doesnt work (its intention is to put on airplane mode but does nothing when pressed in ubuntu) wireless works in windows and the BIOS has it enabled. I tried resetting the BIOS but it still doesn't work. Here are some command outputs  lspci:  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10) 04:00.0 Network controller: Intel Corporation Wireless 3160 (rev 93)   rfkill list all:   0: ideapad_wlan: Wireless LAN     Soft blocked: no     Hard blocked: yes 1: ideapad_bluetooth: Bluetooth     Soft blocked: no     Hard blocked: yes 2: hci0: Bluetooth     Soft blocked: no     Hard blocked: no 3: phy0: Wireless LAN     Soft blocked: no     Hard blocked: no   lswh:     *-network         description: Ethernet interface         product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller         vendor: Realtek Semiconductor Co., Ltd.         physical id: 0         bus info: pci@0000:03:00.0         logical name: eth0         version: 10         serial: f8:a9:63:31:2e:b6         size: 1Gbit/s         capacity: 1Gbit/s         width: 64 bits         clock: 33MHz         capabilities: bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation         configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168g-3_0.0.1 04/23/13 ip=192.168.1.4 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s         resources: irq:64 ioport:4000(size=256) memory:c0604000-c0604fff memory:c0600000-c0603fff *-pci:3      description: PCI bridge      product: Lynx Point-LP PCI Express Root Port 4      vendor: Intel Corporation      physical id: 1c.3      bus info: pci@0000:00:1c.3      version: e4      width: 32 bits      clock: 33MHz      capabilities: pci normal_decode bus_master cap_list      configuration: driver=pcieport      resources: irq:59 memory:c0500000-c05fffff    *-network DISABLED         description: Wireless interface         product: Wireless 3160         vendor: Intel Corporation         physical id: 0         bus info: pci@0000:04:00.0         logical name: wlan0         version: 93         serial: a0:88:69:90:0a:38         width: 64 bits         clock: 33MHz         capabilities: bus_master cap_list ethernet physical wireless         configuration: broadcast=yes driver=iwlwifi driverversion=3.13.0-32-generic firmware=22.24.8.0 latency=0 link=no multicast=yes wireless=IEEE 802.11abgn         resources: irq:66 memory:c0500000-c0501fff To avoid printing single letters at varying sizes and measuring how far away I can see it from a distance is there a formula for determining what size font for a particular read distance? Is it better to take the midpoint between the ascender line and x-height or to go purely off of the x-height (since going purely off the ascender line could leave lowercase letters difficult to read)? How does vertical height play into this? Would I need to then figure the hypotenuse distance instead of a straight distance?  For example if I'm shooting for a 20' read distance but the sign is to be placed about 30' up should I use a distance of  35' instead of 20'?  I'm shooting for a 20' read distance for the headline and then possibly a 10' read distance for additional content depending on how it all fits on the active area. Transfer Clash of Clans account from one G+ to another G+ account? Can Recovery Mode install OS X onto a blank SSD? In a bash script, how can I redirect all standard outputs to a log file and tee the output on the screen using exec ?  log_file="$HOME/logs/install.txt-`date +'%Y-%m-%d_%H-%M-%S'`" [ -f "$log_file" ] || touch "$log_file" exec 1&gt;&gt; $log_file 2&gt;&amp;1   This code redirect all the log to the log file but not to the screen . Why doesn't the "zig-zag" comb deformation retract onto a point, even though it's contractible? I am starting to read Hatcher's book on Algebraic Topology, and I am a little stuck with exercise 6(c) in Chapter $0$. Unfortunately a picture is involved so it doesn't quite make sense for me to repeat it here - but I'll do it anyways (maybe it helps)     Let $Z$ be the zigzag subspace of $Y$ homeomorphic to $\mathbb{R}$ indicated by the heavier line in the picture:       Show there is a deformation retraction in the weak sense of $Y$ onto $Z$, but no true deformation retraction."   Now the definition for deformation retraction and weak deformation retraction as as follows:  We say that $f: X \to X$ is a deformation retraction of a space $X$ onto a subspace $A \subset X$ if there exists a family of maps $f_t : X \to X$ with $t \in [0,1]$ such that $f_0 = \mathbb{1}$ (the identity) and $f_1 (X) = A$ and also $f_t$ restricts to the identity on $A$ for each $t$.   A weak deformation retraction is almost the same, only that we now relax the conditions $f_1(X) = A$ to $f_1 \subset A$ and, for each $t \in [0,1]$ we require that $f_t(A) \subset A$.  Hence, as far as I understand the question and the concepts involved, I need to show that basically no map can be constructed such that the bold zigzag - line stays put while the thin lines retract to the bold line over a finite time interval $0 \leq t \leq 1$. However, I should be able to show that I can pull the thin lines continously onto the thick line, provided I am allowed to move points on the zigzag line .. is that correct ?  Now, the problem is I can't see why I shouldn't be able to do the former, given that I could find a weak deformation retract. Any help would be great! Does using an extender actually change the aperture of the lens? I just bought a Canon 2X extender and I always believed that it would only result in 2 stops' loss of light and not change the aperture.    However, when I tested this extender on a Canon 135mm f/2 lens, the maximum aperture I could set went down to F/4.  So it kind of confused me, because if I step down the aperture to f/5.6, is it actually setting the aperture to f/5.6 or f/2.8 (i.e., 1 stop below f/2)?