I'm using many basic commands of unix/linux. In Mac OS X Mavericks, I type cat for a file, but output was faulty.  In example, content of the file named bar:  foo    bar   Then:  kaanklky-air:foo-folder kaanklky$ cat bar foo barkaanklky-air:foo-folder kaanklky$   cat command give last line of file with shell's last status, so I want edit cat command to fix it.  How I can do it?
What I get:  host:~ user$ cat example.txt some texthost:~ stas$   What I want to get:  host:~ user$ cat example.txt some text host:~ stas$   Is there a way I can make cat behave like this?  I'm using bash on Mac OS X.
Press-and-hold or Long-Press Gestures: Unintuitive? Often, I find people struggle with the usage of press-and-hold gestures on mobile/web platforms. The mere thought of having a user press on a defined object and hold for an arbitrary amount of time before the product reacts seems overtly complicated and unobtrusive. My questions are:   For what use cases do press-and-hold gestures best fit? Have there been published studies with regards to press-and-hold gesture intuition? Are there more viable alternatives to this system? Get variable from PHP to JavaScript ffmpeg working from command line in Terminal but not in an Automator shell script! Ordered Pair Formal Definition I understand what an ordered pair is, but I'm having trouble the formal Kuratowski definition which says that $\langle a,b \rangle = \{\{a\},\{a,b\}\}$. What about this definition imposes order on the pair? Word for the satisfaction of curiosity There is a good feeling you get when your curiosity is satisfied, especially if is about a question you found interesting or important, or have spent a lot of time and energy trying to answer. Depending on how much I wanted to know, this feeling can be quite pleasing. Is there a word specifically for either the satisfaction of a curiosity, or the feeling that results? How to prove $n^5 - n$ is divisible by $30$ without reduction When can you build up all representations from the fundamental and antifundamental ones? Under what conditions can you determine all representations of a Lie algebra from the fundamental and antifundamental ones using just the tensor product, direct sum and Clebsch-Gordan decomposition? I think this is true for $\mathfrak{su}(2)$ and $\mathfrak{sl}(2,\mathbb{C})$, or at least that's what physics books lead me to believe!   Is it true in general for semisimple Lie algebras? Is it wasteful to use a heating element, instead of doing useful work? Consider a computer CPU consuming electrical energy to perform calculations and consequently emitting heat.  Assumption: That a CPU consuming x Watts of power, emits the same amount of heat as an incandescent heating element which consumes the same amount of power.  The rest of the question assumes that this is true: the energy has to go somewhere, and I can't see that the outcome of the calculations counts as "somewhere".  I've long repeated the claim that "wasteful" appliances such as incandescent lightbulbs, over-full kettles, computers left running, etc. are not wasting power if we make the assumptions:   the appliance is in a room which we aim to maintain at above a certain temperature, warmer than the external temperature (cf a home in winter) the room leaks heat to the outside faster than the "wasteful" appliances emit heat. the room contains an electric heater the electric heater is regulated by a thermostat   In these circumstances, I think (?), if a light bulb produces excess heat, its only effect is to cause the thermostat to switch off sooner, so what energy you've "wasted" in the light bulb, is "saved" at the heater.  I don't think that's controversial.  But my question is:   If a CPU does useful work, and emits all the input energy as heat as a side effect But a heating element emits the same heat, without doing useful work Is it therefore wasteful to use heating elements? Is it more efficient to (for example) run  on a CPU, to get "free" computation as a side-effect of heating?   One reason to heat a room with a heating element, rather than with CPUs, is that the heating element is much cheaper to produce. But ignoring the initial cost of the hardware, would a "heater" made out of 20 CPUs, each running at full capacity and consuming 50W each, output less thermal heat than a 1KW element that does nothing else useful?  To be useful, of course, the CPUs would need to output the result of their computations, which would account for a tiny amount of energy. Let's assume that's negligible.  I'm sure there's a flaw in there somewhere; probably that the assumption above is false. What have I missed? Conky does not work properly on Ubuntu 16.04 GNOME I have this strange problem with conky. It doesn't show properly on the desktop:    I've tried everything from editing conky widget file to reinstalling conky and conky manager (v.2.4). Who knows how to fix it? If low-cost index funds are considered the best investment, why are there so many high-cost, managed funds? The general consensus is that the single best indicator of a fund's future performance is the its expense ratio . If you look for more than 5 minutes online you discover the  approach to investing; the , etc. It looks like the less you pay for a fund (and therefore the less it's managed), the better it does in the long run.  So why is it that in peoples' 401(k)s there are so many high-cost actively managed funds? Furthermore, why are there so many high-cost actively managed funds in the first place? Shouldn't the market reflect the fact that actively-managed funds typically don't beat the index they benchmark to and and react by purging itself of these crappy funds? Same mesh with different colors where instance variables get initialized Short story with competitors complaining to government about a new very popular synthetic food Synthetic foods are all the rage, and while some are new and novel, many are attempts to recreate the taste and texture of a natural foods, with varying degrees of success. One company introduces a new synthetic food that becomes wildly popular. The competition analyzes it, and based on discovering what natural creature it is based on, they petition the government to ban it.      They discover that the product is synthetic human flesh, so consuming it is not technically cannibalism, but it is similar, as they explain to the panel of government officials. Why are 50mm Lenses Cheaper? Selecting faces on object from UV editor window I can't see this as an option so is there a way to select faces or islands and have them show up as selected faces on the object in 3D view.  In programs such as maya it is possible to work from either view and makes selection and mapping a little more user friendly.  I suspect it isn't possible in Blender but welcome your feed back.  Edited as flag as already answered, although the question was not asked in the other post in a way that showed in my search.  I was looking for face and island selection to show in both views. The other asked about unselected vertices this obviously did not appear in the results. Can't modify list elements in a loop Javascript mechanism to autoscroll to the bottom of a growing page? Downloading from Play Store gives error 491 When I try to download anything from the Play Store it shows error 491 and can't finish the download. I have a Samsung Galaxy S 7582. How do I fix this? I'm currently using an entry-level DSLR with 18-55mm lens and having great trouble trying to creating a blurred background effect in my photos. Now matter what aperture or shutter speed I choose, I'm not able to get it.  There's a general question about , but what specific things can I do to get this effect with an entry-level lens? Batch convert 4 PDF pages to one PDF page