I wanted to make custom colors for the ls command with zsh, but I find that all the previous answers to this do not work for me.  I tried all these options:  Option 1)  #LS_COLORS='no=00;37:fi=00:di=00;33:ln=04;36:pi=40;33:so=01;35:bd=40;33;01:' #export LS_COLORS #zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}   Option 2)  #LS_COLORS='di=1:fi=96:*.m=31:*.py=32:*.txt=36:*.out=35' #export LS_COLORS #zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}    Option 3)  #zstyle ':completiom:*' list-colors 'di=1:fi=96:*.m=31:*.py=32:*.txt=36:*.out=35'   Option 4)  #zstyle ':completion:*' list-colors 'di=34:ln=35:so=32:pi=33:ex=31:bd=46;34:cd=43;34:su=41;30:sg=46;30:tw=42;30:ow=43;30'   but all result of the ls command are displayed as if no color option was turned on.  The only thing that seems to work to change the colors at all is this:  unset LSCOLORS export CLICOLOR=1 export CLICOLOR_FORCE=1   which I found from another answer somewhere that I can't find. However, what I want is to use my own custom colors indicated by:  #LS_COLORS='di=1:fi=96:*.m=31:*.py=32:*.txt=36:*.out=35'     Appendix   For completness I also saw someone suggest to use gls but I had issues brew installing it so I gave up on that. Sorry can't find the link to that anymore.     Cross posted:   reddit:  Quora:
I know that a similar question has been asked in:        although I didn't really understand the answer and couldn't really make it work.  However, I have tried something different. I decided to read the manual page for ls and it mentions different environment variables that can be set when dealing with the ls command. If one goes to the -G option it says to look at the CLICOLOR environment variables. I did and that one links you to documentation for the LSCOLORS environment variable. I went to it and it mentions:     "The value of this variable describes what color to use for which attribute when colors are enabled with CLICOLOR. This string is a concatenation of pairs of the format fb, where f is the foreground color and b is the background color. "   It also mentions that the default value of LSCOLORS is "exfxcxdxbxegedabagacad" and that each part specifies the color of some specific thing in the ls command. For example, the first pair ex in example specifies the color of directories. the second fx the color of symbolic links etc... e means blue and x means default "foreground".  1) First what does this mean: "when colors are enabled with CLICOLOR"?  2) What does "foreground" mean?  What must environment variables be for the ls command to color the output however I desire?    I also tried:  ls --color   But it threw me the following error:  ls: illegal option -- - usage: ls [-ABCFGHLOPRSTUWabcdefghiklmnopqrstuwx1] [file ...]   The same error happened when I did ls --color=auto: it alone also throws an error. I have no idea why, and am not sure if it was due to iTerm2 or OS X or why that happened. It seems it works on other systems...
What is the value of lim$_{n\to \infty} a_n$ if $\lim_{n \to \infty}\left|a_n+ 3\left(\frac{n-2}{n}\right)^n \right|^{\frac{1}{n}}=\frac{3}{5}$? Let $\{a_n\}$ be a sequence of real numbers such that $$\lim_{n \to \infty}\left|a_n+ 3\left(\frac{n-2}{n}\right)^n \right|^{\frac{1}{n}}=\frac{3}{5}.$$  What is the value of $\lim_{n\to \infty} a_n$? How to type en-dash and em-dash in Windows 7/8? I write blog posts, and I often need to type en-dash (–) and sometimes em-dash (—) in my blog posts. Currently I keep these characters saved in a text file, and copy-paste them whenever I need them. Unnecessary to say, it is a headache to move between keyboard and mouse when you type large texts.  It would be better for me if there ware a keyboard shortcuts available for these two characters. Is there a way to type en-dash and em-dash in Windows? I use Windows 7 and Windows 8 in different computers.    Here's an aligned comparison of dashes, if you need to see the difference for some reason.   Here's-dash Here's–en-dash Here's—em-dash How to roll back Ubuntu to a previous version? I just installed a new version of Ubuntu and I want to roll it back to the previous version.  How can I do that? Is that even possible? I'm testing an application which opens its own ports (acts as a server for these ports, hence listens at that ports) and where the same application connects to ports bound by other applications (acts as client for these ports).  I would like to get an overview as to which ports the application creates and to which applications and ports it connects to.  How can I do this? How do you programmatically set an attribute? I have an Ubuntu machine that I'm using as my home Internet router.  It uses a USB mobile broadband modem as its Internet connection, and shares this with another router (via the router's "Internet" port) which I use as my LAN.  How do I redirect requests from within my LAN for a given URL to a custom IP address (ex have google.com redirect to x.x.x.x)? What time does sound good to you?     What time sounds good to you?    Is there a difference? I just bought a  game (Forza 4) for my Xbox 360 (bought in the US). When I tried to play the game, it wouldn't load because of region issue. Is there a legal way to solve this (no crack)? In my experimentation, I've used only BJTs as switches (for turning on and off things like LEDs and such) for my MCU outputs. I've been repeatedly told, however, that N-channel enhancement-mode MOSFETs are a better choice for switches (see  and , for examples), but I'm not sure I understand why. I do know that a MOSFET wastes no current on the gate, where a BJT's base does, but this is not an issue for me, as I'm not running on batteries. A MOSFET also requires no resistor in series with the gate, but generally DOES require a pull-down resistor so the gate doesn't float when the MCU is rebooted (right?). No reduction in parts count, then. There doesn't seem to be a great surplus of logic-level MOSFETs that can switch the current that cheap BJTs can (~600-800mA for a 2N2222, for example), and the ones that do exist (TN0702, for example) are hard to find and significantly more expensive. When is a MOSFET more appropriate than a BJT? Why am I continually being told that I should be using MOSFETs? Can someone give me a hint how to the irreducibility of $X^{p-1} + \cdots + X+1$, where $p$ is a prime, in $\mathbb{Z}[X]$ ?    Our professor gave us already one, namely to substitute $X$ with $X+1$, but I couldn't make much of that. When is the present perfect tense used instead of the past tense? What is the difference between class and instance attributes? Should I always use the perfect present, when the sentence uses "never"? In my English classes, I was taught that never should not be used with past forms, only with present perfect forms; this is also what I read in a grammar book I bought some years ago. (I bought the book in the USA; I guess the book is about American English grammar, but I don't have any reason to believe there is any difference between American, and British English in this case.)  Is it correct to use never with the past tense?     I never said that.        I have never said that. In bash, read after a pipe is not setting values Deleting photos on the phone - does it affect them on iCloud? How to increase battery life on Ubuntu 20.04 and what power saving software should I install, if any? Game State 'Stack'? I was thinking about how to implement game states into my game. The main things I want for it are:   Semi-transparent top states-being able to see through a pause menu to the game behind Something OO-I find this easier to use and understand the theory behind, as well as keeping orgranised and adding more to.    I was planning on using a linked list, and treat it as a stack. This means I could access the state below for the semi-transparency.  Plan: Have the state stack be a linked list of pointers to IGameStates. The top state handles its own update and input commands, and then has a member isTransparent to decide whether the state underneath should be drawn.  Then I could do:  states.push_back(new MainMenuState()); states.push_back(new OptionsMenuState()); states.pop_front();   To represent the player loading, then going to options, and then main menu.  Is this a good idea, or...? Should I look at something else?   Thanks. Explain how (or if) a box full of photons would weigh more due to massless photons I understand that mass-energy equivalence is often misinterpreted as saying that mass can be converted into energy and vice versa.  The reality is that energy is always manifested as mass in some form, but I struggle with some cases:  Understood Nuclear Decay Example  In the case of a simple nuclear reaction, for instance, the total system mass remains the same since the mass deficit (in rest masses) is accounted for in the greater relativistic masses of the products per $E=\Delta m c^2$.  When a neutron decays and you are left with a fast proton and a relativistic electron.  If you could weigh those two without slowing them down, you would find it weighed as much as the original neutron.  Light in a Box  This becomes more difficult for me when moving to massless particles like photons.  Photons can transmit energy from one heavy particle to another.  When a photon is absorbed the relativistic mass (not the rest mass) of the (previously stationary) particle that absorbs it increases.  But if my understanding is correct, the energy must still be manifested as mass somehow while the photon is in-flight, in spite of the fact that the photon does not have mass.  So let's consider a box with the interior entirely lined with perfect mirrors.  I have the tare weight of the box with no photons in it.  When photons are present the box has an additional quantifiable amount of energy (quantified below) due to the in-flight photons.  Say there are $N$ photons... obviously assume $N$ is large.  $$\Delta m = \frac{ E }{ c^2 } = \frac{ N h }{ \lambda c}$$  Interactions are limited to reflections with the wall, which manifest as a constant pressure on the walls.  If I hold this box in a constant gravitational field (like the surface of Earth) then there will be a gradient in the pressure that pushes down slightly.  Is this correct?  Wouldn't there still technically be mass as the photons are in-flight, which would cause its own gravitational field just as all matter does?  How is this all consistent with the assertion that photons are massless?  Is it really correct to say that photons don't have mass?  It seems to be a big stretch.  Please offer a more complete and physically accurate account of this mirror-box. I gave Google my phone number to verify it, not knowing that it would change it, and now my phone number is completely different? What have I done, and how do I unverify it and change my phone number back? Pluralizing abbreviations where the noun is not the last word For abbreviations - both acronyms and initialisms - where the last word in the abbreviation is the noun, I'm accustomed to adding an 's' with no apostrophe (e.g. ATMs), as described in the answer to this question:   But how do you pluralize abbreviations where the noun is not the last word? E.g. 'Point of Presence' (POP)  I can see how 'POPs' could read 'Point of Presences', when the intention is 'Points of Presence.'