83 karma · joined Jan 18, 2013 (13y ago) · 29 submissions
comment 10y ago · link · parent
comment 10y ago · link · parent
[1] https://developer.apple.com/library/ios/documentation/Genera...
comment 11y ago · link · parent
#if defined(__LP64__) && __LP64__
# define CGFLOAT_TYPE double
# define CGFLOAT_IS_DOUBLE 1
# define CGFLOAT_MIN DBL_MIN
# define CGFLOAT_MAX DBL_MAX
#else
# define CGFLOAT_TYPE float
# define CGFLOAT_IS_DOUBLE 0
# define CGFLOAT_MIN FLT_MIN
# define CGFLOAT_MAX FLT_MAX
#endifcomment 11y ago · link · parent
Aside: I really wish Homebrew didn't encourage having a single user own /usr/local. If they're going to insist on never needing sudo to install things, it should just default to installing in your home directory.
comment 11y ago · link · parent
else if (sProcessIsRestricted && (path[0] != '/' )) {
throwf("unsafe use of relative rpath %s in %s with restricted binary", path, context.origin);
}
A cursory glance suggests that sProcessIsRestricted is true for setuid binaries and processes with restricted entitlements. Which makes sense: these would otherwise be privilege escalation vectors.comment 11y ago · link · parent
The last few generations of iMac come in a box that is sloped on one edge, whereas they used to be a standard rectangular prism. This unusual reduction in size allows them to tessellate the boxes in shipping and fit significantly more boxes on each airplane. This saves the company millions (literally millions of dollars from a seemingly-minor packaging change!) and also reduces the amount of jet fuel being burned to ship them around the world. Everyone wins, environment included.
But yes, it is also true that your lightning cables come wrapped in a little plastic thing. It would be nice to choose a more biodegradable material for that sort of thing.
comment 12y ago · link · parent
"The user’s outgoing message is individually encrypted using AES-128 in CTR mode for each of the recipient’s devices, signed using the sender’s private key, and then dis- patched to the APNs for delivery."
Source: http://www.apple.com/ipad/business/docs/iOS_Security_Feb14.p...
When you send an iMessage, you actually send a separate encrypted and signed copy for each recipient device. So, it is possible, but these are the lengths you have to go to.
comment 12y ago · link · parent
I'd imagine analysis of your emotional reaction to some stimuli (gameplay elements, advertisements, whatever) would be fairly valuable.
comment 12y ago · link · parent
The open command does allow you to specify command-line arguments to pass to the application (via --args), which is generally a safer way to do things.
comment 12y ago · link · parent
~$ mdfind tag:Active kind:xcode
/Users/jn/Code/xyz/xyz.xcodeproj
...
Queries like this also work in the Cmd-Space UI, or as a Saved Search. By default each term is joined with AND, but you can specify OR too.comment 12y ago · link · parent
Operating system quality has gone nowhere but up, and that's true for every player I can think of, both desktop and mobile. This includes Windows 8, embattled as it may be in the UI department, as I've found it fairly fast and stable.
comment 13y ago · link · parent