import sys
def update_progress(iteration, total):
percent = int(iteration * 100.0 / total)
sys.stdout.write(
"\r[ {0:<51} ] {1}% ~{2}".format(
'#' * (percent / 2), percent, iteration
)
)
The main trick is character "\r", which clear previous line.
import sys
def update_progress(iteration, total):
percent = int(iteration * 100.0 / total)
sys.stdout.write(
"\r[ {0:<51} ] {1}% ~{2}".format(
'#' * (percent / 2), percent, iteration
)
)
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias>
<family>serif</family>
<prefer>
<family>Tahoma</family>
<family>TakaoPGothic</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>Tahoma</family>
<family>TakaoPGothic</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Monaco</family>
<family>TakaoPGothic</family>
</prefer>
</alias>
<match target="font">
<edit mode="assign" name="hinting">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="autohint">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hintstyle">
<const>hintslight</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="rgba">
<const>rgb</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="antialias">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="lcdfilter">
<const>lcddefault</const>
</edit>
</match>
</fontconfig>
apt-get install uim-mozc uim-m17nlib uim-gtk2.0 uim-gtk3
apt-get install abiword gnumeric gnome-dictionary gnote systemd-ui keepass2 gufw caffeine ocrfeeder