I have a content type with a file field.  Is there a way to create an exposed filter in a view for the filename of a document in a file field?  I can get the filename to display in the view by using a file formatter or PHP, but I can't figure out how to allow the user to filter on the document filename.  I also need the filtering to be a contains, not an equal to, so they can enter partial filenames and get results.
We have a view for a type of node that includes a Private File.  We cannot see a way to add an exposed filter, such as "Contains any word", and have it filter based on the file's name.  Are we missing something obvious?
How do I transition to SSL without affecting PageRank? Here at Stack Exchange we're working on moving all traffic to SSL. The reason we're not doing logged-in-users only is that one side of the login divide would suffer a redirect from Google every time.  This happens because Google's only going to have http:// or https:// in the results, not both.  Aside from building the SSL infrastructure (), the outstanding question we have is: how do we best transition to SSL?  Here are the relevant bits of our plan (testing on small sites, moving up to stackoverflow.com):   Get SSL ready/enabled (but not linked to) on all domains Start rendering only the &lt;link rel="canonical"&gt; as https:// Start sending a 301 for all http:// requests to https:// (from our domains...of course we can't do anything about all the existing links pointing to us) After a transition period, set all user cookies as secure   So the endgame is having all content delivered over SSL and all HTTP requests redirected.  What we're primarily concerned with is how this will affect PageRank to our sites. We depend a great deal on traffic that comes from Google and want to ensure that doesn't take a dive as we start delivering more security to our users.  The only bits I've found on this that seem to be substantive are  on :     @Frank Yes, I'm certain that Google treats HTTP and HTTPS URLs as separate URLs for crawling, indexing and ranking (I work with the web-search team here at Google). Doing canonicalization with a 301 redirect like you mentioned is a great way to solve this :) –  Oct 23 '10   and the only webmasters video I could find:  The video doesn't have a solid answer, not one I'd base the future of a company on anyway.  Is our transition plan the best way to accomplish an SSL move, at least from an SEO perspective?  If there's other more recent or concrete advice around how a move like this affects Google ranking we'd love to hear about it. Does anyone know how to model a depletion mode N channel MOSFET in spice?  I have looked online however the majority of resources have shown how to model a depletion type or enhancement type. I specifically want to model a FET that is fully on when there is a 0 Vgs voltage.  Resources i've looked at I have an ArrayList&lt;String&gt;, and I want to remove repeated strings from it. How can I do this? To get the character sequences of a particular keyboard shortcut we use showkey -a or verbatim insert (Ctrl+V). What is the opposite of it? How can I get the keyboard shortcut in human readable format from character sequences? I used some keybindings for example ^[^? ^X^U ^[[3;5~ ^[[1;2D ^[[1;2C ^[[1;5C ^[[1;5D ^[[1;6C ^[[1;6D ....  Now I do not remember which key/key-combination they used to represent. How can I find that out? Update 1 I am looking for something which will output Ctrl+R or Ctrl+Delete etc, I mean in human readable format. Any reference to a table which has possible character sequences and their human readable formats will also do. I want to clear a element from a vector using the erase method. But the problem here is that the element is not guaranteed to occur only once in the vector. It may be present multiple times and I need to clear all of them. My code is something like this:  void erase(std::vector&lt;int&gt;&amp; myNumbers_in, int number_in) {     std::vector&lt;int&gt;::iterator iter = myNumbers_in.begin();     std::vector&lt;int&gt;::iterator endIter = myNumbers_in.end();     for(; iter != endIter; ++iter)     {         if(*iter == number_in)         {             myNumbers_in.erase(iter);         }     } }  int main(int argc, char* argv[]) {     std::vector&lt;int&gt; myNmbers;     for(int i = 0; i &lt; 2; ++i)     {         myNmbers.push_back(i);         myNmbers.push_back(i);     }      erase(myNmbers, 1);      return 0; }   This code obviously crashes because I am changing the end of the vector while iterating through it. What is the best way to achieve this? I.e. is there any way to do this without iterating through the vector multiple times or creating one more copy of the vector? This is a continued discussion from () by return count only.     Problem      Given four lists A, B, C, D of integer values, compute how many tuples   (i, j, k, l) there are such that A[i] + B[j] + C[k] + D[l] is zero.      To make problem a bit easier, all A, B, C, D have same length of N   where \$0 \le N \le 500\$. All integers are in the range of \$-2^{28}\$ to \$2^{28} - 1\$   and the result is guaranteed to be at most \$2^{31} - 1\$.      Example:      Input:  A = [ 1, 2] B = [-2,-1] C = [-1, 2] D = [ 0, 2]       Output:  2       Explanation:      The two tuples are:         (0, 0, 0, 1) -> A[0] + B[0] + C[0] + D[1] = 1 + (-2) + (-1) + 2 = 0   (1, 1, 0, 0) -> A[1] + B[1] + C[0] + D[0] = 2 + (-1) + (-1) + 0 = 0      I'm wondering if there are any ideas to have a solution less than \$O(n^2)\$ time complexity.  Source code in Python 2.7,  from collections import defaultdict def four_sum(A, B, C, D):     sum_map = defaultdict(int)     result = 0     for i in A:         for j in B:             sum_map[i+j] += 1     for i in C:         for j in D:             if -(i+j) in sum_map:                 result += sum_map[-(i+j)]      return result  if __name__ == "__main__":     A = [1, 2]     B = [-2, -1]     C = [-1, 2]     D = [0, 2]     print four_sum(A,B,C,D) I have a directory which contains numbered image files, something like this:  01.png 02.png 03.png 03.svg 04.png 05.png 06.jpg 07.png 08.png 09.png 09.svg 10.png   Sometimes there may be multiple versions of a file in different formats (eg. a png and svg version of the 03 and 09 files above) but the numbers are otherwise consecutive.  Typically there are 40-80 such files in each directory.  The numbers correspond to the order these images appear in a manuscript (a Word document, but that's not important).  There is no other way to determine the order of the images.  If I add a new image to the manuscript I need to place a copy of the image in this directory with the correct numbering.  So if the new image is the fifth in the manuscript I need to rename the files in the directory to this in order to make room for it:  01.png 02.png 03.png 03.svg 04.png 06.png 07.jpg 08.png 09.png 10.png 10.svg 11.png   What is the most straightforward way from the command line, or from a script or macro to renumber all the files starting at a certain number?  I have a standard Fedora Linux install using bash. What are some good tutorials on writing custom styles (classes) that clearly explain commands used and some of the features that TeX has to offer in the way of styles? How do I get my C# program to sleep for 50 milliseconds?  This might seem an easy question, but I'm having a temporary brain failure moment! "Above"/"below" before/after a noun What prevents photons from getting mass from higher order Feynman diagrams The Higgs boson and gluons have no electric charge and photons couple to charge, so there is no tree level interaction between them and photons.  But what prevents higher order diagrams from contributing a non-zero mass term to the photon, for instance    where a photon couples to some fermion (say an electron, or a top quark) which can interact with the Higgs field.   Or consider that same diagram but with quarks and a gluon interacting between them? Or any higher diagram with even more loops?  I have heard charge conservation depends on gauge invariance, which in turn depends on photons being massless.  So it appears the photon has no mass, and these diagrams must all cancel somehow.  So I'm hoping there is a very nice symmetry explanation for why they all disappear, but if I say "because of gauge invariance" that would be circular logic, so there must be another symmetry at stake here?     What prevents photons from obtaining a mass from high-order self-energy loop diagrams? Can I set the start point of a bezier curve? Combining  with allowframebreaks in beamer Inverse of a Positive Definite Let K be nonsingular symmetric matrix, prove that if K is a positive   definite so is $K^{-1}$ .   My attempt:  I have that $K = K^T$ so $x^TKx = x^TK^Tx = (xK)^Tx = (xIK)^Tx$ and then I don't know what to do next. Background on color perception:  Due to the nature of the human eye and visual processing by the brain, there's an optical illusion that the same color will look different depending on the background.   It is known as the , illustrated below — center rectangles are identical:   Source:   An illustration  makes the effect of the background's color even more obvious:     Source:   (Note how the two upper-most colors in the second image appear the same, but are actually completely different.)    What about web design?  My question pertains to web design, specifically in this case, the color of link text on different backgrounds.  For a given color of text, how can one find the complementary color to make it appear the same on a certain background?    Let's take a look at an example for this question:  Consider my example below, with yellow text #FFF000 on the following backgrounds:    white #FFFFFF, black #000000, and grey #555555.          As expected, doesn't look the same at all. ()  How can we make it look the same on all three? Clearly, the text on the white background needs to be a darker yellow, and the one on the grey needs hue/tone adjustments. (The surrounding text will also affect it — but that's likely harder to account for.)  Can this perfect color somehow be calculated, based on the Hex, RGB or another system? That's where the crux of this question lies, as it would be much more efficient than manually approximating. My computer is loud: How do I tell which fan is the issue? On my new computer, my fan(s) is/are plain LOUD! Using SpeedFan, I find that my temps are all under 32 degrees C under my normal use (IDK how accurate that is but the CPU itself says 27 C).  The fan doesn't sound unbalanced and it isn't making sounds in rhythm (Not the usual rrrrrrrRRRRRR... rrrrrrrRRRRRR... rrrrrrrRRRRRR... rrrrrrrRRRRRR), just a constant fan. I am thinking about oiling the fans, but I can't decide if it is the PSU fan or a case fan or the CPU fan. If it's the CPU fan I will most likely just replace that with a quiet fan. How can I tell which fan is making the noise (if not multiple)?  One thing that I am thinking may be the problem is my CPU fan isn't PWM so would swapping that out help? There is no "linear voltage" or etc thing in BIOS so I think it may be running at full speed. Also, I could have too much airflow because it is also making a whistling noise that you can hear close to it that sounds like when I accedentially put part of the side cover over my floor vent to get it out of the way. SOQL result ordering in the absence of an Order By clause In the absence of an  in a SOQL query, what order will Salesforce return results in?  Clearly if ordering is important then Order By should be specified, but I recently encountered a question about what the order would be if it was undefined.  My initial thoughts were Salesforce would return them in whatever order suited them. Much like .  For simple queries this would typically line up with the creation date descending and the Id ascending. For more complex queries it would depend on the joins being performed. How to use grep on column? I want to apply grep on particular column in column command.  myfile.txt  3,ST,ST01,3,3,856 3,ST,ST02,4,9,0234 6,N1,N101,2,3,ST 6,N1,N102,1,60,Comcast 6,N1,N103,1,2,92   My Command:  column -s, -t &lt; myfile.txt | grep -w "ST"   Here I want to only grep the pattern ST in 2nd column. How to do this ?  Expected Result:  3       ST            ST01              3            3            856 3       ST            ST02              4            9            0234 Can a werewolf turn a muggle into another werewolf? What does \x mean in C/C++?