scrolling web browser and capture like snagit.
gnome-web-photo :GNOME Web Photographer is a tool to generate full-size image files and thumbnails from HTML files and web pages. It can also be used to print those.
Shutter is a feature-rich screenshot program. Its scrolling capturing is based on gnome-web-photo.
Compare two directory:
$vimdiff <(ls -l dir1) <(ls -l dir2)
If execute
$vimdiff < (ls -l dir1) <(ls -l dir2)
will get the error,
bash: syntax error near unexpected token `('
the blank after the first "<" causes the problem
python:when there are many 'nan's in a return list, there is sth wrong,mostly. ie, read wav file with wrong format, 32bit float instead of 16bit int.
import numpy as np
a=float('nan') #represent nan
type(a) # float
print a # nan
a==a # False
b=np.arange(10)*1.0
b[3]=np.nan
b[np.isnan(b)]=np.inf # bool list as index, b[3] will be inf
Associate ed2k to firefox.Register protocol for firefox.
Firefox 3.5 and above
Type about:config into the Location Bar (address bar) and press Enter.
Right-click -> New -> Boolean -> Name: network.protocol-handler.expose.foo -> Value -> false (Replace foo with the protocol you're specifying)
Next time you click a link of protocol-type foo you will be asked which application to open it with
------http://kb.mozillazine.org/Register_protocol
Extract the matched pattern.In this case, just remove the cn character.
中文名称EnglishNameNo1AuthorName中文作者.ext
中文名称EnglishNameNo2AuthorName中文作者.ext
中文名称EnglishNameNo3AuthorName中文作者.ext
for i in *.ext;do f=$(echo $i | sed 's/.*\(E.*me\).*/\1/'); echo $f.ext ; done
for i in *.ext;do f=$(echo $i | grep -o E.*me);echo $f.ext;done
Use wget to get all the files and sub folders under one of the folder on the ftp site.
wget -r ftp://usr:pass@ftpsiteroot/folder1/folder2
-r
--recursive
Turn on recursive retrieving. The default maximum depth is 5.
-m
--mirror
Turn on options suitable for mirroring. This option turns on recursion and time-stamping, sets infinite recursion depth
and keeps FTP directory listings. It is currently equivalent to -r -N -l inf --no-remove-listing.
sum,cksum,cksfv,rar
sum - checksum and count the blocks in a file.sum computes a 16-bit checksum for each given FILE.-r use BSD sum algorithm, use 1K blocks. -s, --sysv use System V sum algorithm, use 512 bytes blocks
cksum - checksum and count the bytes in a file.Print CRC checksum and byte counts of each FILE.`cksum' prints the CRC checksum for each file along with the number of bytes in the file.
cksfv is a tool for verifying CRC32 checksums of files.
rar l xx.rar will display CRC check sum same as cksfv.