I would like to have a keyboard shortcut to write a filename to my clipboard. Currently, I have to hit F2 to start the rename process, followed by CTRL+A to select the whole name and finally CTRL+C to copy the name.  Is there an easier way of doing this? Do I need to create an AutoHotkey script to accomplish this?
Want to copy the file name quickly in Windows. I always use rename, copy , but feel it is quite slow. Any better way?
Argue by contradiction to show that there is no surjection... from $A$ to $\{0,1\}^A$. When $A$ is any (possibly infinite) set  How does one go about this? Why do universal constants have the values they do? This is meant to be a generic question of the type that we get repeatedly on this site, in different versions:        Why do universal constants have the values they do? Can we predict their values theoretically? Do they change over time? How would the world be different if a particular constant had a different value? I have a dataframe with many observations and many variables. Some of them are categorical (unordered) and the others are numerical.  I'm looking for associations between these variables. I've been able to compute correlation for numerical variables (Spearman's correlation) but :   I don't know how to measure correlation between unordered categorical variables. I don't know how to measure correlation between unordered categorical variables and numerical variables.   Does anyone know how this could be done? If so, are there R functions implementing these methods? Converting Polygon into single or all Points using QGIS? How do I import a Python module given its relative path?  For example, if dirFoo contains Foo.py and dirBar, and dirBar contains Bar.py, how do I import Bar.py into Foo.py?  Here's a visual representation:  dirFoo\     Foo.py     dirBar\         Bar.py   Foo wishes to include Bar, but restructuring the folder hierarchy is not an option. Proving $R-S$ contains a prime ideal when $S$ is a multiplicative set I'm mainly trying to prove that      If $0\not \in S\subseteq R$ is a multiplicative subset of a   commutative ring $R$ with identity. Then $R-S$ contains a prime ideal.   Now, by using Zorn's lemma, one can show that $R-S$ contains a maximal ideal I. In fact, I is a prime ideal as well, so we need to show this.To do that, I assumed the opposite, i.e $\exists a,b \in R$ s.t $ab\in I$, but $a,b \not \in I$. Then looked each case. However, I stuck when $a,b \in R-[S\cup I]$. The following is what I've done for this case;  Proof:  In this case, our assumptions are $a,b\in R-[S\cup I]$ and $I + (a) = J$, where $J$ is an ideal in $R$ and $J \cap S \not = \emptyset$.   These imply that; $S^{-1}(I + (a)) = S^{-1} J$, but since $J \cap S \not = \emptyset$, by a theorem that we proved in the class, $S^{-1} J = S^{-1}R$.Therefore, it must be true that $\exists (i\in I, r\in R, s_1,s \in S)$ s.t  $$\frac{i+ra}{s_1} =\frac{1}{s}$$ but this implies $\exists s_2 \in S$ s.t  $$ s_2(is + sra -1 s_1) = 0 \quad \Rightarrow \quad (s_1 s )i + (s_1 s r) a = (s_1 s )1,$$ ,so $$(b s_1 s )i + (s_1 s r) ab = (s_1 s )b.$$ Observe that by our assumption $ab\in I$, so $(s_1 s)b \in I$.  Now, at the point, I don't know how to proceed, so I would appreciate any help or hint because I stuck at this point for over a week now.  Edit  Thanks for the great answers; however, but I'm specifically interested in how to continue from the point where I stuck. How to prove that a simple graph having 11 or more vertices or its complement is not planar? Why don't sandwich toasters have an on/off switch? The absolute majority of electrical appliances have an On/Off switch. However, the absolute majority of sandwich toasters do not - you just plug them into the socket and unplug them when you're done. At least, that's the case for all household sandwich toasters I've ever seen. I'm referring to this device, not the vertical toaster (where the lever doubles as a switch):    It looks like some models do have a switch, but apparently these are just the larger/industrial types, not the common variety.  Why is that? What is the maximum party size and the corresponding monster buffs? What is the maximum party size (if there is one) in Diablo 3?  Additionally, how much of a buff do monsters get when adding party members?     "A new ally has joined, but the minions of Hell grow stronger." This is a special case of , which, I think, might have drawn little attention because it was too general. In this question, I would like to consider a specific case.  Take a classical system given by the action $$ S[x] = \int dt \left[ \frac{\alpha}{2} \ddot{x}^2 + \frac{\beta}{2} \dot{x}^2 + \frac{\gamma}{2} x^2 \right]. $$  This action is Lagrangian, but it is not what we are usually dealing with in physics, because the Lagrangian contains second time derivatives.  The equations of motion are:  $$ \alpha \ddddot{x} - \beta \ddot{x} + \gamma x = 0. $$  This can be solved as usual by employing Fourier transform:  $$ x(t) = a_1 e^{i \omega_1 t} + a_1^{*} e^{-i \omega_1 t} + a_2 e^{i \omega_2 t} + a_2^{*} e^{-i \omega_2 t}, $$  where $\omega_1^2$ and $\omega_2^2$ are the two roots of $\alpha \omega^4 + \beta \omega^2 + \gamma$, given by  $$ \omega_{1,2}^2 = \frac{- \beta \pm \sqrt{\beta^2 - 4 \alpha \gamma}}{2 \alpha} .$$  Now by definition the phase space is the space of solutions of equations of motion. In this case it is parametrized by two complex co-ordinates $a_{1,2}$, meaning that it is 4-dimensional.  I would like to know if there's a natural way to associate the symplectic structure (Poisson bracket) on this phase space. I.e.,  $$ \{a_1, a_1^{*}\} = ? $$ $$ \{a_1, a_2^{*}\} = ? $$ $$ \{a_2, a_1^{*}\} = ? $$ $$ \{a_2, a_2^{*}\} = ? $$ $$ \{a_1, a_2\} = ? $$ $$ \{a_1^{*}, a_2^{*}\} = ? $$ Showing 2 Distributions are the Same Let $X_1, X_2, \dots$ be i.i.d. exponentially distributed RVs. For $n = 1,2,\dots$ consider: $Y_n := \max(X_1, X_2, \dots, X_n)$ $U_n := \sum_{i=1}^{n}\frac{X_i}{i}$ Show that $Y_n$ and $U_n$ have the same distribution   What I've tried: $P(Y_n&lt;y)= P(X_i&lt;y)^n = (1- e^{\lambda y})^n =&gt; P(Y_n=y) = n(1- e^{\lambda y})^{n-1}$ But I get stuck with $U_n$. I tried an MGF, $U_n$ evaluates nicely but then $Y_n$ gets messy. Any thoughts? How to write (La)TeX (with parentheses) [or any other TeX-related logo] How should I act when I see tiny "Have you tried this..?" type of answers? - but IMHO there has to be a simpler solution. If num-lock is on in the BIOS - why is it turned off during linux boot and/or KDE/Gnome/whatever startup? $\sqrt{7\sqrt{7\sqrt{7\sqrt{7\sqrt{7\cdots}}}}}$ approximation How do they film continuous blood pooling? I am little confused with the applicability of reinterpret_cast vs static_cast. From what I have read the general rules are to use static cast when the types can be interpreted at compile time hence the word static. This is the cast the C++ compiler uses internally for implicit casts also.  reinterpret_casts are applicable in two scenarios:   convert integer types to pointer types and vice versa  convert one pointer type to another. The general idea I get is this is unportable and should be avoided.     Where I am a little confused is one usage which I need, I am calling C++ from C and the C code needs to hold on to the C++ object so basically it holds a void*. What cast should be used to convert between the void * and the Class type?  I have seen usage of both static_cast and reinterpret_cast? Though from what I have been reading it appears static is better as the cast can happen at compile time? Though it says to use reinterpret_cast to convert from one pointer type to another? The shortcode produced by this function - a list of all sites in a multisite - outputs above the content in the loop, no matter where it is placed in the editor.  I've looked at the other related questions and answers on WPSE and realize that it has to do with the function using echo instead of return, but it's not as easy as replacing the instances of echo with return in the function below. Or adding echo=0 with a WP function like wp_list_pages()  Any ideas? Where is the function that needs to be returned instead of echoed?  // Output a single menu item function projects_menu_entry($id, $title, $link_self) {     global $blog_id;     if ($link_self || $id != $blog_id) {         echo '&lt;li&gt;';         if ($id == $blog_id) {             echo '&lt;strong&gt;';         }         $url = get_home_url($id);         if (substr($url, -1) != '/') {             // Note: I added a "/" to the end of the URL because WordPress             // wasn't doing that automatically in v3.0.4             $url .= '/';         }         echo '&lt;a href="' . $url . '"&gt;' . $title . '&lt;/a&gt;';         if ($id == $blog_id) {             echo '&lt;/strong&gt;';         }         echo '&lt;/li&gt;';     } }  // Output the whole menu // If $link_self is false, skip the current site - used to display the menu on the homepage function projects_menu($link_self = true) {     global $wpdb;      echo '&lt;ul&gt;';      projects_menu_entry(1, 'Home', $link_self);      $blogs = $wpdb-&gt;get_results("         SELECT blog_id         FROM {$wpdb-&gt;blogs}         WHERE site_id = '{$wpdb-&gt;siteid}'         AND spam = '0'         AND deleted = '0'         AND archived = '0'         AND blog_id != 1     ");      $sites = array();     foreach ($blogs as $blog) {         $sites[$blog-&gt;blog_id] = get_blog_option($blog-&gt;blog_id, 'blogname');     }      natsort($sites);     foreach ($sites as $blog_id =&gt; $blog_title) {         projects_menu_entry($blog_id, $blog_title, $link_self);     }     echo '&lt;/ul&gt;'; }  // Adds a [bloglist] shortcode  function bloglist_shortcode($atts) {     projects_menu(false); }  add_shortcode('bloglist', 'bloglist_shortcode'); I wanted to add classpath to my JDK. While searching a way to do it I noticed everyone open .profile file using terminal. But when I want to open and edit it with a text editor I couldn't see that file in Home folder.  Can someone tell me why is this. And also if possible how can I access .profile in home folder the GUI way. Uncaught exception thrown after moving my website to localhost