转到正文

拖泥猪

莫惶惶 且醉去 笑看江湖剑与花

2012

Unity使用了overlay 滚动条,但是我在VBox中回到classical Ubuntu后eclipse的滚动条还是overlay的,而且鼠标放上去并不出现滚动快,并且滚轮滚动时有严重的拖影残留。
解决办法有两个:

1. 去掉overlay特性的滚动条

sudo su -c ‘echo export LIBOVERLAY_SCROLLBAR=0 > etc/X11/Xsession.d/80overlayscrollbars’


2. 保留overlay但是修复它 (我正使用的)
打开eclipse启动脚本,并注释其中的export GDK_NATIVE_WINDOWS=ture

sudo vi /usr/bin/eclipse


Refer:

http://askubuntu.com/questions/39743/scrollbars-missing-in-eclipse
https://bugs.launchpad.net/ubuntu/+source/eclipse/+bug/769277

经过了一个多月的等待,android.git.kernel.org终于又上线了!!
不过这回重定向到了Google自己的服务器–android.googlesource.com。
Android通过Google邮件组第一时间发出了邮件通知大家。
除此之外我们也将在11月份得到android 4.0的源码。期待

谷歌邮件组对此解释

Hi!

Yes, android.git.kernel.org and review.source.android.com are down right
now. We have taken them offline while we verify that the Android source code
has not been affected by the recent kernel.org security breach. We reviewing
the code now and will and restore these systems as quickly as possible.

Sorry for the inconvenience.

那么我们该如何获取android代码呢?有人给出了一个网站可以暂时替代,但是我不敢保证这里的代码是安全的

repo init -u git://codeaurora.org/platform/manifest.git -b gingerbread

如果你曾经已经repo sync过,那么需要修改.repo/manifests/default.xml中的fetch=”URL”
我试了,可以用,但是经常断开


参考:

http://php.webtutor.pl/en/2011/09/01/kernel-org-has-been-hacked/
http://php.webtutor.pl/en/2011/09/05/kernel-org-hacked-how-to-get-android-repo/

repo switch branch:
repo init -b gingerbread-release
repo sync
repo start gingerbread-release –all
repo checkout gingerbread-release
这是常规的切换方法

git switch branch:
git branch -a
git checkout -t -b gingerbread-release korg/gingerbread-release
git checkout gingerbread-release (if already exist)
repo forall -c git checkout -t -b gingerbread-release korg/gingerbread-release
由于每个branch对应的projects可能是不一样的(manifest.xml不一样),因而这样的switch对于branch可能是不完全的:
repo branches

参考:
http://groups.google.com/group/android-building/browse_thread/thread/aed1f965b242eea5
http://blog.sina.com.cn/s/blog_6d501ddf0100mkm4.html

Free Web Hosting