###SUMMARY: GitHub.com Bug Report: "Trending Objective-C repos on GitHub this week” shows mostly non-ObjC repos
###CONTEXT: OS X 10.9.2
Any Browser of:
- Chrome Version 33.0.1750.152
- Safari Version 7.0.2 (9537.74.9)
- Firefox 28.0
###SUMMARY: GitHub.com Bug Report: "Trending Objective-C repos on GitHub this week” shows mostly non-ObjC repos
###CONTEXT: OS X 10.9.2
Any Browser of:
I hereby claim:
To claim this, I am signing this object:
/*/attribute(*) | |
Should match any attribute on the document (outermost) element. NSXML fails. | |
From XPath 2.0 Spec: | |
http://www.w3.org/TR/xpath20/#abbrev | |
If the axis name is omitted from an axis step, the default axis is child unless the axis step contains an AttributeTest or SchemaAttributeTest; in that case, the default axis is attribute. For example, the path expression section/para is an abbreviation for child::section/child::para, and the path expression section/@id is an abbreviation for child::section/attribute::id. Similarly, section/attribute(id) is an abbreviation for child::section/attribute::attribute(id). Note that the latter expression contains both an axis specification and a node test. |
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> |
Source.xml: | |
<?xml version="1.0" encoding="utf-8" ?> | |
<doc id="foo"/> | |
Context Node: | |
/doc/@* |
<book xmlns:foo="bar"> | |
<chapter foo:baz="OHAI"/> | |
</book> | |
//@*[namespace-uri(.)='bar'] |
###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
// 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; |
#masthead, #primary, .nav-fixed {position:static !important;} |
// 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(); | |