iOS Objective-C headers as derived from runtime introspection. Generated using RuntimeBrowser.
Thursday, November 15, 2012
Sunday, November 11, 2012
ssh-copy-id
ssh-copy-id installs your public key in a remote machine's authorized_keys. It should be in the contrib of the OpenSSH repository. There are other mirrors.
GPU Accelerated Compositing in Chrome
Background and details on the implementation of hardware-accelerated compositing in Chrome.
Wednesday, November 7, 2012
Sunday, November 4, 2012
Chromium Setup
Links:
- Chromium SVN Credentials
- Chromium Git Setup
- Mac build instructions
- Setting up Ninja
- Some things in the faster Linux builds page apply to the Mac too (disable NaCl, use shared libraries)
Recipe:
- Visit Chromium Access and get credentials.
- Run
svn ls --username mihaip@chromium.org svn://svn.chromium.org/chrome/trunk/srcandsvn ls --username mihaip@chromium.org svn://svn.chromium.org/blink/trunkto verify said credentials. cd ~/Developer/tools/svn co http://src.chromium.org/chrome/trunk/tools/depot_toolscd ../sourcemkdir chromium- add
~/Developer/source/chromiumto the list of paths that Spotlight excludes cd chromiumfetch blinkcd srcrm -rf out/Debugexport GYP_GENERATORS="ninja"export GYP_DEFINES="component=shared_library disable_nacl=1"./build/gyp_chromiumninja -C out/Debug chrome
Updating:
cd ~/Developer/source/chromium/srcgit pull --rebase origin masterexport GYP_GENERATORS="ninja"export GYP_DEFINES="component=shared_library disable_nacl=1"gclient syncninja -C out/Debug chrome
Thursday, November 1, 2012
Disable +1 buttons in Google Reader
Reload Reader or mark an item as read (so that the command token gets refreshed) and then run the following in the DevTools console:
var xhr = new XMLHttpRequest();
xhr.onload = function() {
console.log(xhr.status);
};
xhr.onerror = function() {
console.log('error');
};
var params = '';
function addParam(name, value) {
if (params) {
params += '&';
}
params += encodeURIComponent(name) + '=' + encodeURIComponent(value);
}
addParam('T', _COMMAND_TOKEN);
addParam('k', 'item-actions');
addParam('v', '{"plusone-action": false, "share-action": true, "email-action": true, "tags-action": true}');
xhr.open('POST', '/reader/api/0/preference/set');
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xhr.send(params);
Once you see 200 printed, you can reload Reader, and the +1 buttons should be gone.
To reset things back to the way they were, change the 'v' value to '{}'.
Subscribe to:
Comments (Atom)