MAC下Android的Eclipse开发环境的搭建MacroCheng 2011年9月30日 一.Eclipse的下载 到网站:http://www.eclipse.org/downloads/上,由于我们是用Java开发的所以步骤如下:1. 找到“Eclipse IDE for java Developers”此处右上角会根据你当前使用的系统自动选择,Mac下就会自动选择位“Mac OS X(Cocoa)”2. 然后点击右边的“Mac OS X 64bit”(这里我的Pro是i5处......
2015-11-18 22:14:39
1、Float取整long warning;float fwarning = 0f;fwarning = total*0.34/100;warning = new Float(fwarning + 0.5f).longValue();2、eclipse 经常弹出console的问题设置方法:在window->preperences->Run/Debug->console 中,把'show when program writes to standard out'的勾去掉就可以了 3、获取时间戳 System.currentTimeMillis()4、正则表达式使用import java.util.regex.Matcher;import java.util.regex.Pattern;String pstr = "/p/";Pattern p = Pattern.compile(pstr);Matcher m = p.matcher("/p/3333");System.out.println(m.find......
2015-11-16 13:55:08
问:I googled and read many posts, but none could make me understand the branch divergence problem yet.If I've remote tracking branch, I often get into the following:$ git status# On branch feature/worker-interface# Your branch and 'origin/feature/worker-interface' have diverged,# and have 1 and 4 different commit(s) each, respectively.答:First, you can use the cherry command to see what commits differ between branches, and in what ways. So in this case, running g cherry origin/feature/worker-interface shows us the status of commits on t......
2015-11-15 22:14:09