7月9日:个人纪录:48分钟17.5圈7公里连续跑。第一次使用OR300,平均心率大约在160(理论峰值220-35=185),86.5%。左踝虽然不是最好状态,但基本保持全脚掌着地,至少跑完没有恶化倾向。今天状态不错,应该还可以跑一些的。另外在此特别感谢Nokia公司的Smart Yang同学。 #跑步# cc @光年Runner_THU
Qt is a huge project, especially like the module, QtWebKit. If you happen to be in a computer farm, it is very useful to use distributed complation to speed up the build of Qt.
icecream is maintained by the SUSE people. Then there are less issues in OpenSUSE than in Ubuntu. But Ubuntu is more popular one. I just use Ubuntu as example here.
Install your compiler, like gcc and clang.
Install icecc and icemon(optional). icemon is the monitor of icecream build, better to check it when you setup the enviroments. It’s an GUI application based on Qt 4.8. Note: you need to install 0.9.8~git2012121601-0ubuntu2 and later version for icecc. More details in “icecc” package in Ubuntu.
1
2
sudo apt-get install icecc
sudo apt-get install icemon(optional)
For clang users, if you want to make icecream compiler package, better to do:
Edit /etc/default/icecc, set START_ICECC_SCHEDULER="true".
Start icecc service: sudo /etc/init.d/icecc start, icecc-scheduler service also could be started with this. Not suggest to run multiple icecc-scheduler in same network with default values, you could edit /etc/icecc/icecc.conf with more options.
Create a ‘qt’ user. Open System Preferences -> Users & Groups -> “+” under the list of users (you might need to click the lock icon first and type in your password), add a user “qt” with your standard password.
Normally just do source ~/.icecc_rc, configure and make.
For clang build(both Linux and Mac OS X), please keep in mind to use -no-pch when configure.
For Qt4 build, the -arch argument that Qt 4 passes to the compiler confuses icecream. So for now, if you use Qt4, you need to patch your mkspec to not add that (if you build for your local architecture only), eg. in mkspecs/common/gcc-base-macx.conf.(Note: looks like it’s only on Mac OS X, I haven’t tried it yet.)
Known Issues
Using icecream currently screws up debug information for all object files that we compiled remotely!(Mac OS X only)
I just read a few blogs which talked about the alternatives. Then just a few days ago, one of my friend told me there are inoreader and CommaFeed. And found this article, jasonwryan.com: Replacing Google Reader.
CommaFeed is an opensource solution(Note: it’s in maintenance when I started to write this blog), source code is on github.
Go to OpenShift: Get Started, then click “WEB”, a bit down, clike “Open the Console and Create an Application”, in “Mangement Console” page, click “Create Application”, find “JBoss Enterprise Application Platform 6.0”, and install it, you need to set the “Public URL”, for example: http://mygooglereader-enjoylife.rhcloud.com , click “Create Application”.
You can add a public ssh key in next page.
(Note: I am not sure how much I will pay for that service based on “JBoss Enterprise Application Platform 6.0 is based on a premium cartridge. It costs an additional $0.03 per gear hour after the first 3 gears.”)
Install mysql 5.1
Back to OpenShift: Get Started, click “COMMAND LINE”, follow the steps in “Install the client tools on:”, for me, it’s “Mac OS X”. Then “Setup your enviroment”, command is “rhc setup”, there it will help you to create a ssh key and set up it. “rhc add-cartridge mysql-5.1 –app mygooglereader” will help you install mysql into the application. Please remember to keep the secret information like root username, password and etc.
You can goto Your Own Google Reader, use the default user “admin” and password “admin” to login, change the password and create your own account.
Apply Goolge client ID and etc
Go to Google Code: API Console, create project, and click “API Access”, click “Create an OAuth 2.0 client ID…”. In the popup, input “Product name: mygooglereader”, “Home Page URL: http://mygooglereader-enjoylife.rhcloud.com”, click “Next” button, Then “Create client ID” button.
Then “Edit settings…”, in “Edit client settings” popup, “Authorized Redirect URIs” is “http://mygooglereader-enjoylife.rhcloud.com/google/import/callback”, “Authorized JavaScript Origins” is “http://mygooglereader-enjoylife.rhcloud.com”, click “Update” button. And found “Client ID” and “Client secret”.
Application settings in CommdFeed
Go to Your Own Google Reader, use “admin” to login. Then go to Settings page, set “Public URL” to “http://mygooglereader-enjoylife.rhcloud.com”, and also “Google client ID”, “Client secret”. Click “Save”.
Import your subscriptions from Google Reader
Go to Your Own Google Reader, use your own account, click the arrow button near the “Subscribe”, select “Import”. In “Import” popup, click “Google Reader”, then log in your google account, and wait about several minutes. All will be fine.