`
yang_kunlun
  • 浏览: 74629 次
  • 性别: Icon_minigender_1
  • 来自: 地球
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表

匹配所有路由

    博客分类:
  • ROR
*path  hehe
var Application = {}; Application.uploadDialog = {   progressBarText:'Uploading:{0},{1}%finish',   statuBarText:'File Number:{0}  ,Size:{1}',   fileQueued:function(file){     var obj=Application.uploadDialog;     var filetype=(file.type.substr(1)).toUpperCase();     //  if(filetype=='JPG' | filetype ...
http://www.cnblogs.com/zhucl1006/archive/2008/09/04/1284630.html http://extjs.com/deploy/dev/docs/ http://extjs.com/deploy/dev/examples/samples.html http://www.v-sky.com/doc/swfupload/v2.1.0/Documentation.html#uploadComplete flot and jquery jcrop
http://toolmantim.com/articles/fixtureless_datas_with_machinist_and_sham http://www.softiesonrails.com/2007/4/5/the-absolute-moron-s-guide-to-capistrano http://please.dontrush.org/?page=6 http://jakescruggs.blogspot.com/search/label/RSpec http://zhangpeihao.iteye.com/blog/248858
http://dev.mysql.com/tech-resources/articles/hierarchical-data.html http://blog.xkoder.com/2008/08/13/git-tutorial-starting-with-git-using-just-10-commands/ http://www.linuxsir.org/main/doc/git/gittutorcn.htm http://www.sqlteam.com/article/more-trees-hierarchies-in-sql
1. install imageMagick sudo apt-get install imageMagick 2. compress image file to thumbnail. for i in `ls *.jpg`; do convert -thumbnail 120x80 $i thumbnail_$i; done

SQL inner join usage

    博客分类:
  • DB
1. select time_trees.id,name,lft,rgt,parent_id,project_id,SUM(wEnd)-sum(wBegin) as wEnd from time_trees inner join work_items on work_items.project_id = time_trees.original_id and work_items.dayinfo_id = '00c60267c36301e4-05-00000000000065' group by work_items.project_id 2. "select time_trees ...
1.Find all ancestor node from child. SELECT parent.name from time_trees as parent,time_trees as node where node.lft between parent.lft and parent.rgt and node.original_id='0036994d34de9862-03-00000000000324' 2.Find all children from parent. select node.name from time_trees as node,time_trees as ...

Setting up SSH keys

1. Create a public and private key on your computer (id_rsa, id_rsa.pub) ssh-keygen -t rsa                               2. Copy public key to the server scp id_rsa.pub <username@host>:~/.ssh/          3. Login server ssh username@host 4. Check to see if the .ssh directory and autho ...
1.push to server branch. git branch harry git checkout harry --modify something git push origin harry 2.pull from server branch git clone git@10.0.1.1:projectname fetch branch file git fetch git@10.0.1.1:projectname harry git pull origin harry
Go to you rails app folder and create a file named .gitignore vim .gitignore update the file: nbproject log/*.log tmp/**/* config/database.yml db/schema.rb db/*.sqlite3 public/javascripts/all.js public/stylesheets/all.css *.orig # Other useful tidbits .DS_Store doc/api doc/app
1. git init 2. If you want to ignore some folders and files,write them into .gitignore vim .gitignore for example,we use this gitignore file as default nbproject log/*.log tmp/**/* config/database.yml db/schema.rb db/*.sqlite3 public/javascripts/all.js public/stylesheets/all.css .* *.orig # Oth ...
1。Create Git version from SVN on local directory. git svn clone svn+ssh://yangkunlun@activeext.com/home/svn/repositories/1hydroplan 2。Create new git base on server。 git --bare init --shared git push 3。Clone from server. git clone yangkunlun@10.0.1.1:/home/yangkunlun/projects/hydroplan.com.au/ ...
¶ 1.Install nbgit on netbeans 2.Show difference git diff Show status git status Update code with information of “refs #<task number> <task name> short information" git commit 3.On local directory,push code to server。 git push 4.View more on redmine。
Clone a svn base on local If we use git,at first create svn base,so we can check log information。 git-svn clone -s svn+ssh://<svn_repository> <dir> -s --- svn base have standard(trunk、branches、tags),if your svn base have self defined,you can choose -T、-b and -t to selete。 The command ...
Global site tag (gtag.js) - Google Analytics