how to create progress bar when running command that take time   for example ( this take 10 min )   cat GTTfiles* &gt; GTTcentos7.tar.gz   so during that CLI is working how to create some progress that show process is running?  example of output ,  ( only example , we will happy to get other ideas )   |..........                             |
In a bash script sometimes you need the user to wait some seconds for a background process to finish.  I usually use for example:  sleep 10   How can I add a kind of progressbar to the script, so the user knows how long to wait?  I installed the command bar but I don't understand the manual.
The problem is stated as follows:  "Let $R$ be a Noetherian ring and $\theta$ be a ring homomorphism from $R$ to $R$. Show that if $\theta$ is surjective then it is also injective."  Regardless of the right solution, I don't understand why is the following wrong:     We have $\theta: R\to R$. By the isomorphism theorem $R/\ker\theta\cong\operatorname{Im}\theta$. Since $\operatorname{Im}\theta = R$, it follows $\ker\theta =0$, so it's injective.   Harsh criticism will be appreciated. Thanks. Variance of product of dependent variables Can I get Shadowmere if I've abolished The Dark Brotherhood? I know that  is a quest reward from the Dark Brotherhood questline. However, since I took the other route, killed Astrid when she visited me and got the quest to destroy the Brotherhood, which I later did (she can't tell me what to do!), I was wondering if it's still possible to get her horse some other way and not through the quest. I've noticed that man pages and other documents formatted by Unix utilities often use double backticks `` followed by double single quotes '' to wrap quoted phrases instead of the double quote character ". Single quotes are similarly replaced. Why is this?  Here are a couple examples, from the man page for grep:   To find all occurrences of the pattern `.Pp' at the beginning of a line:         $ grep '^\.Pp' myfile   The apostrophes ensure the entire expression is evaluated by grep instead  of by the user's shell.  The caret `^' matches the null string at the  beginning of a line, and the `\' escapes the `.', which would otherwise match  any character.   The grep utility is compliant with the IEEE Std 1003.1-2008 (``POSIX.1'')  specification. Probability of 3 people in a room of 30 having the same birthday I have been looking at the birthday problem (http://en.wikipedia.org/wiki/Birthday_problem) and I am trying to figure out what the probability of 3 people sharing a birthday in a room of 30 people is. (Instead of 2).  I thought I understood the problem but I guess not since I have no idea how to do it with 3. The new GNU Octave 4.0.1 was released March 23, 2016.  I would like to find some standard way to install it in El Capitan (mine OS X 10.11.3) because it has significantly better support in some functions than Matlab, discussed in the thread .  I do brew search octave and get  homebrew/science/octave    Caskroom/cask/octave       Caskroom/cask/xoctave       where one of the first two should be a correct one. The project's homepage  for OS X is down  about installing Octave on OS X systems.  There is also ruby's way of installing Octave described in the thread  but for Yosemite.  I would like to find some standard way of getting Octave for OS X.   I do successfully brew update and brew upgrade before the commands. My Homebrew is 0.9.5 (git revision 80d1; last commit 2016-03-24).  . I run brew info octave but I get  Error: No available formula with the name "octave"     How can you install Octave in some standard way for El Capitan? disconnected phone while installing ROM I recently tried to install a custom ROM in my samsung j6+ but halfway through it my PC turned off. Then the problem starts i decided to reboot my phone but it shows this error &quot;No command&quot; &quot; #Reboot recovery cause is [[check_bootmode]RebootRecoveryWithKey]# Block-based OTA Supported API: 3 # MANUAL MODE v1.0.0# E:Failed to mount / cache: Invalid argument  The error message keeps appearing for just a fraction of a second then disappear and appear again I tried to go to recovery mode but no luck i cant get to it I drained the battery to turn off the device then go download mode but after get to it, it also keep restarting help me please. thank you How can I prevent inline math formulas from overflowing into the margin? When I compile my document in LaTeX, some formulas in the document in math mode, between $ $, go into the right margin area beyond all the text.  Is there a way to fix this aesthetic problem? Determining if trees within forest gaps are clustered using R? The attached dataset shows approximately 6000 saplings in approximately 50 variable sized forest gaps.  I am interested in learning how these saplings are growing within their respective gaps (i.e. clustered, random, dispersed).  As you know, a traditional approach would be to run Global Moran's I.  However, aggregations of trees within aggregations of gaps seems to be an inappropriate use of Moran's I.  I ran some test statistics with Moran's I using a threshold distance of 50 meters, which produced nonsensical results (i.e. p-value = 0.0000000...).  The interaction among the gap aggregations are likely producing these results.  I have considered creating a script to loop through individual canopy gaps and determine the clustering within each gap, although displaying these results to the public would be problematic.    What is the best approach to quantify clustering within clusters? I wanted to upgrade to 14.04.2 point release from 14.04.  What I did was:  sudo apt-get update &amp;&amp; sudo apt-get upgrade &amp;&amp;  sudo apt-get dist-upgrade -y   Then I wanted to upgrade to 3.16 kernel, since it wasn't done with the the above command, so what I did was:  sudo apt-get install linux-generic-lts-utopic xserver-xorg-lts-utopic libegl1-mesa-drivers-lts-utopic xserver-xorg-video-all-lts-utopic xserver-xorg-input-all-lts-utopic sudo apt-get install linux-signed-generic-lts-utopic   Now when I do:   uname -a I get   Linux Y500 3.16.0-33-generic #44~14.04.1-Ubuntu SMP Fri Mar 13 10:33:29 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux  cat /etc/os-release | grep VERSION= I get  VERSION="14.04.2 LTS, Trusty Tahr"   And when I do lsb_release -a I get  Distributor ID: Ubuntu Description:    Ubuntu 14.04.2 LTS Release:    14.04 Codename:   trusty   I know that uname -a and lsb_release -a both refer to different info, but why does  cat /etc/os-release | grep VERSION= show different version? I have heard from  that stable orbits (ones that require a large amount of force to push it significantly out of it's elliptical path) can only exist in a three spatial dimensions because gravity would operate differently in a two or four dimensional space. Why is this? Background: I have the opportunity to pursue a Computer Science graduate degree at a well respected program (around top 20). I spoke with the professors at the university and I feel like I am a good fit with their research program. My ultimate pursuits are to complete a PhD in CS. I've done research as an undergraduate and it has only confirmed my notion that I want to pursue a research track career.  More background: I applied to jobs (in case I was rejected to all the programs I applied for) prior to hearing back from my respective graduate programs. I accepted a position for an industry job (this was to secure I wouldn't be both unemployed &amp; not in school).  Dilemma: Turns out my top graduate school is very interested in me, and I'm very interested in them. I would rather go to graduate school than work in industry forever. The industry job pays very well. I am split between A) working for a maximum of 1 year(It would only be 1 year, seriously I do not care about the money enough to work past a year) and B) going straight to graduate school.   My concerns are as follows, if I choose A):    Could I potentially defer my admissions? If I am not allowed to defer my admissions, would I have a good chance of re-applying and being accepted a year later? Would my potential advisers look down on me for deciding to work a year?   I already made my mind up it would be a 1 year gig if I decide A). I know some people say once you make money, you may not be able to readjust to the graduate salary pay. But I don't think that will apply to because I'm going to live very frugally with or without industry pay. GeoReference tiff image into the Google map? I want to Geo-reference a tiff image contain a Map for a specific region, I need to add this region(image) and Geo-reference it on the Google map, SO I can see on the map for the region I select the image which I have inserted.  the image also need information such as the Latitude and Longitude of corners and size, and the pixel per meter measurement.  How to do the correct Geo-reference for that ? I can get the element like this $("#txtEmail") but I'm not sure how to get the actual value. Change running heads in longtable (or other "long table" package) JavaScript displaying a float to 2 decimal places What happens to the view.frame.size attribute after a CGAffineTransform (Rotate)? Is tipping mandatory at Restaurants and Bars in Germany? In Bavaria, I paid for my drink, I asked her for "Ruckgeld", but only got the integer part of the money back, the rest of it, she kept it for tip! I looked her in the eye and she understood that I wasn't happy with that "initiative", but wouldn't blink an eye!  My company advised me to let it go, mentioning that if I was going to ask for the change, she would swear.  Notice how she didn't return me the correct amount back and then stare at me, demanding for tip, but she would decide for me!  Since, I will be around for a week or so, I was thinking of paying the exact amount of money next time. Will I get in an uncomfortable situation of having the waiter stare at me, demanding a tip? In other words, is tipping mandatory in Germany?    PS: Having experienced the tipping-cruelty in USA, and having tipped generously waiters across the Mediterranean for their supreme behavior, this Saturday night came as a shock, since I had the impression that this awful habit was only a USA-thing (you know, just like the fake audience laughing they have in USA TV series :) ). Replacements for switch statement in Python? How to reinstall Ubuntu keeping my data intact? I want to reinstall Ubuntu keeping my data intact. I have 160 GB hardrive (sata or pata I don't know but it's slim and made in China) with a 40 GB ext3 partition, a 4GB swap memory and 3 other partition with a FAT32 file system. I have around 4GB space on my drive where Linux is installed.  I'd like to keep the data intact, especially the Downloads folder, desktop, and /var/www; And I no longer have access to any other machines or external storage devices.