Feeds:
文章
评论

Archive for the ‘Developer’ Category

Typical Usage of Git

# get the sources for the first time
git clone git_repo_url

# check out branch
git checkout master ( or your own branch)

# write code
git commit -a -m “try best to make your comments meaningful”

# pull latest changes to avoid massup due to auto merge
git pull –rebase

# Post code review to the reviewboard
post-review –guess-summary –guess-description
or
post-review –guess-summary –guess-description –revision-range HEAD~3:HEAD

# If code change needed per review comments

## if only commit message change needed
git commit –amend

## if both code and commit message change needed
git reset –soft HEAD~1
modify code
git add /path/to/new_modified_files
git commit -c ORIG_HEAD

# Post another review based on the previous one
post-review -r the_previous_review_num

# Ready to push
git pull –rebase (merge with changes made by others)
git push

Read Full Post »

有的网页中给<input>加上了 autocomplete=off, firefox就不会记住用户输入的内容. 

要让 Firefox 记住任意网站密码:

1) Windows 用户:找到 C:\Program Files\Mozilla Firefox\components\nsLoginManager.js

2) 然后搜索 _isAutocompleteDisabled,将 "return true;" 修改为 "return false;"

  修改后, 如下图所示:

image

3) 重启Firefox.  以后更新到新版本的Firefox, 需要重新做相应修改

 

Firefox会弹出一个对话框, 询问是否将记住的旧密码修改为新密码, 一般我们都会选’修改’.

让Firefox自动修改新的密码:

1) Windows 用户:找到 C:\Program Files\Mozilla Firefox\components\nsLoginManagerPrompter.js

2) 查找  this._showLoginNotification(aNotifyBox, "password-change"

    将相关行注释掉, 并加上  "pwmgr.addLogin(aNewLogin);"  

  修改后, 如下图所示:

image

3) 重启Firefox.  以后更新到新版本的Firefox, 需要重新做相应修改.

 

Ref:

http://www.appinn.com/make-firefox-remember-any-password

http://superuser.com/questions/73444/firefox-remember-new-passwords-without-prompting

Read Full Post »