Recently, I stumbled over some configuration files. To gather more information about its structure and how the its used, I either do a quick research on the internet (just ask Google) or use the man command directly in the terminal.  In most cases it is obvious by which application the configuration belongs to which configuration file. The man page of the application refers to other man pages for further information and documentation. In the case I have no idea, a man -k file-or-path or apropos file-or-path points me sometimes in the right direction.  This approach works in most cases, but not always. Is there a convenient way to get more information in cases where I have no clue (apart from a research on the internet)? What are other strategies? Are there tools (some kind of ZSH plugins) you may recommend?
I finally got fed up when wanting to read about bash's read and it's -s option with man bash. I found the right spot eventually (around line 4500), but it was a frustrating as usual, since both /read and even /\s-s\s searches have way too many matches.  So, the question is: How can I read long man pages efficiently, or get same information in other ways, locally? As a specific example, how to reach the relevant documentation after seeing read -s pwd in a shell script? A good answer could be a shell script snippet, or hint about some tool and how it is used, or something else entirely, as long as it helps in finding the right spot to read.  Note: I'm not tagging with  because I want the question to be about man page reading in general, even though that quite possibly is the most commonly encountered humongous man page.
I have a method that I would like to call.  However, I'm looking for a clean, simple way to kill it or force it to return if it is taking too long to execute.  I'm using Java.  to illustrate:  logger.info("sequentially executing all batches..."); for (TestExecutor executor : builder.getExecutors()) { logger.info("executing batch..."); executor.execute(); }   I figure the TestExecutor class should implement Callable and continue in that direction.  But all i want to be able to do is stop executor.execute() if it's taking too long.  Suggestions...?  EDIT  Many of the suggestions received assume that the method being executed that takes a long time contains some kind of loop and that a variable could periodically be checked. However, this is not the case.  So something that won't necessarily be clean and that will just stop the execution whereever it is is acceptable. Normal text is invisible when using beamer with notes and XeLaTeX I'm using beamer with xelatex to prepare a talk.  If I switch on notes on right I'm experiencing strange behaviour:  When using csqoutes in the title, all normal text afterwards becomes invisible (or white). The text selectable in the output pdf. Note that the text is also visible in the small preview on the note page.  This does not happen when using pdflatex or lualatex.  MWE:  \documentclass{beamer} \usepackage[autostyle=true,german=quotes]{csquotes}  \usepackage{pgfpages} \setbeameroption{show notes} \setbeameroption{show notes on second screen=right}  \begin{document}    \begin{frame}         \frametitle{\enquote{Enqouted Title}}     \end{frame}      \begin{frame}         \frametitle{This is the second slide}         Lorem ipsum dolor sit amet, consectetuer adipiscing elit.     \end{frame} \end{document}   Update:  csqoutes is not the culprit. Seems to be a general problem when using xelatex and beamer with notes enabled.  New MWE:  \documentclass{beamer}  \usepackage{pgfpages} \setbeameroption{show notes} \setbeameroption{show notes on second screen=right}  \begin{document}     \begin{frame}         \frametitle{First Slide Title}         Here be text     \end{frame}      \begin{frame}         \frametitle{This is the second slide}         Lorem ipsum dolor sit amet, consectetuer adipiscing elit.     \end{frame} \end{document} Syntax highlighting with less, trouble with lexer I have installed python-pygments and using it for syntax highlighting with less as described by mankoff  I put a function in my .bashrc  cless () {     pygmentize -f terminal "$1" | less -R }   it is enabling syntax highlighting with less. But when I am going to open a file like /etc/fstab or /etc/apt/apt.conf a error saying  Error: no lexer for filename '/etc/apt/apt.conf' found   I found option to show pygmentize the lexer with -l at this . But what will be the appropriate lexer for such files? and how to use it? Unknown Column In Where Clause Find Neural Network Inputs Given Outputs I've trained a neural network with two inputs, a single hidden layer with two neurons, and one output using a bipolar sigmoid activation function. If a single input is known, how would I determine the second input to create a desired output?  For example, let's say the neural network is trained to add two inputs to produce an output. So if input_1 = 3 and input_2 = 4, the output will be 7, (3 + 4 = 7). Given input_1 = 3 and the desired output is 7, I want to calculate the second input required to produce the desired output (the answer should be 4).  How would I do this for a network that is more complicated than basic addition and has multiple inputs/outputs? For example, for a network with four inputs and two outputs, how would I calculate input_3 and input_4 given input_1, input_2, output_1 and output_2? Types of things vs. types of thing What exactly does Perl's "bless" do? I understand one uses the "bless" keyword in Perl inside a class's "new" method:  sub new {     my $self = bless { };     return $self; }       But what exactly is "bless" doing to that hash reference ? Help, I cannot get my test code coverage higher than 75%! Code below Einstein's big revelation was that time and space are inseparable components of the same fabric. Physical observation tells us that distant galaxies are moving away from us at an accelerated rate, and because of the difficulty (impossibility?) of defining a coordinate system where things have well defined coordinates while also moving away from each other without changing the metric on the space, we interpret this to mean that space itself is expanding.   Because space and time are so directly intertwined is it possible that time too is expanding? Or perhaps it could be contracting? Measures of residuals heteroscedasticity This wikipedia  lists a number of techniques to detect OLS residuals heteroscedasticity. I would like to learn which hands-on technique is more efficient in detecting regions affected by heteroscedasticity.  For example, here the central region in the OLS 'Residuals vs Fitted' plot seen to have higher variance than the sides of the plot (I am not entirely sure in facts, but let's assume it's the case for the sake of the question). To confirm, looking at the error labels in the QQ plot we can see that they match the error labels in the center of the Residuals plot.  But how can we quantify the residuals region that has significantly higher variance? How do you reopen a closed question? How Does One Transfer A Steam Game? I have a failure to transfer my game from one HDD to another, and one PC to another. I copied the entire Skyrim folder from one HDD to another. And told where to find it also. Steam did a huge check of my HDD.  But it ended up downloading most of the files anyway. It took a week to download Dawnguard, Hearthfire, and Dragonborn files along with my Hi-Res textures.  I did ask about it in chat. But I feel this could help me or somebody else.  This is the screen I am looking at after transferring my entire hard drive to to new one. Steam downloaded my games, including Skyrim even though my Skyrim data folder had all the data files for Dawnguard, Hearthfire, Hi-Res and Dragonborn.  I have my copied files and have got rid of everything not steam related. I just have my DLCs and they include my hires files.  This is what it looks like.    But I still get this :     What could be causing this? How can I rectify? And in future when one is migrating to a new PC, how can this be avoided?  EDIT::::::::::::::::: Removed everything : Here is how it looks :  Still the prompt as before Steam Error 15  (Side Note : I transferred all my Origin games just by copy/pasting. This really is not nice.)    EDIT 2 :::::::::::::::::::::  And one more EDIT  I tried getting game cache up to speed, but this is prompt I am getting. But I played the game, it was working, I could pick out my character and all, and escape from Helgen.  EDITED 3 :::::::::::::::::  How does one transfer a Steam game? A game that is heavily modded, will the backup a Steam Game option suffice? Nesting block level elements inside the  tag... right or wrong? What is the best way to repeatedly execute a function every x seconds? Do we want emojis in posts? I am looking for a canonical question and answer on this issue.   (see ) on  has prompted me to ask this question.        In all honesty I think we just don't need a comic strip to explain what a user is saying. Currently I edit out emoticons I see, but this post presents a whole new type of .... ? what I'm not sure.  Is there are community consensus on this either way?  These questions are related — but different:        Please try and answer sensibly (rolls eyes at the prospect of a flood of emojis in answers) — so we can actually have something that we can link to new users (or old users) when editing this stuff out — or (even worse), defending its existence. Is expression for law of equipartion of energy valid for real gas? I know that according to law of equipartion of energy ,energy per molecule per degree of freedom is 1/2 Kb T I wanted to know if it is true for a real gas ? I have to find the limit of this sum: $$\sum_{r=1}^{\infty}\cot ^{-1}(r^2+\frac{3}{4})$$  I tried using sandwich theorem , observing:  $$\cot ^{-1}(r^3)\leq\cot ^{-1}(r^2+\frac{3}{4})\leq\cot ^{-1}(r^2)$$  Now when I was calculating the limit of left hand expression, I convert it to $\tan^{-1}$, by using:  $$\tan^{-1}\frac{1}{x} = \cot^{-1}x$$  but couldn't sum up the terms of arctan series.     How can I proceed?   Is there any better way ? The Challenge  I have been trying to write a filter that applies (prepends a string) to (a) post titles of a certain post type and (b) to that same post type WordPress admin backend for use by an auto social sharing plugin.  I've gotten really close.  I've achieved: 1.  prepending only to custom post_type post titles 2.  prepending to custom_post type titles AND all nav menu items 3.  prepending to ALL titles (post, page, nav menu, and backend auto-sharing plugin)  The final, 3rd attempt got me very hopeful, but yet still, no matter the function, conditional statement, or combination I use, I can't get custom_post title AND backend social sharing plugin, but not nav menu items.  My Code - what I've tried  I've tried different conditionals, like is_admin() and !is_nav_menu with all nav menu IDs.  I've also tried comparing the ID of the post to the ID of the menu.  Finally, I've also tried adding the filter only to loop_start and that seems promising if combined with other statements.  I will clean up my code for your review but I leave it this way for now in hopes it helps to see what I've tried and maybe where I went wrong with any of those methods.  // , $id = NULL function append_album_review_to_title( $title ) {     global $post;     global $dont_apply_title_filter;     $text = 'Album Review: ';     $prepended_title = $text . $title; /*     $nav_menus_obj = wp_get_nav_menus();     $nav_menu_ids = '';     foreach( $nav_menus_obj as $nav_menu ) {         $nav_menu_ids .= $nav_menu-&gt;term_id . ',';     }     rtrim($nav_menu_ids, ','); */ //  if ( get_post_type( $post-&gt;ID ) == 'album_review' &amp;&amp; in_the_loop() ){ //  if ( get_post_type( $post-&gt;ID ) == 'album_review' &amp;&amp; $id == get_the_ID() ){ //  if ( !is_nav_menu( '32057,32058,35135,32054,32056' ) ) { //  if ( get_post_type( $post-&gt;ID ) == 'album_review' &amp;&amp; is_nav_menu( $id ) ) {     if ( get_post_type( $post-&gt;ID ) == 'album_review' &amp;&amp; !$dont_apply_title_filter ) {         //print_r( $nav_menu_ids );         //print_r( is_nav_menu( $nav_menu_ids ) );         return $prepended_title; /*     } elseif ( get_post_type( $post-&gt;ID ) == 'album_review'  ) {         return $title; */     } else {         return $title;     }; } add_filter('the_title', 'append_album_review_to_title'); //add_action('save_post', 'custom_post_type_title', 100); /* function set_custom_title() {     add_filter( 'the_title', 'append_album_review_to_title', 10, 2 ); } add_action( 'loop_start', 'set_custom_title' ); */ Disease transmitted by postage stamps I have a DisplayPort based monitor, and a laptop with a DP out.  I recently got a second laptop with HDMI out, and went looking for a HDMI -> DP converter.  I was very surprised to find that such a thing effectively doesn't seem to exist.   and the  seem to imply that it's just not possible to go HDMI -> DP, without a very expensive converter box (not just an adaptor).  However, I can't find anything that explains why this is the case.  Is DP designed to be backwards compatible but can't interpret HDMI?  Is it a case of HDMI-quality signal not being high enough quality to be convertible?  Some other reason?  Note that this question is not looking for an adaptor - I'm looking for the underlying cause of the lack of them.