Skip to content

Instantly share code, notes, and snippets.

@fumoboy007
fumoboy007 / factor-analysis-singular-covariance-matrix-test.ipynb
Last active April 12, 2024 22:27
Does Factor Analysis resolve the singular covariance matrix problem?
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>store-version</key><string>1.0</string>
<key>storefronts</key>
<array>
<dict>
<key>type</key><string>storefront</string>
<key>country-code</key><string>US</string>
@fumoboy007
fumoboy007 / rebuttal.markdown
Last active March 12, 2016 12:18
Gruber iPhone Backdoor Rebuttal

Our phones are either insecure, making life easier for law enforcement — or, our phones are secure, making life more difficult for law enforcement, rendering some potential evidence unobtainable.

The problem is that more and more “potential evidence” is shifting from physical to digital form. So by making our phones impenetrable, we are reducing the amount of evidence that law enforcement can find. If we make our phones impenetrable, then one can imagine a world where criminals don’t own anything in the physical world except for their smartphone, preventing law enforcement from finding evidence against them.

We don’t ban matches to prevent people from burning evidence.

The digital equivalent to using matches to burn evidence is to wipe your device. Nobody is arguing right now that we should ban the “Erase All Content and Settings” feature.

We don’t mandate weak locks to make it easier for the police to crack safes.

@fumoboy007
fumoboy007 / AsyncImageView.swift
Created November 9, 2015 01:47
A UIImageView subclass that loads images from your app bundle completely off the main thread.
public class AsyncImageView: UIImageView {
private class ImageLoadOperation {
private(set) var isCancelled: Bool = false
func cancel() {
isCancelled = true
}
}
private var imageLoadOperation: ImageLoadOperation?