How to write a script to open current path from nautilus in guake I use  with  as my preferred terminal on Ubuntu 14.04LTS. I would like to be able to run a script from nautilus that does the following actions:  Ctrl + L, Ctrl + C, F12, cd Ctrl + Shift + V  meaning: Open the path I am currently in on nautilus in Guake/tmux.  I followed the instructions that are mentioned in  question and created the following script (called test.sh):  #!/bin/bash xdotool key Ctrl+L xdotool key F12 xdotool type cd xdotool key space xdotool key Ctrl+Shift+V   and put it in ~/.local/share/nautilus/scripts as indicated   It works fine when it is put in a directory and run from there.  However, when I run the script from the nautilus menu. it always enters the string  /home/bruni/.local/share/nautilus/scripts/test.sh  irrespective of where I am in Nautilus  PS: The proposed solution does not necessarily have to build on the above path of using xdotool. I am perfectly happy with any solution that would let me open the current nautilus path in guake/tmux (the running shell not a new one).
How To Program A Bash Script That Presses A Certain Combination Of Keys? Please, i need someone to help me in making a very simple bash script. The job of this script is just to press a certain combination of keys on the keyboard.  My objective is to create a script that would turn off the Kubuntu desktop effects completely. The key combination for that is: "Left-ALT + Left-Shift + F12". I am aware that there is a widget that might do this job, but i am trying to learn how to accomplish it with a bash script.  I have tried to do an online search but i guess i was choosing the wrong set of keywords. I did not manage to reach a tutorial or a reference that would mention this task.  Thanks in advance for your help!  P.S: Any suggestions, references, notes, comments or tutorials would also be greatly be appreciated.
How do I get a really wide tilde?  I need to cover at least  abcdefghijklmnopqrstuvwxyz  The \widetilde command does not work. Nor using \stackrel with \sim. How to write conditional equations with one-sided curly brackets How can I expand a partition into non adjacent free space using GParted? Totally disconnected space that is not $T_2$ Shouldn't there be a way to prevent automatic awarding of a bounty? For example, if someone provides an answer that sounds good but is totally wrong, it may happen that it gets a score of +2, but doesn't deserve the bounty. If no one else answers, half the bounty will automatically go to this person. Automatic awarding is good if an inactive user offers a bounty, but I think there should be a button that basically means "I know the bounty should now be awarded, but I have read the answers and none of them deserve the bounty".  The button should obviously not refund the bounty, just let it go to /dev/null instead of awarding it to someone who doesn't deserve it. Are IP addresses with and without leading zeroes the same? What is the optimum button size of touch screen applications? There was a not so recent blog post about the ideal button size of touch screen control sizes (sorry there is no link, the website is now a spam trap) that was based on the  form the MIT touch lab that gives some measures of the size and sensitivity of the finger. If found that averages for finger pads are between 10–14mm and fingertips are 8–10mm. This would make 10mm x 10mm a good minimum touch target size.  As the author of the blog pointed out, this ideal contact size is much larger than the suggested size for Windows and Apple devices that is in their design guides. I am wondering why there is such a difference, and whether it makes more sense to increase the size of controls on touch screen applications, or if this is not really a usability issue at all? Also, it seems that many mobile websites and apps seem to completely ignore these principles. I am sure the screen size poses a limitation to how big the interface controls can be, so is this simply a trade-off between being able to fit in as much information versus how easy it is to interact with the control? It feels as if the stylus is not something that is in much use. A similar question has been raised on the minimum/smallest size that you can get away with, but I would consider this to be a different question to what the optimum size should be, because the smallest size accommodates the minimum usability requirement, whereas the optimum size caters for the best usability requirement. Archived link of the blog (original domain shows spam)  And here is another reference it to (just to show that it is not the problem with the link but the website () UPDATE #1: another new reference that has a very precise figure of a minimum of 44 x 44 points, not sure how it is derived exactly but interesting (). Read Section 2. Provide Large Clickable Elementss. UPDATE #2: another reference, this time from  citing touch target size to 9 mm square or greater (48x48 pixels on a 135 PPI display at a 1.0x scaling plateau). They also suggest avoid using touch targets that are less than 7 mm square. UPDATE #3: something from the  that I referenced recently citing 44 x 44 points. UPDATE #4: NN/g has published an article on  and the information/conclusion remains unchanged. UPDATE #5 A really nice write-up on the need to enhance the  of common UI elements, citing the  that the &quot;minimum target size for touch or mouse should be 44×44 pixel&quot; (2.5.5 - Target Size - Level AAA). Evaluate $\lim_{n\rightarrow\infty} \int_0^1 f(x^n) dx$ Algorithm for computing Hadamard product of two rational generating functions If I have two generating functions $A(x) = \sum_na_nx^n$ and $B(x) = \sum_n b_nx^n$   then the Hadamard product is $(A \star B)(x) = \sum_{n} a_nb_nx^n$.  Now when $A$ and $B$ are both rational functions ($P(x)/Q(x)$ with polynomials $P, Q$) I've seen non-constructive proofs that $A \star B$ is also rational.  Given two rational generating functions $A$, $B$, is there an algorithm that efficiently computes $A \star B$? Or at least a constructive proof you could use to write an algorithm? Installing older iOS for device testing Access Java / Servlet / JSP / JSTL / EL variables in JavaScript How to modify an invalid '/etc/sudoers' file? How do I edit an invalid sudoers file? It throws the below error and it's not allowing me to edit again to fix it.  Here is what happens:  $ sudo visudo &gt;&gt;&gt; /etc/sudoers: syntax error near line 28 &lt;&lt;&lt; sudo: parse error in /etc/sudoers near line 28 sudo: no valid sudoers sources found, quitting Is there a way to set transparency of windows in GNOME? This is what I see:  GNU GRUB version 2.02~beta2-9ubuntu1  Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists possible device or file completions.  grub&gt; _   What should I do now? $I_m - AB$ is invertible if and only if $I_n - BA$ is invertible. The problem is from  Algebra by Artin, Chapter 1, Miscellaneous Problems, Exercise 8. I have been trying for a long time now to solve it but I am unsuccessful.      Let $A,B$ be $m \times n$ and $n \times m$ matrices. Prove that $I_m - AB$ is invertible if and only if $I_n - BA$ is invertible.    Please provide with only a hint. Cardinality of $\mathbb{R}^\mathbb{R}$ by diagonal argument I want to prove that the set of all real functions $\mathbb{R}^\mathbb{R}$ has a higher cardinality than the real numbers $\mathbb R$, by Cantor's diagonal argument.  I'm having difficulties with approaching this problem.  What I'm looking for is a hint in the right direction.  I've seen an example where it is shown that the power set $2^S$ of a countable set $S$ is uncountable, by the diagonal argument. I created this style that shifts the labels and put them on the bottom of the ybars.  However, I have a problem with the bars that have too short length (for example, see the 8.7 and 5.1 in the example below). I want to check if the values are less than some threshold, or the length of the bar is shorter than the label (number) then change its color.  How can I overlay another label on top of the one in white when the bar is shorter? or maybe change the color of the label to a gradient color? or just overlay the part that is outside of the bar?    \documentclass{standalone}  \usepackage{tikz} \usepackage{pgfplots} \usepackage{pgfplotstable} \usetikzlibrary{calc}  \begin{document} \makeatletter \begin{tikzpicture} \begin{axis}[ ybar, every node near coord/.style={   check for zero/.code={ % If meta=0, make the node a coordinate (which doesn't have text)     \pgfmathfloatifflags{\pgfplotspointmeta}{0}{         \pgfkeys{/tikz/coordinate}     }{}   },   check for zero, color=white, text opacity=1, font=\footnotesize, inner ysep=0.5pt, },% % Bottom nodes  calculate full offset/.code={     \pgfkeys{/pgf/fpu=true,/pgf/fpu/output format=fixed}     \pgfmathsetmacro\testmacro{((\pgfplotspointmeta-\pgfkeysvalueof{/pgfplots/ymin})*10^\pgfplots@data@scale@trafo@EXPONENT@y)*\pgfplots@y@veclength}     \pgfkeys{/pgf/fpu=false} },% nodes near coords bottom/.style={     every node near coord/.append style={         /pgfplots/calculate full offset,         yshift=-\testmacro,         rotate=90, anchor=west,%I need the rotate text here and not in the          %general style, as the ybar redefines the style     } },% ymin=0, nodes near coords={\pgfmathprintnumber[fixed zerofill,precision=1]{\pgfplotspointmeta}}, nodes near coords bottom, ] \pgfplotstableread{ % set real imag mag 1 8.7 2 5.1 3 91.8367  }\mydata \addplot table[x index=0,y index=1,header=false] {\mydata}; \end{axis} \end{tikzpicture} \makeatother \end{document}   * EDIT *  I need to create some special gradient on each label that is below the bar height. For example, I need to adapt something like  to each label that is not showing. However, I cannot find a way to put the macro in the style section of the codes. Or is there any equivalent solution? Is it possible to instantiate an object at runtime if I only have the DLL name and the class name, without adding a reference to the assembly in the project? The class implements a interface, so once I instantiate the class, I will then cast it to the interface.  Assembly name:     library.dll    Type name:      Company.Project.Classname     EDIT: I dont have the absolute path of the DLL, so Assembly.LoadFile won't work. The DLL might be in the application root, system32, or even loaded in the GAC. "Being" or "to be"? Which is better structured?     "She loves to be herself instead of showing off"    or     "She loves being herself instead of showing off"   or     "She loves being and not appearing" Adding an [AuthorYear] block at the beginning of bibliography entries I want to add a block at the beginning of my bib entries of the form      [Lastnameauthor(s) Year]   When the shortauthor field is defined it should use this field +Year instead. The following example is fairly minimal:  \begin{filecontents*}{test.bbx} \ProvidesFile{test.bbx}  [\abx@bbxid $Id: test.bbx,v 0.9d 2010/09/03 20:11:58 lehman beta $]  \RequireBibliographyStyle{authoryear}  \DeclareBibliographyDriver{article}{%   \usebibmacro{bibindex}%   \usebibmacro{begentry}%   %---add something here---   \usebibmacro{author/translator+others}%   \setunit{\labelnamepunct}\newblock   \usebibmacro{title}%   \newunit   \printlist{language}%   \newunit\newblock   \usebibmacro{byauthor}%   \newunit\newblock   \usebibmacro{bytranslator+others}%   \newunit\newblock   \printfield{version}%   \newunit\newblock   \usebibmacro{in:}%   \usebibmacro{journal+issuetitle}%   \newunit   \usebibmacro{byeditor+others}%   \newunit   \usebibmacro{note+pages}%   \newunit\newblock   \iftoggle{bbx:isbn}     {\printfield{issn}}     {}%   \newunit\newblock   \usebibmacro{doi+eprint+url}%   \newunit\newblock   \usebibmacro{addendum+pubstate}%   \setunit{\bibpagerefpunct}\newblock   \usebibmacro{pageref}%   \usebibmacro{finentry}}  \endinput  \end{filecontents*} \begin{filecontents*}{MeineBib.bib}   @article{example,  author={Firstname Lastname and First Last},   title={Title},  journal={Journal},  year={Year},   pages={Pages}, }    \end{filecontents*}  \documentclass[12pt,ngerman,    ]{scrartcl} \usepackage[ngerman]{babel} \usepackage{filecontents} \usepackage[babel,german=quotes]{csquotes} \usepackage [bibstyle=test]{biblatex} \bibliography{MeineBib}  \begin{document} \tableofcontents \cite{example} \printbibliography\end{document}   I'm guessing the solution lies here  DeclareBibliographyDriver{article}{%       \usebibmacro{bibindex}%       \usebibmacro{begentry}%       %---add something here---       \usebibmacro{author/translator+others}%   but I can't find out how. It should look like this  which is an existing style (natdin) in BibTeX, but not in biblatex.