When I launch an application from the dash I just need to type a few letters and when I see the application I want, I just click on it and it opens.   The problem in the Files &amp; Folder lens. When I see a file in the list, I need to click on it and then it will go down one level and give a few options (Open, Show in Folder and Email) and then I can open it.   Is there an option where I could skip this one level so this file would act as an application?
Before upgrading to 14.04 when I clicked on a file in the dash, it opened the file.   This still happens on my 12.04 machine.  In 14.04 when I click on a file in dash search results, it offers me 3 options: 'Email', 'Open' and 'Show in Folder'.  How can I get back the previous behaviour - i.e. to immediately open the files on the first click?
count lines in a file I'm sure there are many ways to do this: how can I count the number of lines in a text file?  $ &lt;cmd&gt; file.txt 1020 lines I am attempting to set up an nmake makefile to export our balsamiq mockup files to png files automatically, but I'm afraid I can't make heads nor tails of how to make a generic rule for doing so, without explicitly listing all the files I want exported.  details the command line syntax for exporting the files, and  contains an example which looks like it contains a generic rule for .obj files to .exe files. The makefile I have tried so far looks like this: .bmml.png:     &quot;C:\Program Files\Balsamiq Mockups\Balsamiq Mockups.exe&quot; export $&lt; $@  But this doesn't work. If I simply run nmake (with some outdated png files), nmake just does this: [C:\Temp] :nmake  Microsoft (R) Program Maintenance Utility Version 9.00.30729.01 Copyright (C) Microsoft Corporation.  All rights reserved.   [C:\Temp] :  If I ask it to build one specific file, it does this: [C:\Temp] :nmake &quot;TestFile.png&quot;  Microsoft (R) Program Maintenance Utility Version 9.00.30729.01 Copyright (C) Microsoft Corporation.  All rights reserved.  NMAKE : fatal error U1073: don't know how to make '&quot;TestFile.png&quot;' Stop.  [C:\Temp] :  Any nmake gurus out there that can set me straight? An example makefile which simply makes .dat files from .txt files by copying them, to experiment with, looks like this: .txt.dat:     copy $&lt; $@  this does nothing as well, so clearly I'm not understanding how such generic rules work. Do I need to specify a goal above that somehow lists the files I want? How to install Ubuntu on VirtualBox? Prove that any conjugate of $a$ has the same order as $a$. I am trying to prove that any conjugate of $a$ has the same order as $a$.  Let $G$ be a group and let $a \in G$.  An element $b \in G$ is called a conjugate of $a$ if $b=xax^{-1}$.  My professor gave us a hint.  Prove $a^k=e$ iff $b^k=e$ for all $k \in \mathbb{Z}$ implies $o(a) = o(b)$.  My first move is to $b^k = (xax^{-1})^k = (x^{-1})^ka^kx^k = (x^{-1})^kex^k = (x^{-1})^kx^k=x^{-k+k}=x^0$  I am not sure that I am doing this correctly?  I am trying to get $b^k=e$.  However when I raise $(xax^{-1})^k$, I am not sure if I what I have done is correct?  I am kind of confused here. Say, I'm given a filename like libasound.so.2. Is there a way to query the package manager to correlate the filename with its corresponding package?  I'm interested to get answers for any package manager, but my primary focus is on apt and yum. Contextually grey out panel element in python 2.8 I have a panel with split column.  In the 2nd row is 3 boolean variables. I want to grey out the 2nd and 3rd option by default. I want the 2nd to be changeable if 1st is true, and 3rd to be changeable if both 1 and two are true. I've read something about "poll()" but not how to actually use it, or set conditions. Physics should only be enablable if singleMesh, and destructable only if physics enabled.      # Create two columns, by using a split layout.     split = layout.split()      # First column     col = split.column()     col.label(text="Building Size:")     col.prop(bpy.context.scene.user_vars, 'buildingHeight')     col.prop(bpy.context.scene.user_vars, 'buildingWidth')     col.prop(bpy.context.scene.user_vars, 'buildingDepth')      # Second column, aligned     col = split.column()     col.label(text="Dynamics:")     col.prop(bpy.context.scene.user_vars, 'singleMesh')     col.prop(bpy.context.scene.user_vars, 'enablePhysics')     col.prop(bpy.context.scene.user_vars, 'destructable_Building')  #EDIT This is what the specific solution to my example looks like. col = split.column() col.label(text="Dynamics:") col.prop(vars, 'singleMesh') sub = col.row() sub.enabled = vars.singleMesh sub.prop(vars, 'enablePhysics') sub = col.row() sub.enabled = vars.enablePhysics sub.prop(vars, 'destructable_Building') Why have  on every line I've seen this convention pretty much everywhere, and, at times, it comes close to driving me nuts:  &lt;?php //The loop ?&gt; &lt;?php while ( have_posts() ) : the_post(); ?&gt;     &lt;?php the_content(); ?&gt; &lt;?php endwhile; // end of the loop. ?&gt;   Where the &lt;?php and closing ?&gt; are on every single line, even if there is no intervening HTML code.    My question is: Why?  Why include all these extra tags?      To me, it seems this convention adds a significant amount of clutter to code, is annoying to follow in the first place, and adds that many more places to accidentally leave out an opening or closing tag.  NOTE  This is code pulled from the Twenty-Twelve theme, the example given by WordPress. SEO in Stack Overflow Java: splitting a comma-separated string but ignoring commas in quotes Prove that the multiplicative groups $\mathbb{R} - \{0\}$ and $\mathbb{C} - \{0\}$ are not isomorphic. Is my proof correct? I have made use of the fact isomorphism preserves order of elements, which I proved couple of exercises back. I am also interested in other ways of proving it. Is there a more explicit way or is this explicit enough?    Problem Prove that the multiplicative groups $\mathbb{R} - \{0\}$ and $\mathbb{C} - \{0\}$ are not isomorphic.  Solution Recall that isomorphism preserves order of elements and hence if there exists an isomorphism from $\phi: \mathbb{C}-\{0\} \mapsto \mathbb{R}-\{0\}$, then $x \in \mathbb{C} - \{0\}$, and $\phi(x) \in \mathbb{R} - \{0\}$, then $\vert x \vert = \vert \phi(x) \vert$. Now note that the element $i \in \mathbb{C} - \{0\}$ has order $4$. However, no element in $\mathbb{R}-\{0\}$ has order $4$. Hence, no isomorphism can exist. Hence, the multiplicative groups $\mathbb{R} - \{0\}$ and $\mathbb{C} - \{0\}$ are not isomorphic.    Thanks Can "Wow!" be a sentence? The question is clear. Can "Wow!" be a sentence?  Imagine a hypothetical context where I'd utter something like this:     Wow! What an amazing idea! I should think about a way to push this fix.   We see "wow" in casual speech often. It bears punctuation marks (typically an exclamation mark, denoting the rising intonation) and a capital letter &mdash; just like all "regular" sentences.  On the other hand, neither Wow! nor What an amazing idea! contain any verbs. These certainly don't have any parts of speech in the other sentence, so what are they? Are they sentences or clauses? In other words, can "Wow!" be a sentence despite its lack of [any implied] verbs, and subsequently lack of any distinguishable predicates?  Please back up your answers with references. How does one actually show from associativity that one can drop parentheses? I've always heard this reasoning, and it makes obvious sense, but how do you actually show it for some arbitrary product? Would it be something like this?  $$(a(b(cd)))e=((ab)(cd))e=(((ab)c)d)e=abcde?$$  Do you just say that the grouping of the parentheses now corresponds to just multiplying straight through? Thanks. no cycles if and only if has $n-m$ connected components What is the reason for the top secret two space newline markdown weirdness? Why do you cast downvotes on answers? Consider the factorization into irreducibles of $6$ in $\mathbb{Z}[\sqrt{-5}]$. We have $6=2 \times 3$ and  $6=(1+\sqrt{-5}) \times (1-\sqrt{-5})$, i.e. $2$ distinct factorizations. And,  $$6^2=3 \times 3\times2\times2$$ $$=(1+\sqrt{-5}) \times (1-\sqrt{-5}) \times (1+\sqrt{-5}) \times (1-\sqrt{-5})$$ $$=(1+\sqrt{-5}) \times (1-\sqrt{-5})\times3\times2.$$ More generally, $6^n$ will have $n+1$ distinct factorizations into irreducibles in $\mathbb{Z}[\sqrt{-5}]$ by a simple combinatorial argument. But, can we construct a ring in which there exists an element that has an infinite number of distinct factorizations into irreducibles? To make life harder, can we construct an extension of $\mathbb{Z}$ in which this happens? I have been thinking about this for a while and have managed to find no foothold.. Any help is appreciated. Creating "Inner Buffer" using ArcGIS for Desktop? I am currently searching for how to create an "Inner Buffer" in ArcGIS for Desktop?  I have a lot of polygons (houses) in one feature class, and one big polygon (in another feature class).   I want so select all houses contained in that one big polygon within a distance to the outer border (e.g. 1000 meters).  Select Layer By Location could be one possibility to solve this but I can't figure out how. Which is correct: "has died" or "died"? Proof a $2^n$ by $2^n$ board can be filled using L shaped trominoes and 1 monomino Get the subdomain from a URL Getting the subdomain from a URL sounds easy at first.  http://www.domain.example   Scan for the first period then return whatever came after the "http://" ...  Then you remember  http://super.duper.domain.example   Oh. So then you think, okay, find the last period, go back a word and get everything before!   Then you remember  http://super.duper.domain.co.uk   And you're back to square one. Anyone have any great ideas besides storing a list of all TLDs?