Add a progress bar
How to create a progress bar?
Use parameter expansion to modify output of another expansion I'm trying to use the Bash parameter expansions to modify the output of a command substitution or another parameter expansion. The following nested expansions work quite well in Zsh; but result in a &quot;bad substitution&quot; error in Bash: ${${PWD##*/}//trunk/latest}  or ${$(basename $PWD)//trunk/latest}  the output should be the last folder of the $PWD, replaced by latest when my current directory is trunk so /home/user/trunk should become latest Is there a Bash equivalent allowing to chain expansions without relying on variables or pipes? Or do Bash expansions only allows the input to be a string or a plain variable? Conjectures that have been disproved with extremely large counterexamples? I just came back from my Number Theory course, and during the lecture there was mention of the Collatz Conjecture.  I'm sure that everyone here is familiar with it; it describes an operation on a natural number – $n/2$ if it is even, $3n+1$ if it is odd.  The conjecture states that if this operation is repeated, all numbers will eventually wind up at $1$ (or rather, in an infinite loop of $1-4-2-1-4-2-1$).  I fired up Python and ran a quick test on this for all numbers up to $5.76 \times 10^{18}$ (using the powers of cloud computing and dynamic programming magic).  Which is millions of millions of millions. And all of them eventually ended up at $1$.  Surely I am close to testing every natural number? How many natural numbers could there be?  Surely not much more than millions of millions of millions. (I kid.)  I explained this to my friend, who told me, "Why would numbers suddenly get different at a certain point?  Wouldn't they all be expected to behave the same?"  To which I said, "No, you are wrong!  In fact, I am sure there are many conjectures which have been disproved by counterexamples that are extremely large!"  And he said, "It is my conjecture that there are none! (and if any, they are rare)".  Please help me, smart math people.  Can you provide a counterexample to his conjecture?  Perhaps, more convincingly, several?  I've only managed to find one! (Polya's conjecture). One, out of the many thousands (I presume) of conjectures. It's also one that is hard to explain the finer points to the layman. Are there any more famous or accessible examples? How to find the most famous questions on Stack Overflow? How to find questions with   most comments most votes most viewed   I have seen following question, but seems like there is no easy way.   Is there way to bookmark a page so that the same URL can be used to update data (which will be very seldom) at each hit? Why didn't Sauron become invisible while wearing the One Ring? I'm curious as to why Sauron is the only being/person shown wearing the One Ring who does not become invisible?   Isildur, Gollum, Bilbo, Frodo, and Samwise all become invisible while wearing the One Ring.  Why didn't Sauron become invisible while wearing the one ring?  I became interested after reading Pearsonartphoto's question asking what effect wearing the One Ring would have had on . How to disable javascript modal popup ads For many years I have blocked popup ads with AdBlock Plus.  But it seems more and more these past couple months there is a "new" kind of popup overtaking the web.  They are javascript based "modal" popups which ABP is powerless over.  See attached for an example.  Is there a way to kill these ads without breaking the functionality of anything I need? 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 How do you "OR" criteria together when using a criteria query with hibernate? Let $G\times K$ be a finite group. Suppoose $G\times K\cong H\times K$. Is this sufficient to imply $G\cong H$? Determining if a file is a hard link or symbolic link? I'm creating a shell script that would take a filename/path to a file and determine if the file is a symbolic link or a hard link.   The only thing is, I don't know how to see if they are a hard link. I created 2 files, one a hard link and one a symbolic link, to use as a test file. But how would I determine if a file is a hard link or symbolic within a shell script?   Also, how would I find the destination partition of a symbolic link? So let's say I have a file that links to a different partition, how would I find the path to that original file? How to create a separate subnet for wireless access? I need to configure my wireless router so all wireless devices are on a different subnet (192.168.2.1).  The wireless devices should be able to access the internet, but ideally not the workstations on the LAN.  Here is my network:    All suggestions welcome! Since upgrading to 13.10, I can't log in to unity desktop. Light dm works correctly, but attempting to log in tries to start the session then drops back to light. I've already dropped to terminal (ctrl+alt+f2) and done this:  sudo apt-get update  sudo apt-get install --reinstall ubuntu-desktop  sudo apt-get install unity   Logging in as a guest session also fails. Logging in to other window managers works with varying degrees of success.  Note: I have Cinnamon 2.0 installed from PPA.  I'm using a 2 monitor setup.  Also of note is that the session prior to my upgrade to 13.10 the background of unity failed to display at all, instead showing what was there in the screen buffer from the previous frame. The entire OS worked correctly otherwise though, so I just ignored it for the session. No other upgrades or even updates were done prior to this occurring.  My upgrade path to 13.10 was basically this: Install 13.04 alongside Windows 7, use ubuntu as a glorified web browser for a while, get updates (in preparation for 13.10), install 13.10.  I also used Unity Tweak Tool to change some aspects of unity, particularly auto-hide.  Any help or ideas would be appreciated, as I'm typing this on my phone :( How to customize my titlepage? The standard titlepage is quite simple. I am looking for a very  and need help customizing my title page.  It should match the  classicthesis doctoral thesis template  Below a minimal working example:   \documentclass[12pt,a4paper,footinclude=true,twoside,headinclude=true]{scrbook} \XeTeXinputencoding iso-8859-1 \usepackage[marginparsep=8pt,left=3.5cm,right=3.5cm,top=3cm,bottom=3cm]{geometry}  \usepackage[parts,pdfspacing,dottedtoc]{classicthesis}    \frontmatter  \begin{document}     \pagestyle{scrheadings}        %this is the place to set up my cover sheet.       %*******************************************************      % Abstract     %*******************************************************    %\renewcommand{\abstractname}{Abstract}    \pdfbookmark[1]{Résumé}{Résumé}   \begingroup    \let\clearpage\relax    \let\cleardoublepage\relax    \let\cleardoublepage\relax       \chapter{Résumé}     Résumé de la thèse en français\dots      \vfill      \chapter*{Summary}   Résumé de la thèse en anglais\dots    \endgroup             \vfill     \end{document} Do the SO admins have any plans to release the underlying code for SO at all? I appreciate that the code may be part of their competitive advantage, but it strikes me that the underlying system would work for any topic, not just programming.  I am not advocating this, just curious really, but figured it might be under consideration as most of the value in SO is in the questions and answers, which have been released under a relatively open CC license. So I defeated a Team Valor gym earlier today using my highest cp Pidgeot. It turned grey, so I went to claim it with that Pidgeot, except it wouldn't let me. What determines which pokemon you are allowed to place at a gym? Is it just those who have participated in a battle can't? Is there a time period for it? What about training at a friendly gym? Does this impact anything? for loop wget directory creation error As a Ubuntu beginner. I am trying to download links from multiple text files with wget2 in batch. The -P &quot;$f&quot; creates directory name with .txt suffix. Is it possible to ignore .txt for -P &quot;$f&quot;. Any modification suggestions. for f in *.txt;do wget2 -i &quot;$f&quot; -P &quot;$f&quot;;done Linked and Related sections contain duplicate links to questions The Linked and Related sections sometimes contain a link to same same question.  See for example , where one of the Linked questions is same as the first of the Related questions.  I think that this is redundant and duplicate links should be removed from Related section. Does someone know how to set a command block with a command inside using the setblock command?  I have created this code /setblock &lt;x&gt; &lt;y&gt; &lt;z&gt; command_block {TileEntityData:{Command:"testfor @p[_=1]"}} but it doesn't works.  Do someone know how to do that? Why the first moment is standardized before computing higher moments, but higher moments are not? How can I distribute a native executable for a Python program? Lately all of my work has been in Python (and Ruby), and I'm in love with those two languages. There are many libraries for game development on Python but the problem I see is that many of those frameworks don't cover the "distribution" aspect of game creation. I'd like to code my game on Python (and any other pure Python extra libraries I need) and be able to distribute an executable for the main PC platforms (Windows, Mac and Linux).  Any options out there or what are the best combinations for this? (maybe pyglet + cx_freeze) Let $(a_n)_{n}\in\ell^2:=\ell^2(\mathbb{R})$ be a fixed sequence. Consider the subspace $$C=\{(x_n)_{n}\in\ell^2 : |x_n|\le a_n\text{ for all }n\in\mathbb{N}\}.$$  According to the book [Dunford and Schwartz, Linear operators part I, page 453] $C$ is compact in the $\ell^2$-norm, but there is no proof. How can I show that $C$ is indeed compact in $\ell^2$ ?