iphone sizes

iPhone 6 Plus 736×414 points 2208×1242 pixels 3x scale 1920×1080 physical pixels 401 physical ppi 5.5″
iPhone 6 667×375 points 1334×750 pixels 2x scale 1334×750 physical pixels 326 physical ppi 4.7″
iPhone 5 568×320 points 1136×640 pixels 2x scale 1136×640 physical pixels 326 physical ppi 4.0″
iPhone 4 480×320 points 960×640 pixels 2x scale 960×640 physical pixels 326 physical ppi 3.5″
iPhone 3GS 480×320 points 480×320 pixels 1x scale 480×320 physical pixels 163 physical ppi 3.5″

svn 常用命令

  1. 查看某次提交的文件:
    svn log --verbose -r 42
  2. 退回到历史版本:
    
    svn update
    svn merge -r 150:140 .
    svn commit -m "Rolled back to r140"
    
    
  3. revert changes to a file or directory
    
    svn revert foo.c
    svn revert --recursive .
    
    
  4. force add ignored file:
    
    svn add "file" --no-ignore
    svn status --no-ignore
    
    
  5. 比较某个文件的两次提交
    
    svn diff -r 8979:11390 path/to/file
    
    

tomcat ubuntu paths

/etc/tomcat6/
├── Catalina
│   └── localhost
│       ├── ROOT.xml
│       └── solr.xml -> ../../../solr/solr-tomcat.xml
├── catalina.properties
├── context.xml
├── logging.properties
├── policy.d
│   ├── 01system.policy
│   ├── 02debian.policy
│   ├── 03catalina.policy
│   ├── 04webapps.policy
│   ├── 05solr.policy -> /etc/solr/tomcat.policy
│   └── 50local.policy
├── server.xml
├── tomcat-users.xml
└── web.xml

/usr/share/tomcat6

/usr/share/tomcat6
├── bin
│   ├── bootstrap.jar
│   ├── catalina.sh
│   ├── catalina-tasks.xml
│   ├── digest.sh
│   ├── setclasspath.sh
│   ├── shutdown.sh
│   ├── startup.sh
│   ├── tomcat-juli.jar -> ../../java/tomcat-juli.jar
│   ├── tool-wrapper.sh
│   └── version.sh
├── defaults.md5sum
├── defaults.template
└── lib
    ├── annotations-api.jar -> ../../java/annotations-api-6.0.35.jar
    ├── catalina-ant.jar -> ../../java/catalina-ant-6.0.35.jar
    ├── catalina-ha.jar -> ../../java/catalina-ha-6.0.35.jar
    ├── catalina.jar -> ../../java/catalina-6.0.35.jar
    ├── catalina-tribes.jar -> ../../java/catalina-tribes-6.0.35.jar
    ├── commons-dbcp.jar -> ../../java/commons-dbcp.jar
    ├── commons-pool.jar -> ../../java/commons-pool.jar
    ├── el-api.jar -> ../../java/el-api-2.1.jar
    ├── jasper-el.jar -> ../../java/jasper-el-6.0.35.jar
    ├── jasper.jar -> ../../java/jasper-6.0.35.jar
    ├── jasper-jdt.jar -> ../../java/ecj.jar
    ├── jsp-api.jar -> ../../java/jsp-api-2.1.jar
    ├── servlet-api.jar -> ../../java/servlet-api-2.5.jar
    ├── tomcat-coyote.jar -> ../../java/tomcat-coyote-6.0.35.jar
    ├── tomcat-i18n-es.jar -> ../../java/tomcat-i18n-es-6.0.35.jar
    ├── tomcat-i18n-fr.jar -> ../../java/tomcat-i18n-fr-6.0.35.jar
    └── tomcat-i18n-ja.jar -> ../../java/tomcat-i18n-ja-6.0.35.jar

/usr/share/tomcat6-root/

/usr/share/tomcat6-root/
└── default_root
    ├── index.html
    └── META-INF
        └── context.xml

/usr/share/doc/tomcat6

/usr/share/doc/tomcat6
├── changelog.Debian.gz -> ../libtomcat6-java/changelog.Debian.gz
├── copyright
└── README.Debian.gz -> ../tomcat6-common/README.Debian.gz

/var/cache/tomcat6

/var/cache/tomcat6
├── Catalina
│   └── localhost
│       ├── _
│       └── solr
│           └── org
│               └── apache
│                   └── jsp
│                       ├── admin
│                       │   ├── form_jsp.class
│                       │   ├── form_jsp.java
│                       │   ├── get_002dproperties_jsp.class
│                       │   ├── get_002dproperties_jsp.java
│                       │   ├── index_jsp.class
│                       │   ├── index_jsp.java
│                       │   ├── schema_jsp.class
│                       │   ├── schema_jsp.java
│                       │   ├── stats_jsp.class
│                       │   ├── stats_jsp.java
│                       │   ├── threaddump_jsp.class
│                       │   └── threaddump_jsp.java
│                       ├── index_jsp.class
│                       └── index_jsp.java
└── catalina.policy

/var/lib/tomcat6

/var/lib/tomcat6
├── common
│   └── classes
├── conf -> /etc/tomcat6
├── logs -> ../../log/tomcat6
├── server
│   └── classes
├── shared
│   └── classes
├── webapps
│   └── ROOT
│       ├── index.html
│       └── META-INF
│           └── context.xml
└── work -> ../../cache/tomcat6

/var/log/tomcat6

/var/log/tomcat6
├── catalina.2013-06-28.log
├── catalina.2013-06-30.log
├── catalina.out
├── catalina.out.1.gz
└── localhost.2013-06-28.log

批量重命名 文件名

批量重命名 文件名大小变小写

for f in * ; do mv -v $f `echo $f | tr '[A-Z]' '[a-z]'`; done

or

for f in `find . -name '*.rar'` ; do mv -v $f `echo $f | tr '[A-Z]' '[a-z]'`; done

文件自定义批量重命名:

for f in `find . -name '*.rar'` ; do mv -v $f `echo $f | sed 's/a/b/g'` done;