###SUMMARY
Enabling AppleID two-step verication prevents logging into iTunesConnect mobile app on iOS
###CONTEXT
Device: iPhone 5S OS: iOS 7.3 App: iTunes Connect.app
This should be possible by cracking open Fluid.app (Fluid itself, not Fluid apps you create, mind you), and editing this config file: | |
Fluid.app/Contents/Resources/FluidApp.app/Contents/Resources/FluidApp-DefaultValues.plist | |
All of the default user defaults (aka user preferences) are stored here. Subsequent Fluid Apps created by this Fluid.app instance will have these default preferences. |
BOOL TDSizeContainsSize(CGSize s1, CGSize s2) { | |
return s1.width >= s2.width && s1.height >= s2.height; | |
} | |
CGRect TDSquareAroundPoint(CGPoint p, CGFloat side) { | |
CGRect r = CGRectMake(p.x - side*0.5, p.y - side*0.5, side, side); | |
return r; | |
} | |
// MyClass.property is confined. may only be get or set on the main thread. | |
// Wo the `property` member is not thread-safe, but the code | |
// overall *is* thread safe if you confine access to `property` to the main thread only | |
public class MyClass { | |
private Object property; | |
public void action() { | |
assert isMainThread(); | |
#masthead, #primary, .nav-fixed {position:static !important;} |
// 0 == w:1.0 h:0.0 | |
// 90 == w:0.0 h:1.0 | |
// 180 == w:1.0 h:0.0 | |
// 270 == w:0.0 h:1.0 | |
// 360 == w:1.0 h:0.0 | |
CGFloat rad = TDD2R(angle); | |
CGFloat wRatio = 0.5+(cos(2.0*rad)/2.0); | |
CGFloat hRatio = 1.0 - wRatio; |
###SUMMARY
Enabling AppleID two-step verication prevents logging into iTunesConnect mobile app on iOS
###CONTEXT
Device: iPhone 5S OS: iOS 7.3 App: iTunes Connect.app
window.fluid.dockBadge = ''; | |
setTimeout(updateDockBadge, 1000); | |
setTimeout(updateDockBadge, 3000); | |
setInterval(updateDockBadge, 5000); | |
function updateDockBadge() { | |
var newBadge = ''; | |
var els = document.querySelectorAll('.feed-link .count'); | |
for (var i = 0; i < els.length; ++i) { |
<book xmlns:foo="bar"> | |
<chapter foo:baz="OHAI"/> | |
</book> | |
//@*[namespace-uri(.)='bar'] |
Source.xml: | |
<?xml version="1.0" encoding="utf-8" ?> | |
<doc id="foo"/> | |
Context Node: | |
/doc/@* |
NSXML XPath bug | |
Results of a path expression should always be sorted in document order regardless of axes used therein | |
//c/ancestor::* | |
<doc> | |
<a>A | |
<b>B | |
<c>C</c> |